-
Notifications
You must be signed in to change notification settings - Fork 0
/
query3.rq
31 lines (27 loc) · 1.1 KB
/
query3.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PREFIX pubo: <http://lod.semanticsoftware.info/pubo/pubo#>
PREFIX sro: <http://salt.semanticauthoring.org/ontologies/sro#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX um: <http://intelleo.eu/ontologies/user-model/ns/>
PREFIX c: <http://www.intelleo.eu/ontologies/competences/ns/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX local: <http://tmp/peerj-cs-100/>
PREFIX profile: <http://semanticsoftware.info/lodexporter/author/>
SELECT ?uri ?comment ?wikipedia WHERE {
local:cs-78.xml pubo:hasAnnotation ?rhetEntity.
?rhetEntity rdf:type sro:Contribution.
?rhetEntity pubo:containsNE ?namedEntity.
?namedEntity rdfs:isDefinedBy ?uri.
FILTER NOT EXISTS {
?user rdf:type um:User.
?user rdfs:isDefinedBy profile:R4 .
?user um:hasCompetencyRecord ?comptenceRecord.
?comptenceRecord c:competenceFor ?comptence.
?comptence rdfs:isDefinedBy ?uri.
}
SERVICE <http://dbpedia.org/sparql> {
?uri rdfs:comment ?comment.
?uri foaf:isPrimaryTopicOf ?wikipedia
}
FILTER (LANGMATCHES(LANG(?comment), "en"))
}