k3b / AndroidGeo2ArticlesMap

Find articles from wikipedia/wikivoyage near given geographic location to be displayed in an interactive map through a generated kmz file
GNU General Public License v3.0
12 stars 3 forks source link

Add support for www.wikidata.org ("Knowledgebase 🔬") #8

Closed k3b closed 1 year ago

k3b commented 1 year ago

Note: slightly different query url/result

that generates

<page title="Q31833" ...>
    <entityterms>
        <label>
            <term>Aquarium of Rhodes</term>
        </label>
        <description>
            <term>
            research centre, aquarium and museum in Rhodes, Greece
            </term>
        </description>
    </entityterms>
        ...
</page>

<page _idx="34777" pageid="34777" ns="0" title="Q31833" index="-1" contentmodel="wikibase-item" pagelanguage="en" pagelanguagehtmlcode="en" pagelanguagedir="ltr" touched="2021-09-22T10:44:58Z" lastrevid="1501548170" length="8875" fullurl="https://www.wikidata.org/wiki/Q31833" editurl="https://www.wikidata.org/w/index.php?title=Q31833&action=edit" canonicalurl="https://www.wikidata.org/wiki/Q31833">
    <entityterms>
        <label>
            <term>Aquarium of Rhodes</term>
        </label>
        <description>
            <term>
            research centre, aquarium and museum in Rhodes, Greece
            </term>
        </description>
    </entityterms>
    <coordinates>
    <co lat="36.4571" lon="28.2207" primary="" globe="earth"/>
    </coordinates>
    <extract xml:space="preserve"/>
</page>

This is the query url used by other sites

k3b commented 1 year ago

Will be available in next release v1.6