query-7f51f6b034782bb5594d4c1fa0e645ef
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?article_en ?article_es ?work ?inventory_number ?creator ?creatorLabel ?collection ?collectionLabel WHERE {
?work wdt:P195 wd:Q1471477.
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl" . }
OPTIONAL { ?work wdt:P170 ?creator . }
OPTIONAL { ?work wdt:P195 ?collection . }
OPTIONAL { ?work wdt:P217 ?inventory_number . }
OPTIONAL { ?article_en schema:about ?work ; schema:isPartOf <https://en.wikipedia.org/> . }
OPTIONAL { ?article_es schema:about ?work ; schema:isPartOf <https://es.wikipedia.org/> . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article_en"):::projected
v6("?article_es"):::projected
v3("?collection"):::projected
v2("?creator"):::projected
v4("?inventory_number"):::projected
v1("?work"):::projected
c11([https://en.wikipedia.org/]):::iri
c4(["bd:serviceParam"]):::iri
c12([https://es.wikipedia.org/]):::iri
c2(["wd:Q1471477"]):::iri
c6(["nl"]):::literal
v1 --"wdt:P195"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P170".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P195".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P217".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v1
v5 --"schema:isPartOf"--> c11
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:about".-> v1
v6 --"schema:isPartOf"--> c12
end