generated from FacultadInformatica-LinkedData/Template-Curso
-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathbelenfh999-z170054.txt
68 lines (49 loc) · 3.37 KB
/
belenfh999-z170054.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
57
58
59
60
61
62
63
64
65
66
67
68
1.Get all the properties that can be applied to instances of the Politician class (<http://dbpedia.org/ontology/Politician>)
select distinct ?properties
where
{
{?Instance a <http://dbpedia.org/ontology/Politician>.
?Instance ?properties ?values
}
}
Result (URI): https://es.dbpedia.org/sparql?default-graph-uri=&query=select+distinct+%3Fproperties%0D%0Awhere+%0D%0A%7B+%0D%0A++%7B%3FInstance+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPolitician%3E.%0D%0A+++%3FInstance+%3Fproperties+%3Fvalues%0D%0A++%7D+%0D%0A%7D+&should-sponge=&format=text%2Fhtml&timeout=0&debug=on&run=+Run+Query+
2.Get all the properties, except for rdf:type, that are applied to instances of the Politician class.
select distinct ?properties
where
{
{?Instance a <http://dbpedia.org/ontology/Politician>.
?Instance ?properties ?values
filter (?properties not in ( rdf:type ))
}
}
Result (URI): https://es.dbpedia.org/sparql?default-graph-uri=&query=select+distinct+%3Fproperties%0D%0Awhere+%0D%0A%7B+%0D%0A++%7B%3FInstance+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPolitician%3E.%0D%0A+++%3FInstance+%3Fproperties+%3Fvalues%0D%0A+++filter+%28%3Fproperties+not+in+%28+rdf%3Atype+%29%29%0D%0A++%7D+%0D%0A%7D&should-sponge=&format=text%2Fhtml&timeout=0&debug=on&run=+Run+Query+
3.Which different values exist for the properties, except for rdf:type, of the instances of the Politician class?
select distinct ?values
where
{
{?Instance a <http://dbpedia.org/ontology/Politician>.
?Instance ?properties ?values
filter (?properties not in ( rdf:type ))
}
}
Result (URI): https://es.dbpedia.org/sparql?default-graph-uri=&query=select+distinct+%3Fvalues%0D%0Awhere+%0D%0A%7B+%0D%0A++%7B%3FInstance+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPolitician%3E.%0D%0A+++%3FInstance+%3Fproperties+%3Fvalues%0D%0A+++filter+%28%3Fproperties+not+in+%28+rdf%3Atype+%29%29%0D%0A++%7D+%0D%0A%7D+&should-sponge=&format=text%2Fhtml&timeout=0&debug=on&run=+Run+Query+
4.For each of these properties, except for rdf:type, which different values do they take in those instances?
select distinct ?properties ?values
where
{
{?Instance a <http://dbpedia.org/ontology/Politician>.
?Instance ?properties ?values
filter (?properties not in ( rdf:type ))
}
}
Result (URI): https://es.dbpedia.org/sparql?default-graph-uri=&query=select+distinct+%3Fproperties+%3Fvalues%0D%0Awhere+%0D%0A%7B+%0D%0A++%7B%3FInstance+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPolitician%3E.%0D%0A+++%3FInstance+%3Fproperties+%3Fvalues%0D%0A+++filter+%28%3Fproperties+not+in+%28+rdf%3Atype+%29%29%0D%0A++%7D+%0D%0A%7D&should-sponge=&format=text%2Fhtml&timeout=0&debug=on&run=+Run+Query+
5. For each of the properties, except for rdf:type, how many distinct values do they take?
select distinct ?properties count(?values)
where
{
{?Instance a <http://dbpedia.org/ontology/Politician>.
?Instance ?properties ?values
filter (?properties not in ( rdf:type ))
}
}
Result (URI): https://es.dbpedia.org/sparql?default-graph-uri=&query=select+distinct+%3Fproperties+count%28%3Fvalues%29%0D%0Awhere+%0D%0A%7B+%0D%0A++%7B%3FInstance+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPolitician%3E.%0D%0A+++%3FInstance+%3Fproperties+%3Fvalues%0D%0A+++filter+%28%3Fproperties+not+in+%28+rdf%3Atype+%29%29%0D%0A++%7D+%0D%0A%7D&should-sponge=&format=text%2Fhtml&timeout=0&debug=on&run=+Run+Query+