Skip to content

Commit 1520fc0

Browse files
albendzmisaochan
authored andcommitted
Issue #1408: Try to get the localized version of the wikipedia article (#1445)
* Try to get the localized version of the wikipedia article before defaulting to the English version. Tested with Spanish on physical Android device. Other notes: Difficulties building with gradle due to dexcount plugin: KeepSafe/dexcount-gradle-plugin#234. In testing, disabled the plugin. * Update article fetch to not include unnecessary SERVICE line
1 parent 0cfcd4e commit 1520fc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/resources/queries/nearby_query.rq

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ SELECT
3939
# Get emoji
4040
OPTIONAL { ?classId wdt:P487 ?emoji0. }
4141
OPTIONAL { ?classId wdt:P279*/wdt:P487 ?emoji1. }
42+
43+
OPTIONAL {
44+
?wikipediaArticle schema:about ?item ;
45+
schema:isPartOf <https://${LANG}.wikipedia.org/> .
46+
}
4247
OPTIONAL {
4348
?wikipediaArticle schema:about ?item ;
4449
schema:isPartOf <https://en.wikipedia.org/> .

0 commit comments

Comments
 (0)