query-e364fdac4d172afe751679155613a420
Connections from Ashmolean Museum items to Japan Search entities
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?work ?workLabel ?propertyLabel ?thingLabel (?jps AS ?japan_search_id) WHERE {
?thing wdt:P6698 ?jps FILTER (!CONTAINS(?jps, "nmoa-")).
VALUES ?prop {wdt:P170 wdt:P180}
?work wdt:P195 wd:Q636400; ?prop ?thing.
?property ?ref ?prop ;
rdf:type wikibase:Property
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?thingLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?japan_search_id")
v2("?jps"):::projected
v4("?prop")
v6("?property")
v7("?ref")
v3("?thing")
v1("?thingLabel"):::projected
v5("?work"):::projected
c8(["bd:serviceParam"]):::iri
c6(["wikibase:Property"]):::iri
c4(["wd:Q636400"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not contains(?jps,'nmoa-')"]]
f0 --> v2
v3 --"wdt:P6698"--> v2
bind1[/VALUES ?prop/]
bind1-->v4
bind10(["wdt:P170"])
bind10 --> bind1
bind11(["wdt:P180"])
bind11 --> bind1
v5 --"wdt:P195"--> c4
v5 -->v4--> v3
v6 -->v7--> v4
v6 --"a"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind2[/"?jps"/]
v2 --o bind2
bind2 --as--o v8