How do these external identifiers work, and how do I get something into one of these namespaces? (I apologize if I have missed them in the documentation)
If I stand up my own wikibase with the Docker containers and create an item for the Mayor of Madison, WI - lets say that creates Q2 in my local wikibase, and it will be accessible via http://localhost:8181/wiki/Item:Q2
Is there some way I could create an item in my local wikibase that would have a URL of http://localhost:8181/wiki/Item:wd:Q16107138 that represents Paul Soglin back in Wikidata but stored in my local wikibase, and that I can reference in other properties in my wikibase - if I create my own entry Q3 for Madison, it'd be nice to be able to point 'head of government' to wd:Q16107138 and be able to use it in my local wikibase and mediawiki instance, so if I have a page for Madison as well as a wikibase entry in the local install I can deference it in the wiki markup.
Or are those namespace identifiers like wd: (and xy: or foo: or whatever namespace) only in the WDQS for making calls out to SERVICE bits in SPARQL, plus whatever the WDQS exporter generates for local RDF?
(Also my apologies if wikibase doesn't work like this at all and I've so badly interpreted what Daniel is saying that I'm about to throw the whole conversation in a dead-end direction)
Thanks!
On Wed, Nov 28, 2018 at 7:03 PM Daniel Kinzler dkinzler@wikimedia.org wrote:
Am 28.11.18 um 10:15 schrieb James Heald:
It should also be made possible for the local wikibase to use local
prefixes
other than 'P' and 'Q' for its own local properties and items, otherwise
it
makes things needlessly confusing -- but currently I think this is not
possible. I think the opposite is the case: ending up with a zoo of prefixes, with items being called A73834 and F0924095 and Q98985 and W094509, would be very confusing. The current approach is to to use the same approach that RDF and XML use: add a kind of namespace identifier in front of "foreign" identifiers. So you would have Q437643 for "local" items, xy:Q8743 for items from xy, foo:Q873287 for items from foo, etc. This is how foreign IDs are currently implemented in Wikibase.
-- Daniel Kinzler Principal Software Engineer, Core Platform Wikimedia Foundation
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata