query-342c54f6199c7009bf61cdd81ac07cf5

rq turtle/ttl

Labels containing HTML escape sequences Labels containing HTML escape sequences Labels containing HTML escape sequences Étiquettes contenant des séquences HTML échappées Labels containing HTML escape sequences Labels met HTML-escape-sequenties Labels containing HTML escape sequences Labels containing HTML escape sequences Labels containing HTML escape sequences

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?snippet
WHERE {
  # Old approach was:
  #   ?item rdfs:label ?label . FILTER CONTAINS(?label, "&quot;") .
  # It worked before 2017, but due to database growth it started to timeout, eventually.
  # Luckily, there is an alternative way to search in labels and aliases with CirrusSearch.
  # See [[mw:Help:Extension:WikibaseCirrusSearch]] and [[mw:Wikidata Query Service/User Manual/MWAPI]] for more details.

  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "inlabel:"&quot;"" .
    ?snippet wikibase:apiOutput "@snippet". 
    ?item wikibase:apiOutputItem mwapi:title. 
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at