Page MenuHomePhabricator

Figure out a process to keep the Wikibase ontology and documentation in sync
Open, MediumPublic

Description

In T137022 I filed a task that the new wikibase:ExternalId data type was missing at http://wikiba.se/ontology-1.0.owl and https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Value_representation , but did show up in https://query.wikidata.org/#%23List%20of%20property%20types%0ASELECT%20DISTINCT%20%3Fpropertytype%0AWHERE%0A%7B%0A%09%3Fproperty%20wikibase%3ApropertyType%20%3Fpropertytype%0A%7D%0ALIMIT%20100 and https://www.wikidata.org/wiki/Special:ListDatatypes . This was fixed, but already two more data types (Geographic shape and Tabular data) are missing.

We should figure out some process so at least https://wikiba.se/ontology-1.0.owl is always up to date and https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Value_representation closely behind it. I would expect the ontology to be generated automatically so some test could probably catch it. For the documentation part it comes down to the discipline of the developer implementing something new.

Details

Event Timeline

Each time we add new type we should update ontology (both places) and RDF docs. Same goes if we change types, rename, etc.

Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.
Lydia_Pintscher added a subscriber: Ladsgroup.

Amir: IIRC we have a checklist we can add this to. Can you check?

Change 358314 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/Wikibase@master] Add TabularData to ontology.owl

https://gerrit.wikimedia.org/r/358314

Okay, I looked at it, we have a check list of extending entity types while this task is about new datatypes. We have something in docs/datatypes.wiki but I'm not sure if it's a checklist. Also, even though I'm not an RDF expert but maybe we need to wait until the RDF mapping for new data types is spec'ed out and implemented and then add them to the mediawiki page (for example see T160535: [Task] Provide RDF mapping for geoshape data type. and T121274: Provide an RDF mapping for external identifiers)

There are tow ontology.owl files, one in Wikiba.se repo and on in Wikibase repo. These should be consolidated somehow or at least one of them gets replicated by bot or something.

Change 358314 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add TabularData to ontology.owl

https://gerrit.wikimedia.org/r/358314

@Tarrow Could we make an alarm for this (comparing 2 pages) in the alarm thing?