Maps
Maps copied to clipboard
Use wikibase as datasource
Is it possible to use wikibase as datasource?
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.
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.
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.
Thank you for pointing this out. I will have a look at the different options.