generated from FacultadInformatica-LinkedData/Template-Curso
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathassignment3-arhuici.txt
43 lines (39 loc) · 1.19 KB
/
assignment3-arhuici.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
#1. Get all the properties that can be applied to instances of the Politician class
SELECT DISTINCT ?property
WHERE
{
?politician a <http://dbpedia.org/ontology/Politician>;
?property ?value
}
#2. Get all the properties, except for rdf:type, that are applied to instances of the Politician class
SELECT DISTINCT ?property
WHERE
{
?politician a <http://dbpedia.org/ontology/Politician>;
?property ?value.
FILTER (?property != rdf:type)
}
#3. Which different values exist for the properties, except for rdf:type, of the instances of the Politician class?
SELECT DISTINCT ?value
WHERE
{
?politician a <http://dbpedia.org/ontology/Politician>;
?property ?value.
FILTER (?property != rdf:type)
}
#4. For each of these properties, except for rdf:type, which different values do they take in those instances?
SELECT DISTINCT ?property ?value
WHERE
{
?politician a <http://dbpedia.org/ontology/Politician>;
?property ?value.
FILTER (?property != rdf:type)
}
#5. For each of the properties, except for rdf:type, how many distinct values do they take?
SELECT DISTINCT ?property (COUNT(?value)as ?valuesum)
WHERE
{
?politician a <http://dbpedia.org/ontology/Politician>;
?property ?value.
FILTER (?property != rdf:type)
}