-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-output-query.sparql
46 lines (46 loc) · 1.12 KB
/
example-output-query.sparql
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>
CONSTRUCT {
?s ?p ?o.
?this <urn:shacl-meta-sparql> <urn:shacl-meta-sparql>.
}
WHERE {
?s ?p ?o.
{
SELECT ?this WHERE { ?this rdf:type dbo:Philosopher. }
OFFSET 100
LIMIT 10
}
{ BIND(?this AS ?s) }
UNION
{
?this ?p ?o.
FILTER(?this = ?s)
VALUES ?p {
rdfs:label
dbo:thumbnail
dbo:birthPlace
dbp:birthDate
}
FILTER((?p != dbo:birthPlace) || (ISIRI(?o)))
FILTER((?p != rdfs:label) || (LANG(?o) IN("en", "nl")))
FILTER((?p != rdfs:label) || ((ISLITERAL(?o)) && ((LANG(?o)) != "")))
FILTER((?p != dbp:birthDate) || ((DATATYPE(?o)) = xsd:date))
}
UNION
{
{
{
?this dbo:birthPlace ?s.
VALUES ?p {
rdfs:label
}
FILTER((?p != rdfs:label) || (LANG(?o) IN("de", "fr")))
FILTER((?p != rdfs:label) || ((ISLITERAL(?o)) && ((LANG(?o)) != "")))
}
}
}
}