query-eb8b1e5cc71e22fef2aca3e4dcbc91b2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT DISTINCT ?item ?website (GROUP_CONCAT(?property;SEPARATOR=', ') AS ?properties) ?ref WHERE {
?item wdt:P856 ?website .
?item wdt:P31 wd:Q5 .
?item wdt:P27 ?country .
FILTER(?country=wd:Q30 || ?country=wd:Q145 || ?country=wd:Q17 || ?country=wd:Q142 || ?country=wd:Q183 )
# FILTER(?country!=wd:Q30 && ?country!=wd:Q145 && ?country!=wd:Q17 && ?country!=wd:Q142 && ?country!=wd:Q183 )
?item ?property ?statement.
?statement prov:wasDerivedFrom ?statement2.
?statement2 pr:P854 ?ref.
filter(contains(str(?ref), "jeugdliteratuur.org"))
}
GROUP BY ?item ?website ?ref
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?country")
v3("?item"):::projected
v8("?properties")
v5("?property"):::projected
v1("?ref"):::projected
v6("?statement")
v7("?statement2")
v4("?website"):::projected
c9(["wd:Q5"]):::iri
f0[["contains(str(?ref),'jeugdliteratuur.org')"]]
f0 --> v1
f1[["(?country = 'wd:Q30' || (?country = 'wd:Q145' || (?country = 'wd:Q17' || (?country = 'wd:Q142' || ?country = 'wd:Q183'))))"]]
f1 --> v2
v3 --"wdt:P856"--> v4
v3 --"wdt:P31"--> c9
v3 --"wdt:P27"--> v2
v3 -->v5--> v6
v6 --"prov:wasDerivedFrom"--> v7
v7 --"pr:P854"--> v1
bind3[/"?property"/]
v5 --o bind3
bind3 --as--o v8