query-f04b31ecf56c3f6f1d16dd3504429869
Search items by description 14:23, 6 October 2015 (UTC)) talk (Paucabot, except it had to be not searching on labels, but on descriptions. Thanks in advance. Special:ItemDisambiguationIs there any (easy) way to search for some string in the description field of items only in one particular language? I'm looking for something like to be possible in SPARQL. The SPARQL service (I think) has got fast indexing and range extraction on predicate values. However, the following query times out:oughtIt 14:37, 6 October 2015 (UTC) Jura might be easier --- https://tools.wmflabs.org/autolist/Actually, 14:27, 6 October 2015 (UTC) Jura --- http://quarry.wmflabs.orgNot sure. You could use
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
SELECT ?q ?desc WHERE {
?q schema:description ?desc .
FILTER (STRSTARTS(?desc, 'Langue')) # Could also use CONTAINS()
filter (lang(?desc) = "fr") .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?desc"):::projected
v2("?q"):::projected
f0[["?desc = 'fr'"]]
f0 --> v1
f1[["starts-with(?desc,'Langue')"]]
f1 --> v1
v2 --"schema:description"--> v1