query-5ff8984be84d1ad6be1a0f92a7a717bc

rq turtle/ttl

Propertiesowned by (P127)instance of (P31)subclass of (P279)coordinate location (P625)image (P18)official website (P856)

Use at

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#>
SELECT ?park ?parkLabel (SAMPLE(?coord) AS ?coord) (SAMPLE(?image) AS ?image) ?web WHERE {
?park wdt:P127 wd:Q333515.
 MINUS {?park wdt:P31/wdt:P279* wd:Q4502142} # Remove artworks
OPTIONAL { ?park wdt:P625 ?coord }
OPTIONAL { ?park wdt:P18 ?image }
OPTIONAL { ?park wdt:P856 ?web }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} GROUP BY ?park ?parkLabel ?web
ORDER BY ?parkLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?coord"):::projected v6("?image"):::projected v2("?park"):::projected v1("?parkLabel"):::projected v5("?web"):::projected a1((" ")) c2(["wd:Q333515"]):::iri c10(["bd:serviceParam"]):::iri c5(["wd:Q4502142"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P127"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c5 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P856".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind3[/"sample(?coord)"/] v6 --o bind3 bind3 --as--o v6 bind4[/"sample(?image)"/] v6 --o bind4 bind4 --as--o v6