generated from FacultadInformatica-LinkedData/Template-Curso
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathIñigoMaiza.txt
49 lines (40 loc) · 1.3 KB
/
IñigoMaiza.txt
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
47
48
49
1.Get all the properties that can be applied to instances of the Politician class (<http://dbpedia.org/ontology/Politician>)
PREFIX : <http://dbpedia.org/ontology/>
SELECT DISTINCT ?property
WHERE{
?x a/rdfs:subClassOf* :Politician . #instances of the Politician class
?x ?property ?z
}
LIMIT 100
2.Get all the properties, except rdf:type, that can be applied to instances of the Politician class.
SELECT DISTINCT ?prop
WHERE {
?x a <http://dbpedia.org/ontology/Politician>.
?x ?prop ?y
FILTER (?prop != rdf:type)
}
LIMIT 100
3.Which different values exist for the properties, except for rdf:type, applicable to the instances of Politician?
SELECT DISTINCT ?y
WHERE {
?x a <http://dbpedia.org/ontology/Politician>.
?x ?prop ?y
FILTER (?prop != rdf:type)
}
LIMIT 100
4.For each of these applicable properties, except for rdf:type, which different values do they take globally for all those instances?
SELECT DISTINCT ?prop ?y
WHERE {
?x a <http://dbpedia.org/ontology/Politician>.
?x ?prop ?y
FILTER (?prop != rdf:type)
}
LIMIT 100
5.For each of these applicable properties, except for rdf:type, how many distinct values do they take globally for all those instances?
SELECT DISTINCT ?prop COUNT (DISTINCT ?y)
WHERE {
?x a <http://dbpedia.org/ontology/Politician>.
?x ?prop ?y
FILTER (?prop != rdf:type)
}
LIMIT 100