Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sefarad
dashboard-gsicrawler
Commits
f986360b
Commit
f986360b
authored
Sep 29, 2017
by
Manuel García-Amado
Browse files
Merge branch 'dbpedia' into 'master'
dbpedia into visualization (master) See merge request sefarad/dashboard-reddit!1
parents
32d270e7
90f92382
Changes
6
Hide whitespace changes
Inline
Side-by-side
dashboard-reddit.html
View file @
f986360b
...
...
@@ -222,6 +222,7 @@
else
this
.
_ESsearch
()
},
_filtersChange
:
function
()
{
var
myfilters
=
[]
this
.
_query
();
},
_ESsearch
:
function
()
{
...
...
demo/index.html
View file @
f986360b
...
...
@@ -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>
...
...
docker-compose.yml
View file @
f986360b
...
...
@@ -10,6 +10,7 @@ services:
-
.:/usr/src/app
environment
:
-
ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
-
FUSEKI_ENDPOINT_DASHBOARD=${FUSEKI_ENDPOINT_DASHBOARD}
networks
:
-
sefarad-network
...
...
lab.cluster.gsi.dit.upm.es.crt
0 → 100644
View file @
f986360b
-----BEGIN CERTIFICATE-----
MIIDkzCCAnugAwIBAgIJAInNcWWDPdS1MA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNV
BAYTAkVTMQ8wDQYDVQQIDAZNYWRyaWQxDzANBgNVBAcMBk1hZHJpZDEMMAoGA1UE
CgwDR1NJMSEwHwYDVQQDDBgqLmNsdXN0ZXIuZ3NpLmRpdC51cG0uZXMwHhcNMTcw
ODA5MDg0MzQzWhcNMTgwODA5MDg0MzQzWjBgMQswCQYDVQQGEwJFUzEPMA0GA1UE
CAwGTWFkcmlkMQ8wDQYDVQQHDAZNYWRyaWQxD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3N5
e8I7AXQOFdhRWro0jRDIHr34zNEcjzhrPsOcWq8TxjtkLo8BMoGFAIPLlFzVSVIZ
typ0GEaEpaSV29Bu3ywkgD7GsJpd8UcuOTZqMzvX15qmN8fCLVMuqEBwsGTO86kn
PhOMniOo7A==
-----END CERTIFICATE-----
queries.json
View file @
f986360b
[{
"name"
:
"Show the sentiment and emotion of articles"
,
"val"
:
"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#>
\n
PREFIX wnaffect: <http://gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n\n
SELECT ?article ?sentiment ?emotion
\n
WHERE {
\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
}
\n
LIMIT 25
\n
"
},{
"name"
:
"How many opinions are positive, neutral or neutral on each news?"
,
"val"
:
"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#>
\n
PREFIX wnaffect: <http://gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n
PREFIX sc: <http://purl.org/science/owl/sciencecommons/>
\n
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
\n
PREFIX sioc: <http://rdfs.org/sioc/ns#>
\n
PREFIX 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/>
\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#>
\n
PREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n
PREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#>
\n
PREFIX dbr: <http://dbpedia.org/resource/>
\n
PREFIX dbo: <http://dbpedia.org/ontology/>
\n
PREFIX db: <http://dbpedia.org/>
\n\n
SELECT DISTINCT ?headline ?entity
\n
WHERE {
\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/>
\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#>
\n
PREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n
PREFIX dbps: <http://www.openlinksw.com/schemas/dbpedia-spotlight#>
\n
PREFIX dbr: <http://dbpedia.org/resource/>
\n\n
SELECT DISTINCT ?headline ?entityURI
\n
WHERE {
\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
}
\n
LIMIT 25"
},{
"name"
:
"Show the sentiment and emotion of articles"
,
"val"
:
"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#>
\n
PREFIX wnaffect: <http://www.gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n\n
SELECT ?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 .}
\n
LIMIT 25
\n
"
},{
"name"
:
"How many opinions are positive, neutral or neutral on each news?"
,
"val"
:
"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#>
\n
PREFIX wnaffect: <http://gsi.dit.upm.es/ontologies/wnaffect/ns#>
\n
PREFIX sc: <http://purl.org/science/owl/sciencecommons/>
\n
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
\n
PREFIX sioc: <http://rdfs.org/sioc/ns#>
\n
PREFIX 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"
}]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment