Maps icon indicating copy to clipboard operation
Maps copied to clipboard

Use wikibase as datasource

Open c-holtermann opened this issue 2 years ago • 4 comments

Is it possible to use wikibase as datasource?

c-holtermann avatar Aug 25 '21 14:08 c-holtermann

This extension does not currently have dedicated support for Wikibase.

That said, Wikibase allows export of data in various formats and the Maps extension allows display of external data in some formats, so perhaps they can be wired together. Maps supports GeoJSON https://maps.extension.wiki/wiki/Leaflet_GeoJSON and KML https://maps.extension.wiki/wiki/KML.

There is also https://github.com/ProfessionalWiki/SemanticWikibase#semantic-wikibase, though this extension is still in beta and not actively developed at present.

If you are looking for some direct integration I'd be curious how you'd imagine that would work.

JeroenDeDauw avatar Aug 25 '21 21:08 JeroenDeDauw

Thank you for your reply.

What I try to achieve is to show a common dataset on maps on different wikis of a wikifarm. As semantic mediawiki is limited to one wiki I've tried wikibase to have a common datastore. I have no clear picture yet if or how that will work.

I've tried semantic wikibase but couldn't get it to work yet.

I've just tried to use Scribunto to access wikibase with mw.wikibase.getEntity() and mw.smw.subobject() to create semantic subobjects. That works for basic data. Next step is to fill in some coordinate data to Wikibase and show that using Maps. When I have collected some experience I'll report how or if I could see a direct link from wikibase to maps.

I'll also have a look at the data exports you mentioned.

c-holtermann avatar Aug 26 '21 07:08 c-holtermann

As semantic mediawiki is limited to one wiki I've tried wikibase to have a common datastore.

Not really. You can connect SMW wikis with tools like https://www.mediawiki.org/wiki/Extension:External_Data

And when Maps is installed, you can do KML export https://maps.extension.wiki/wiki/KML_export and use that as input for the kml parameter. At least in theory, I have not tried this.

JeroenDeDauw avatar Aug 26 '21 10:08 JeroenDeDauw

Thank you for pointing this out. I will have a look at the different options.

c-holtermann avatar Aug 26 '21 11:08 c-holtermann