query-63111b17166285d0a5e829e298ea420f

rq turtle/ttl

This version adds the item, property and value of the statement referenced:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?statement ?subjectLabel ?subject ?propertyLabel ?property ?objectLabel ?object ?refURL WHERE {

  ?ref pr:P854 ?refURL
  FILTER (CONTAINS(str(?refURL),'lefigaro.fr')) .
  ?statement prov:wasDerivedFrom ?ref .
  ?subject ?p ?statement .
  ?property wikibase:claim ?p .
  ?property wikibase:statementProperty ?ps .
  ?statement ?ps ?object .
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?object"):::projected v5("?p") v6("?property"):::projected v7("?ps") v2("?ref") v1("?refURL"):::projected v3("?statement"):::projected v4("?subject"):::projected c7(["bd:serviceParam"]):::iri c9(["en"]):::literal f0[["contains(str(?refURL),'lefigaro.fr')"]] f0 --> v1 v2 --"pr:P854"--> v1 v3 --"prov:wasDerivedFrom"--> v2 v4 -->v5--> v3 v6 --"wikibase:claim"--> v5 v6 --"wikibase:statementProperty"--> v7 v3 -->v7--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end