query-ddeaf48d76ef6df36f0a0bfcd033335e

rq turtle/ttl

Propertiesbased on (P144)XML namespace URL (P7510)file format identification pattern (P4152)reference URL (P854)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 ?XMLformat ?XMLformatLabel ?namespace ?signature ?source WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?XMLformat wdt:P144 wd:Q2115.
  OPTIONAL {?XMLformat wdt:P7510 ?namespace.}
  OPTIONAL {?XMLformat p:P4152 ?statement.
            ?statement ps:P4152 ?signature;
                       prov:wasDerivedFrom ?reference.
           ?reference pr:P854 ?source.}
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?XMLformat"):::projected v2("?namespace"):::projected v5("?reference") v4("?signature"):::projected v6("?source"):::projected v3("?statement") c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q2115"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"p:direct/P144"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:direct/P7510".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:P4152".-> v3 v3 --"p:statement/P4152"--> v4 v3 --"prov:wasDerivedFrom"--> v5 v5 --"p:reference/P854"--> v6 end