query-0b1e35d95221c24ae0cb458e87cf62b8

rq turtle/ttl

TODO

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?property ?ref
WHERE {

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "jeugdliteratuur".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  ?item ?property ?statement.
  ?statement prov:wasDerivedFrom ?statement2. 
  ?statement2 pr:P854 ?ref.
  filter(contains(str(?ref), "jeugdliteratuur.org"))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v4("?property"):::projected v1("?ref"):::projected v5("?statement") v6("?statement2") v2("?title") c7(["www.wikidata.org"]):::literal c3(["bd:serviceParam"]):::iri c5(["Search"]):::literal c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal c11(["mwapi:title"]):::iri c9(["jeugdliteratuur"]):::literal f0[["contains(str(?ref),'jeugdliteratuur.org')"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c3 --"mwapi:api"--> c5 c3 --"mwapi:endpoint"--> c7 c3 --"mwapi:srsearch"--> c9 v2 --"mwapi:apiOutput"--> c11 end bind1[/"concat(str('wd:'),?title)"/] v2 --o bind1 bind1 --as--o v3 v3 -->v4--> v5 v5 --"prov:wasDerivedFrom"--> v6 v6 --"pr:P854"--> v1 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c3 --"mwapi:language"--> c16 end