query-10688ed92764978e42500dcc731c08fd

rq turtle/ttl

Liste des éléments de nature XY disposant d'un identifiant externe donné par une institution type archives

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE {
  {
    ?item wdt:P31 wd:Q10648343;
        wikibase:identifiers ?identifiers.
  }
 UNION 
  {
    {?identifiers wdt:P2378 ?Archives.}
     UNION {?item wdt:P1629 ?Archives.}
    ?Archives wdt:P31/wdt:P279* wd:Q166118.
  }
  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("?Archives") v2("?identifiers") v1("?item"):::projected a1((" ")) c7(["wd:Q166118"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q10648343"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1629"--> v3 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P2378"--> v3 end union1r <== or ==> union1l end v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 v1 --"wikibase:identifiers"--> v2 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end