query-28012f18748aba1b61f7aed9ba0d83ee
Names for types of coin
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?name WHERE {
?sub wdt:P279+/rdfs:label "coin"@en.
{?sub rdfs:label ?name} UNION {?sub skos:altLabel ?name} FILTER (lang(?name)="en")
FILTER ( !CONTAINS(?name, "coin") )
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?name"):::projected
v2("?sub")
a1((" "))
c5([scoin^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
f0[["not contains(?name,'coin')"]]
f0 --> v1
f1[["?name = 'en'"]]
f1 --> v1
v2 --"wdt:P279"--> a1
a1 --"rdfs:label"--> c5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"skos:altLabel"--> v1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"rdfs:label"--> v1
end
union0r <== or ==> union0l
end