query-3b926a0404f8dcc7f79fe42dff841974
Additional Information Queries Query with exact coordinates shown in a map using Portugal as example end time (P582), country (P17), located in the administrative territorial entity (P131), subclass of (P279), instance of (P31): Properties Extend query with exact coordinates shown in a map using Portugal as example:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Locations of universities in Portugal
#added before 2016-10
#defaultView:Map
SELECT ?universityLabel ?universityDescription ?website ?coord WHERE {
?university (wdt:P31/wdt:P279*) wd:Q3918.
?university wdt:P17 wd:Q45.
?university wdt:P625 ?coord.
OPTIONAL { ?university wdt:P856 ?website. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_University_degrees/Queries
- https://www.wikidata.org/wiki/Wikidata:WikiProject_University_degrees/Reports/Portugal
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v1("?university")
v3("?website"):::projected
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["en,de"]):::literal
c3(["wd:Q3918"]):::iri
c5(["wd:Q45"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P856".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end