I would like to know how to query Wikidata by using the alias ("also known as").
Right now I am trying
SELECT ?item
WHERE
{
?item rdfs:aliases ?alias.
FILTER(CONTAINS(?alias, "Angela Kasner"@en))
}
LIMIT 5
This is simply a query that works if I replace rdfs:aliases
by rdfs:labels
.
I am trying this, because Help:Aliases says that aliases are searchable in the same way as labels, but I can't find any other resource on that nor can I find an example.
skos:altLabel
instead ofrdfs:aliases
, and probably your next question will be about "Query timeout limit reached". – FluecureSELECT * {wd:Q567 skos:altLabel ?altLabel . FILTER (contains(?altLabel, "Angela Kasner"@en)) }
– Fluecurerdfs:aliases
withrdfs:labels
doesn't seem to work. (Returns "No matching records found") – Infralapsarianrdfs:label
should be instead ofrdfs:labels
. – Fluecure