forked from FacultadInformatica-LinkedData/Curso2019-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlaskops-v130173.txt
56 lines (39 loc) · 1.68 KB
/
Blaskops-v130173.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
50
51
52
53
54
55
56
Alejandro Blasco Prieto v130173 Blaskops
1. Get all the properties that can be applied to instances of the Politician class
PREFIX ns: <http://dbpedia.org/ontology/>
select distinct ?property where {
?subject a ns:Politician .
?subject ?property ?object . }
limit 10
2. Get all the properties, except rdf:type, that can be applied to instances of the Politician class
PREFIX ns: <http://dbpedia.org/ontology/>
select distinct ?property where {
?subject a ns:Politician .
?subject ?property ?object .
FILTER (?property != rdf:type) .
}
limit 10
3. Which different values exist for the properties, except rdf:type, of the instances of the Politician class?
PREFIX ns: <http://dbpedia.org/ontology/>
select distinct ?property ?object where {
?subject a ns:Politician .
?subject ?property ?object .
FILTER (?property != rdf:type) .
}
limit 10
4. For each of the properties, except rdf:type, that can be applied to instances of the Politician class, which different values do they take in those instances?
PREFIX ns: <http://dbpedia.org/ontology/>
select distinct ?object where {
?subject a ns:Politician .
?subject ?property ?object .
FILTER (?property != rdf:type) .
}
group by ?property
5. For each of the properties, except rdf:type, that can be applied to instances of the Politician class, how many distinct values do they take in those instances?
PREFIX ns: <http://dbpedia.org/ontology/>
select distinct ?property (count(distinct ?object) as ?count) where {
?subject a ns:Politician .
?subject ?property ?object .
FILTER (?property != rdf:type) .
}
group by ?property