query-0d48460415d19dcc066c7bf5f6e68a27
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select distinct ?item (str(?label) as ?string) {
#
?item wdt:P31 wd:Q101352 .
optional {?item wdt:P1705 ?native} filter (!bound(?native))
?item rdfs:label ?label .
filter(regex(?label, "ger", "i"))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?label"):::projected
v2("?native")
v4("?string")
c4(["wd:Q101352"]):::iri
f0[["regex(?label,'ger','i')"]]
f0 --> v1
f1[["not bound(?native)"]]
f1 --> v2
v3 --"wdt:P31"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1705".-> v2
end
v3 --"rdfs:label"--> v1
bind2[/"str(?label)"/]
v1 --o bind2
bind2 --as--o v4