query-86edb5a23184c8e1daf10261623389b6
Lonely aliases
Use at
- https://query.wikidata.org/sparql
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?lang {
?item skos:altLabel ?alias .
BIND(LANG(?alias) AS ?lang) .
# FILTER( ?lang = "my_language" ) .
# FILTER( ?lang IN ( "my_language1", "my_language2" ) ) .
MINUS {
?item rdfs:label ?label .
BIND(LANG(?label) AS ?lang1) .
FILTER(?lang1 = ?lang) .
} .
} LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?alias")
v1("?item"):::projected
v5("?label")
v3("?lang"):::projected
v6("?lang1")
v1 --"skos:altLabel"--> v2
bind0[/"?alias"/]
v2 --o bind0
bind0 --as--o v3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
f2[["?lang1 = ?lang"]]
f2 --> v6
f2 --> v3
v1 --"rdfs:label"--> v5
bind3[/"?label"/]
v5 --o bind3
bind3 --as--o v6
end