Discussion:
[BREAKING] Planned RDF ontology prefix change
(too old to reply)
Stas Malyshev
2018-10-17 22:21:47 UTC
Permalink
Hi!

We are planning to change the prefix and associated URIs in RDF
representation for Wikidata from:

PREFIX wikibase: <http://wikiba.se/ontology-beta#>

to:

PREFIX wikibase: <http://wikiba.se/ontology#>

If you are using Wikidata Query Service, you do not have to do anything,
as WDQS already is using the new definition.

However, if you consume RDF exports from Wikidata or RDF dumps directly,
you will need to change your clients to expect the new URI scheme for
Wikibase ontology.
Also, if you're using Wikibase extension in your project, please be
aware that the RDF URIs generated by it will use this prefix after the
change. This is defined in repo/includes/Rdf/RdfVocabulary.php around
line 175:

self::NS_ONTOLOGY => self::ONTOLOGY_BASE_URI . "#",

The new data will have schema:softwareVersion "1.0.0" triple on the
dataset node[1], which will allow your software to distinguish the new
data format from the old one.

The task tracking the change is
https://phabricator.wikimedia.org/T112127. I will make another
announcement when the change is merged and deployed and the data
produced by Wikidata is going to change.

Please contact me (or comment in the task) if you have any questions or
concerns.

[1] https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Header
--
Stas Malyshev
***@wikimedia.org
Dan Brickley
2018-10-17 22:31:33 UTC
Permalink
If you're making the change, maybe worth going to https: as it'll be
painful to do later?
Post by Stas Malyshev
Hi!
We are planning to change the prefix and associated URIs in RDF
PREFIX wikibase: <http://wikiba.se/ontology-beta#>
PREFIX wikibase: <http://wikiba.se/ontology#>
If you are using Wikidata Query Service, you do not have to do anything,
as WDQS already is using the new definition.
However, if you consume RDF exports from Wikidata or RDF dumps directly,
you will need to change your clients to expect the new URI scheme for
Wikibase ontology.
Also, if you're using Wikibase extension in your project, please be
aware that the RDF URIs generated by it will use this prefix after the
change. This is defined in repo/includes/Rdf/RdfVocabulary.php around
self::NS_ONTOLOGY => self::ONTOLOGY_BASE_URI . "#",
The new data will have schema:softwareVersion "1.0.0" triple on the
dataset node[1], which will allow your software to distinguish the new
data format from the old one.
The task tracking the change is
https://phabricator.wikimedia.org/T112127. I will make another
announcement when the change is merged and deployed and the data
produced by Wikidata is going to change.
Please contact me (or comment in the task) if you have any questions or
concerns.
[1]
https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Header
--
Stas Malyshev
_______________________________________________
Wikidata mailing list
https://lists.wikimedia.org/mailman/listinfo/wikidata
Stas Malyshev
2018-10-17 23:06:16 UTC
Permalink
Hi!
Post by Dan Brickley
If you're making the change, maybe worth going to https: as it'll be
painful to do later?
Please see https://phabricator.wikimedia.org/T153563 where it was
discussed. In general, there's no reason to use https for ontology URIs,
as ontology URIs do not have any data in them and accessing them would
not be very useful.
--
Stas Malyshev
***@wikimedia.org
Stas Malyshev
2018-11-16 22:39:50 UTC
Permalink
Hi!
Post by Stas Malyshev
We are planning to change the prefix and associated URIs in RDF
PREFIX wikibase: <http://wikiba.se/ontology-beta#>
PREFIX wikibase: <http://wikiba.se/ontology#>
The change has been implemented now, and RDF data is generated without
the beta prefix. Please tell me if you notice any problems or have any
questions.
--
Stas Malyshev
***@wikimedia.org
Loading...