query-552fad1f33d451d0f487a007645392ca
Value to clean for Nintendo E-Shop
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?state ?item ?itemLabel ?eshop WHERE {
# get the statement, required to delete with QuickStatement
?item p:P4685 ?state.
# get the value from that statement
?state ps:P4685 ?eshop.
# filter to keep only the one that should be here
FILTER(REGEX(?eshop, "^.*-(switch|3ds|wii-u)$"))
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;
v1("?eshop"):::projected
v2("?item"):::projected
v3("?state"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["regex(?eshop,'^.*-(switch|3ds|wii-u)$')"]]
f0 --> v1
v2 --"p:P4685"--> v3
v3 --"p:statement/P4685"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end