-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquery2.rq
22 lines (21 loc) · 899 Bytes
/
query2.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 local: <http://tmp/peerj-cs-100/>
PREFIX profile: <http://semanticsoftware.info/lodexporter/author/>
SELECT (COUNT(DISTINCT ?uri) as ?count) WHERE {
local:cs-78.xml pubo:hasAnnotation ?rhetEnt.
?rhetEnt rdf:type sro:Contribution.
?rhetEnt pubo:containsNE ?namedEnt.
?namedEnt rdfs:isDefinedBy ?uri.
FILTER EXISTS {
?user rdf:type um:User.
?user rdfs:isDefinedBy profile:R20 .
?user um:hasCompetencyRecord ?comptenceRecord.
?comptenceRecord c:competenceFor ?comptence.
?comptence rdfs:isDefinedBy ?uri.
}
}