query-caf098f9931e4635b3a4985858d662e2

rq turtle/ttl

Objekte der Gemäldegalerie ohne Themenangabe SELECT ?work ?workLabel ?URL WHERE { ?work wdt:P276 wd:Q165631 ; wdt:P8923 ?SMBID . FILTER NOT EXISTS { ?work wdt:P180 ?_ . } wd:P8923 wdt:P1630 ?formatterurl . BIND(IRI(REPLACE(?SMBID, '^(.+)$', ?formatterurl)) AS ?URL). SERVICE wikibase:label { bd:serviceParam wikibase:language "de,[AUTO_LANGUAGE],en". } }

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#>
# Objekte der Gemäldegalerie ohne Themenangabe
SELECT ?work ?workLabel ?URL WHERE {
  ?work wdt:P276 wd:Q165631 ;
        wdt:P8923 ?SMBID .
  FILTER NOT EXISTS {
    ?work wdt:P180 ?_ .
  }
  wd:P8923 wdt:P1630 ?formatterurl .
  BIND(IRI(REPLACE(?SMBID, '^(.+)$', ?formatterurl)) AS ?URL).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?SMBID") v5("?URL"):::projected v2("?_") v4("?formatterurl") v1("?work"):::projected c8(["bd:serviceParam"]):::iri c5(["wd:P8923"]):::iri c3(["wd:Q165631"]):::iri c10(["de,#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P180"--> e0v2 e0v2("?_"):::projected e0v1("?work"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"wdt:P180"--> v2 v1 --"wdt:P276"--> c3 v1 --"wdt:P8923"--> v3 c5 --"wdt:P1630"--> v4 bind1[/"replace(?SMBID,'^(.+)$',?formatterurl)"/] v3 --o bind1 v4 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end