Page MenuHomePhabricator

WikibaseLexeme properties are typed owl:DatatypeProperty rather than owl:ObjectProperty in RDF
Open, Needs TriagePublic

Description

As an RDF/OWL expert, I want lexeme-related predicates to be typed correctly. (This is vague because I’m not an RDF/OWL expert)

Problem:
T161991 introduced the rdf-data-type field for a data type to declare whether the RDF type of its properties should be owl:DatatypeProperty (the default, suitable for linking to numbers, strings, coordinates, and other values) or owl:ObjectProperty (suitable for linking to other entities). WikibaseLexeme doesn’t use this field, so predicates for properties of data type wikibase-lexeme, wikibase-form and wikibase-sense get the wrong type assigned in the RDF output.

Example:
P5188, datatype Lexeme:

p:P5188 a owl:ObjectProperty .

psv:P5188 a owl:ObjectProperty .

pqv:P5188 a owl:ObjectProperty .

prv:P5188 a owl:ObjectProperty .

wdt:P5188 a owl:DatatypeProperty .

ps:P5188 a owl:DatatypeProperty .

pq:P5188 a owl:DatatypeProperty .

pr:P5188 a owl:DatatypeProperty .

P369, datatype Item:

p:P369 a owl:ObjectProperty .

psv:P369 a owl:ObjectProperty .

pqv:P369 a owl:ObjectProperty .

prv:P369 a owl:ObjectProperty .

wdt:P369 a owl:ObjectProperty .

ps:P369 a owl:ObjectProperty .

pq:P369 a owl:ObjectProperty .

pr:P369 a owl:ObjectProperty .

Screenshots/mockups:

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

  • wdt:, ps:, pq:, pr: predicates of Lexeme-type properties have the type owl:ObjectProperty
  • wdt:, ps:, pq:, pr: predicates of Form-type properties have the type owl:ObjectProperty
  • wdt:, ps:, pq:, pr: predicates of Sense-type properties have the type owl:ObjectProperty

Open questions: