fnielsen / ordia

Wikidata lexemes presentations
https://ordia.toolforge.org
Apache License 2.0
24 stars 13 forks source link

Automatically search wikisource #71

Closed fnielsen closed 2 years ago

fnielsen commented 4 years ago
SELECT * WHERE {
  SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:api "Search" .
      bd:serviceParam wikibase:endpoint "da.wikisource.org" .
      bd:serviceParam mwapi:srsearch "storslået" .
      bd:serviceParam mwapi:language "da" .
      ?title wikibase:apiOutput mwapi:title .
  }
  hint:Prior hint:runFirst "true" .
  BIND(CONCAT("https://da.wikisource.org/wiki/", ENCODE_FOR_URI(?title)) AS ?titleUrl)
}
LIMIT 20
fnielsen commented 2 years ago

This has been implemented for some time.