query-0f133ce8dd1e3433fea4d5678a6aa036

rq turtle/ttl

Other QueriesGet all properties, qualifiers and references of an item

Use at

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 ?wdLabel ?ps_Label ?wdpqLabel ?pq_Label ?refLabel WHERE {
  VALUES ?company {
    wd:Q112127138
  }
  ?company ?p ?statement.
  ?statement ?ps ?ps_.
  ?wd wikibase:claim ?p;
    wikibase:statementProperty ?ps.
  OPTIONAL {
    ?statement ?pq ?pq_.
    ?wdpq wikibase:qualifier ?pq.
  }
  OPTIONAL {
    ?statement prov:wasDerivedFrom ?refnode.
    ?refnode pr:P248 ?ref.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
ORDER BY (?wd) (?statement) (?ps_)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?company") v5("?p") v7("?pq") v8("?pq_") v6("?ps") v3("?ps_") v11("?ref") v10("?refnode") v2("?statement") v1("?wd") v9("?wdpq") c9(["de"]):::literal c7(["bd:serviceParam"]):::iri bind0[/VALUES ?company/] bind0-->v4 bind00(["wd:Q112127138"]) bind00 --> bind0 v4 -->v5--> v2 v2 -->v6--> v3 v1 --"wikibase:claim"--> v5 v1 --"wikibase:statementProperty"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -->v7--> v8 v9 -."wikibase:qualifier".-> v7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."prov:wasDerivedFrom".-> v10 v10 --"pr:P248"--> v11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end