Commit aa3dc261 authored by Manuel García-Amado's avatar Manuel García-Amado
Browse files

Merge branch 'dbpedia' into 'master'

dbpedia into visualization (master)

See merge request sefarad/dashboard-reddit!1
parents 32d270e7 e366c8b9
......@@ -222,6 +222,7 @@
else this._ESsearch()
},
_filtersChange: function() {
var myfilters = []
this._query();
},
_ESsearch: function() {
......
......@@ -18,7 +18,7 @@
<template is="dom-bind">
<elastic-client
config='{"host": "krusti.gsi:19200"}'
config='{"host": "localhost:19200"}'
client="{{client}}"
cluster-status="{{myStatus}}">
</elastic-client>
......
......@@ -10,6 +10,7 @@ services:
- .:/usr/src/app
environment:
- ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
- FUSEKI_ENDPOINT_DASHBOARD=${FUSEKI_ENDPOINT_DASHBOARD}
networks:
- sefarad-network
......
[{"name":"Show the sentiment and emotion 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://gsi.dit.upm.es/ontologies/wnaffect/ns#>\n\nSELECT ?article ?sentiment ?emotion\nWHERE {\n ?article a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity ?sentiment .\n ?article onyx:hasEmotionSet ?emotionlist .\n ?emotionlist onyx:hasEmotionCategory ?emotion .\n}\nLIMIT 25\n"},{"name":"How many opinions are positive, neutral or neutral on each news?","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#>\nPREFIX sc: <http://purl.org/science/owl/sciencecommons/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX sioc: <http://rdfs.org/sioc/ns#>\nPREFIX nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#>\n SELECT ?article\n (COUNT(DISTINCT ?opinionTextPositive) AS ?positives) \n (COUNT(DISTINCT ?opinionTextNegative) AS ?negatives) \n (COUNT(DISTINCT ?opinionTextNeutral) AS ?neutral) \n WHERE {\n{\n ?blogpost a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity 'marl:Positive' .\n ?opinion nif:anchorOf ?opinionTextPositive .\n}\n UNION \n {\n ?article a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity 'marl:Negative' .\n ?opinion nif:anchorOf ?opinionTextNegative .\n\n}\n UNION \n {\n ?article a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity 'marl:Neutral' .\n ?opinion nif:anchorOf ?opinionTextNeutral .\n}\n} GROUP BY ?article"}]
\ No newline at end of file
[{"name": "Show me Spain news about Terrorism", "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#>\nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#>\nPREFIX dbr: <http://dbpedia.org/resource/>\nPREFIX dbo: <http://dbpedia.org/ontology/>\nPREFIX db: <http://dbpedia.org/>\n\nSELECT DISTINCT ?headline ?entity \nWHERE { \n ?article a schema:NewsArticle .\n ?article schema:headline ?headline . \n ?article me:hasEntities ?entities .\n ?entities dbps:anyURI ?entity .\n ?entities dbps:anyURI dbr:Spain\n \n}\n LIMIT"},{"name":"Show the ISIS news", "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#>\nPREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#>\nPREFIX dbr: <http://dbpedia.org/resource/>\n\nSELECT DISTINCT ?headline ?entityURI \nWHERE { \n ?article a schema:NewsArticle .\n ?article schema:headline ?headline . \n ?article me:hasEntities ?entity .\n ?entity dbps:anyURI ?entityURI .\n ?entity dbps:anyURI dbr:Islamic_State_of_Iraq_and_the_Levant\n \n}\nLIMIT 25"},{"name":"Show the sentiment and emotion 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 ?emotion \n WHERE { \n?article a schema:NewsArticle .\n?article schema:headline ?headline . \n?article marl:hasOpinion ?opinion . \n?opinion marl:hasPolarity ?sentiment . \n?article onyx:hasEmotionSet ?emotionset . \n?emotionset onyx:hasEmotion ?emotionlist .\n?emotionlist onyx:hasEmotionCategory ?emotion .}\nLIMIT 25\n"},{"name":"How many opinions are positive, neutral or neutral on each news?","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#>\nPREFIX sc: <http://purl.org/science/owl/sciencecommons/>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX sioc: <http://rdfs.org/sioc/ns#>\nPREFIX nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#>\n SELECT ?article\n (COUNT(DISTINCT ?opinionTextPositive) AS ?positives) \n (COUNT(DISTINCT ?opinionTextNegative) AS ?negatives) \n (COUNT(DISTINCT ?opinionTextNeutral) AS ?neutral) \n WHERE {\n{\n ?blogpost a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity marl:Positive .\n ?opinion nif:anchorOf ?opinionTextPositive .\n}\n UNION \n {\n ?article a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity marl:Negative .\n ?opinion nif:anchorOf ?opinionTextNegative .\n\n}\n UNION \n {\n ?article a schema:NewsArticle .\n ?article marl:hasOpinion ?opinion .\n ?opinion marl:hasPolarity marl:Neutral .\n ?opinion nif:anchorOf ?opinionTextNeutral .\n}\n} GROUP BY ?article"}]
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