[OSM-talk] Administrative boundaries export

César Martínez Izquierdo cesar.izq at gmail.com
Fri Oct 4 13:08:10 UTC 2013


I have finally found the way. I leave some examples here:

As JSON:
http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q5720&languages=en&format=json
As XML:
http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q5720&languages=en&format=xml

Using title:
http://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Valencian%20Community&languages=en&format=xml

Regards,

César


2013/10/4 Eugene Alvin Villar <seav80 at gmail.com>

> On Fri, Oct 4, 2013 at 1:35 AM, César Martínez Izquierdo <
> cesar.izq at gmail.com> wrote:
>
>> Thanks Eugene, that looks really promising.
>> I've seen there is an API to query Wikidata (results can be list of
>> Wikidata item IDs encoded as JSON), but I don't see the way to get the item
>> itself as JSON (or any other parseable format). Is it on the way?
>>
>
> Unfortunately, I am not up-to-par with the API side of Wikidata. I assume
> that every bit of data on Wikidata can or will be accessible through APIs.
> Otherwise, it would limit the usefulness of Wikidata if we resort to
> scraping the HTML page.
>
>
>


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   César Martínez Izquierdo
   GIS developer
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
   ETC-SIA: http://sia.eionet.europa.eu/
   Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20131004/268bf5e5/attachment.html>


More information about the talk mailing list