Yurik updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
SERVICE wikibase:geolookup {

# --- INPUT ---

bd:serviceParam wikibase:data 'World Countries Outline.map' . # this is the .map page on Commons in the data namespace
bd:serviceParam wikibase:globe wd:Q2 . # The globe which is being searched. Optional, default it's Earth (wd:Q2)data 'World Countries Outline.map' .

bd:serviceParam wikibase:location ?location . # INPUT: ?location specifies the point to lookup# The globe which is being searched. Optional, default it's Earth (wd:Q2)
?countryWd wikibase:property 'bd:serviceParam wikidataId' . # Assigns geojson's wikidataId property to ?countryWdbase:globe wd:Q2 .

?countryIso wikibase:property 'isoCode' . # more than one property can be extracted from the same geojson feature# ?location specifies the point to lookup
} }
```
=== Usage as a lookup
bd:serviceParam wikibase:location ?location .

# --- OUTPUT ---

**NOTE**: @smalyshev does not recommend this approach, as functions are not well suited for external data initialization, like services. # Assigns geojson's wikidataId property to ?countryWd
```lang=sparql ?countryWd wikibase:property 'wikidataId' .

?wd wdt:P625 ?location .# more than one property can be extracted from the same geojson feature
BIND(geof:lookup('World Countries Outline.map', ?location,countryIso wikibase:property 'iso') as ?iso)Code' .
} }

```

=== Algorithm
...

TASK DETAIL
https://phabricator.wikimedia.org/T179991

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Yurik
Cc: daniel, Smalyshev, Aklapper, Yurik, Lahi, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Reasno, Gehel, Jonas, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, Base, aude, Tobias1984, Manybubbles, jayvdb, zhuyifei1999, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to