Page MenuHomePhabricator

Wikibase's ontology-1.0.owl has the label "referenceValue" repeated
Closed, ResolvedPublic

Description

Lines 310-311 of https://wikiba.se/ontology-1.0.owl are:

<owl:ObjectProperty rdf:about="&wikibase;referenceValueNormalized">
    <rdfs:label>referenceValue</rdfs:label>

The label "referenceValue" is already defined on line 305 and, for consistency, this should be "referenceValueNormalized":

<owl:ObjectProperty rdf:about="&wikibase;referenceValueNormalized">
    <rdfs:label>referenceValueNormalized</rdfs:label>

Event Timeline

Change 630228 had a related patch set uploaded (by Abián; owner: Abián):
[mediawiki/extensions/Wikibase@master] The rdfs:label "referenceValue" is repeated. The second one should be "referenceValueNormalized".

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

Change 630228 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] The rdfs:label "referenceValue" is repeated

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

Is there a reason we should have a copy of this file on the wikiba.se website instead of linking to the source? It's not linked anywhere on the site itself, and I think it's a relic from the previous version of the site.

If there's nothing I'm missing, I propose we remove the file from wikiba.se and link to the ontology file from the Developers page.

https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/master/docs/ontology.owl

The one on the Wikibase website is the one that is referenced by other tools that need to understand the ontology etc. It needs to stay there as that's the canonical location and we can't link to the file on gerrit for that.

Good to know. I'll accept the PR and ask further questions elsewhere :)

I know three ontology (OWL) files, all independently edited (which is not good):

  1. https://wikiba.se/ontology-1.0.owl
  2. https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseLexeme/+/refs/heads/master/docs/ontology.owl
  3. https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/refs/heads/master/docs/ontology.owl

[1] manually combines [2] and [3].
[2] imports [1] via <owl:imports rdf:resource="http://wikiba.se/ontology#" /> (line 22), so it partly imports itself.

The important file is [1], and I really don't know the applications of [2] and [3], but they make maintenance tedious.