query-a828f47c080c5ebb97aaac745ce6d2a8

rq turtle/ttl

Propertiesreligion or worldview (P140)date of birth (P569)military branch (P241)named after (P138)inception (P571)headquarters location (P159)dissolved, abolished or demolished date (P576)OCLC control number (P243)page(s) (P304)

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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT (URI(CONCAT(STR(?item), '#', STRAFTER(STR(?p), STR(p:)))) AS ?example)
WHERE {
  VALUES ?p {
    p:P140  # religion
    p:P569  # date of birth
    p:P241  # military branch
    p:P138  # named after
    p:P571  # inception
    p:P159  # headquarter location
    p:P576  # dissolved, abolished, or demolished
  }
  ?ref pr:P243 ?ocn;
       pr:P304 ?pages.
  ?stmt prov:wasDerivedFrom ?ref.
  ?item ?p ?stmt.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?example") v6("?item"):::projected v3("?ocn") v1("?p"):::projected v4("?pages") v2("?ref") v5("?stmt") c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?p/] bind0-->v1 bind00(["p:P140"]) bind00 --> bind0 bind01(["p:P569"]) bind01 --> bind0 bind02(["p:P241"]) bind02 --> bind0 bind03(["p:P138"]) bind03 --> bind0 bind04(["p:P571"]) bind04 --> bind0 bind05(["p:P159"]) bind05 --> bind0 bind06(["p:P576"]) bind06 --> bind0 v2 --"p:reference/P243"--> v3 v2 --"p:reference/P304"--> v4 v5 --"prov:wasDerivedFrom"--> v2 v6 -->v1--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind1[/"concat(str(?item),'#',substring-after(str(?p),str('p:')))"/] v6 --o bind1 v1 --o bind1 bind1 --as--o v7