Commit 601ecb53 authored by Alberto Pascual's avatar Alberto Pascual
Browse files

SPARQL queries updates

parent 719a426e
Pipeline #496 passed with stages
in 19 seconds
[{
"name": "Show me news about Popular Party",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Popular_Party .\n} \nLIMIT 100"
"name": "Show me news about Popular Party in Spanish",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Popular_Party .\n FILTER(lang(?headline) = 'es') \n} \nLIMIT 100"
},{
"name": "Show me news about PSOE",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:PSOE .\n} \nLIMIT 100"
"name": "Show me news about PSOE in English",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:PSOE .\n FILTER(lang(?headline) = 'en') \n} \nLIMIT 100"
},{
"name": "Show me news about Ciudadanos",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Ciudadanos .\n} \nLIMIT 100"
"name": "Show me news about Ciudadanos in Spanish",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Ciudadanos .\n FILTER(lang(?headline) = 'es') \n} \nLIMIT 100"
},{
"name": "Show me news about Podemos",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Podemos .\n} \nLIMIT 100"
"name": "Show me news about Podemos in English",
"val": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n PREFIX schema: <http://schema.org/> \n PREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \n PREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \n PREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#> \nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#> \nPREFIX dbr: <http://dbpedia.org/resource/> \nPREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX dbc: <http://dbpedia.org/category/> \nPREFIX db: <http://dbpedia.org/> \nPREFIX dcterms: <http://purl.org/dc/terms/> \nPREFIX dct: <http://purl.org/dc/terms/>\nPREFIX dc: <http://purl.org/dc/elements/1.1/>\nPREFIX dco: <http://info.deepcarbon.net/schema#>\n SELECT DISTINCT ?headline ?entity\nWHERE { \n ?article a schema:NewsArticle . \n ?article schema:headline ?headline .\n ?entities rdfs:subClassOf ?entity .\n ?entities rdfs:subClassOf dbr:Podemos .\n FILTER(lang(?headline) = 'en') \n} \nLIMIT 100"
},{
"name": "Show the sentiment of articles",
"val": "PREFIX schema: <http://schema.org/> \nPREFIX marl: <http://www.gsi.dit.upm.es/ontologies/marl/ns#> \nPREFIX me: <http://www.mixedemotions-project.eu/ns/model#> \nPREFIX onyx: <http://www.gsi.dit.upm.es/ontologies/onyx/ns#> \nPREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#>\n\nSELECT ?headline ?sentiment \n WHERE { \n?article a schema:NewsArticle .\n?article schema:headline ?headline . \n?article marl:hasOpinion ?opinion . \n?opinion marl:hasPolarity ?sentiment . \n}\nLIMIT 25\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment