generated from FacultadInformatica-LinkedData/Template-Curso
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathjavipzv-JavierPerez.txt
42 lines (34 loc) · 1.32 KB
/
javipzv-JavierPerez.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
1. Get all the properties that can be applied to instances of the Politician class (<http://dbpedia.org/ontology/Politician> or its equivalent in Wikidata)
SELECT DISTINCT ?property
WHERE{
?instance a <http://dbpedia.org/ontology/Politician>.
?instance ?property ?value.
}
2. Get all the properties, except for rdf:type, that are applied to instances of the Politician class
SELECT DISTINCT ?property
WHERE{
?instance a <http://dbpedia.org/ontology/Politician>.
FILTER (?property not in (rdf:type))
?instance ?property ?value.
}
3. Which different values exist for the properties, except for rdf:type, of the instances of the Politician class?
SELECT DISTINCT ?value
WHERE{
?instance a <http://dbpedia.org/ontology/Politician>.
FILTER (?property not in (rdf:type))
?instance ?property ?value.
}
4. For each of these properties, except for rdf:type, which different values do they take in those instances?
SELECT DISTINCT ?property ?value
WHERE{
?instance a <http://dbpedia.org/ontology/Politician>.
FILTER (?property not in (rdf:type))
?instance ?property ?value.
}
5. For each of the properties, except for rdf:type, how many distinct values do they take?
SELECT DISTINCT ?property (COUNT(?value) as ?propertyCount)
WHERE{
?instance a <http://dbpedia.org/ontology/Politician>.
FILTER (?property not in (rdf:type))
?instance ?property ?value.
}