query-6cc13b33af10626f29e27565b31ac75b
main subjects "history of" (from Gartenlaube) SELECT ?subject ?theme ?thema WHERE { ?item wdt:P1433 wd:Q655617. ?item wdt:P921 ?subject. ?subject rdfs:label ?thema filter (lang(?thema) = "de"). ?subject rdfs:label ?theme filter (lang(?theme) = "en"). FILTER( CONTAINS( ?theme, "history" )). } GROUP BY ?subject ?theme ?thema
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#>
#main subjects "history of" (from Gartenlaube)
SELECT ?subject ?theme ?thema
WHERE
{
?item wdt:P1433 wd:Q655617.
?item wdt:P921 ?subject.
?subject rdfs:label ?thema filter (lang(?thema) = "de").
?subject rdfs:label ?theme filter (lang(?theme) = "en").
FILTER( CONTAINS( ?theme, "history" )).
} GROUP BY ?subject ?theme ?thema
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item")
v4("?subject"):::projected
v2("?thema"):::projected
v1("?theme"):::projected
c5(["wd:Q655617"]):::iri
f0[["contains(?theme,'history')"]]
f0 --> v1
f1[["?theme = 'en'"]]
f1 --> v1
f2[["?thema = 'de'"]]
f2 --> v2
v3 --"wdt:P1433"--> c5
v3 --"wdt:P921"--> v4
v4 --"rdfs:label"--> v2
v4 --"rdfs:label"--> v1