SPARQL Questionnaire (Basic) Provide the SPARQL query and the result for the following queries expressed in natural language.
-
- Get all the classes
-
- Get all the subclasses of the class Establishment
-
- Get all instances of the class City
-
- Get the number of inhabitants of Santiago de Compostela
-
- Get the number of inhabitants of Santiago de Compostela and Arzua
-
- Get all places, together with the number of inhabitants, ordered by the place name (ascending)
-
- Get all instances of Locality together with their number of inhabitants (if this information exists)
-
- Get all places with more than 200.000 inhabitants
-
- Get postal address data for Pazo_Breogan (street, number, locality, province)
-
- Get all subclasses of class Location
-
- Get all instances of class Locality
-
- Describe the resource with rdfs:label "Madrid”
-
- Construct a graph that relates directly all touristic places with their provinces, using a new property called ”isIn”
-
- Check whether there is any instance of Town
The endpoint that you can use for this exercise is: http://sandbox.linkeddata.es/sparql and the graph is http://sandbox.linkeddata.es/Grado_20122013
SPARQL Questionnaire (Advanced) Provide the SPARQL query and the result for the following queries expressed in natural language. The endpoint that you can use for this exercise is: http://es.dbpedia.org/sparql
- A1. Dame todas las propiedades aplicables a las instancias de la clase Politician (http://dbpedia.org/ontology/Politician)
- A2. Dame todas las propiedades, exceptuando rdf:type, aplicables a las instancias de la clase Politician (http://dbpedia.org/ontology/Politician)
- A3. ¿Cuántos valores distintos se pueden encontrar para las propiedades, exceptuando rdf:type, de las instancias de la clase Politician (http://dbpedia.org/ontology/Politician)?
- A4. Para cada una de las propiedades, exceptuando rdf:type, aplicables a las instancias de la clase Politician (http://dbpedia.org/ontology/Politician), dime cuántos valores distintos toman en dichas instancias
- A5. Para cada una de las propiedades, exceptuando rdf:type, aplicables a las instancias de la clase Politician (http://dbpedia.org/ontology/Politician), dime la media de valores distintos que toman en dichas instancias.
- A6. Para cada una de las propiedades, exceptuando rdf:type, aplicables a las instancias de la clase Politician (http://dbpedia.org/ontology/Politician), dime el máximo número de valores distintos que toman entre todas sus instancias, ordenado de mayor a menor