Commit 8f7056dd authored by militarpancho's avatar militarpancho
Browse files

Added default query

parent d0652cd2
......@@ -21,10 +21,14 @@ services:
- "xpack.security.enabled=false"
- "http.cors.enabled=true"
- 'http.cors.allow-origin=*'
- ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
volumes:
- esdata:/usr/share/elasticsearch/data/
ports:
- 9200:9200
- 9300:9300
volumes:
esdata:
[{"name": "Demo Tourpedia", "val":"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \nPREFIX dbpedia: <http://dbpedia.org/resource/> \nPREFIX vcard: <http://www.w3.org/2006/vcard/ns#> \nPREFIX dbpedia-owl: <http://dbpedia.org/ontology/> \nPREFIX foaf: <http://xmlns.com/foaf/0.1/> \n\nSELECT * WHERE { \n ?s rdfs:label ?name . \n ?s dbpedia-owl:address ?address . \n ?s dbpedia-owl:location ?locUrl . \n ?s rdf:type ?typeLoc . \n ?s vcard:latitude ?lat . \n ?s vcard:longitude ?lon . \n SERVICE <http://dbpedia.org/sparql> { \n ?locUrl rdfs:label ?local . \n FILTER (lang(?local) = 'en') \n } \n} \nLIMIT 10"},{"name": "Demo Tourpedia2", "val":"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \nPREFIX dbpedia: <http://dbpedia.org/resource/> \nPREFIX vcard: <http://www.w3.org/2006/vcard/ns#> \nPREFIX dbpedia-owl: <http://dbpedia.org/ontology/> \nPREFIX foaf: <http://xmlns.com/foaf/0.1/> \n\nSELECT * WHERE { \n ?s rdfs:label ?name . \n ?s dbpedia-owl:address ?address . \n ?s dbpedia-owl:location ?locUrl . \n ?s rdf:type ?typeLoc . \n ?s vcard:latitude ?lat . \n ?s vcard:longitude ?lon . \n SERVICE <http://dbpedia.org/sparql> { \n ?locUrl rdfs:label ?local . \n FILTER (lang(?local) = 'en') \n } \n} \nLIMIT 10"}]
\ No newline at end of file
[{"name":"Show the sentiment and emotion of posts and comments", "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://gsi.dit.upm.es/ontologies/wnaffect/ns#>\n\nSELECT ?blogpost ?sentiment ?emotion\nWHERE {\n ?blogpost a schema:BlogPosting .\n ?blogpost marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity ?sentiment .\n ?blogpost onyx:hasEmotionSet ?emotionlist .\n ?emotionlist onyx:hasEmotionCategory ?emotion .\n}\nLIMIT 25\n"}]
Markdown is supported
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