query-d2de894e9f73ada307ce79fdc4b3ae71

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?cantic ?ref_named_as ?url
WHERE 
{
  ?item wdt:P1273 ?cantic.
  ?item p:P570 ?stat .
  ?stat prov:wasDerivedFrom ?stat2 .
  ?stat2 pr:P854 ?url.
  ?stat2 pr:P1810 ?ref_named_as.
  filter (contains(str(?url),"cantic"))
  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("?cantic"):::projected v2("?item"):::projected v6("?ref_named_as"):::projected v4("?stat") v5("?stat2") v1("?url"):::projected c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["contains(str(?url),'cantic')"]] f0 --> v1 v2 --"p:direct/P1273"--> v3 v2 --"p:P570"--> v4 v4 --"prov:wasDerivedFrom"--> v5 v5 --"p:reference/P854"--> v1 v5 --"p:reference/P1810"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end