query-57b571468d61e80fb8ccb3cf4d3a68d0

rq turtle/ttl

Show only first imageI have a query that works nicely:

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#>
#defaultView:Map
SELECT ?item ?itemLabel ?itemDescription ?locationLabel ?coord (SAMPLE(?img) AS ?img) WHERE {
        ?item wdt:P31 wd:Q1965390 .
        ?item wdt:P276 ?location .
        ?location wdt:P625 ?coord .
        OPTIONAL { ?item wdt:P18 ?img . }
        SERVICE wikibase:label { bd:serviceParam wikibase:language "de,de". }
    }
GROUP BY ?item ?itemLabel ?itemDescription ?locationLabel ?coord

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coord"):::projected v5("?img"):::projected v1("?item"):::projected v2("?location") c7(["bd:serviceParam"]):::iri c9(["de,de"]):::literal c2(["wd:Q1965390"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P276"--> v2 v2 --"wdt:P625"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"sample(?img)"/] v5 --o bind1 bind1 --as--o v5