Page MenuHomePhabricator

Represent simple values with units in RDF
Open, Stalled, MediumPublic

Description

RDF representation has two ways of representing a value: simple and full. While the full value includes the unit and thus represents the full information about the value, the simple value currently does not have any unit information.

The purpose of this task is to develop a way to represent unit in the simple value, if possible.

Current proposal (derived from https://etherpad.wikimedia.org/p/Wikidata_Meeting_Berlin_10262015) and attached pictures, is:

  • Each property can have primary standard unit
  • If the current unit can be converted to this unit, it is represented as xsd:decimal
  • Otherwise, if the unit is not "1", it is listed as "1234"^^wdu:Q1234, where wdu:Q1234 is defined as:
wdu:Q1234 rdfs:subclassOf xsd:decimal, wikibase:measuredBy wd:Q1234

The wdu: units are generated on the first use and there will be a mechanism preventing (or reducing if full prevention is too expensive memory-wise) their duplication.

If the property has no standard unit defined, the values are converted to normalized units (see T117031) and presented as above with their units.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
ResolvedSmalyshev
DuplicateNone
DuplicateNone
OpenNone
OpenNone
OpenNone
OpenNone
Resolvedhoo
OpenNone
OpenNone
ResolvedFeatureMichael
Resolveddaniel
OpenNone
ResolvedLydia_Pintscher
Resolvedthiemowmde
Resolveddaniel
OpenNone
StalledNone
StalledNone
OpenNone
ResolvedSmalyshev
ResolvedSmalyshev
ResolvedSmalyshev
InvalidNone
Resolveddaniel
ResolvedSmalyshev
OpenNone
ResolvedLydia_Pintscher
ResolvedLadsgroup
OpenNone
ResolvedLadsgroup

Event Timeline

Smalyshev raised the priority of this task from to High.
Smalyshev updated the task description. (Show Details)

One idea could be "1234"^^<datatype-IRI>" e.g. 15.2 kilometers is "15.2"^^<http://www.wikidata.org/entity/Q828224>

Current proposal (derived from https://etherpad.wikimedia.org/p/Wikidata_Meeting_Berlin_10262015) and attached pictures, is:

  • Each property can have primary standard unit
  • If the current unit can be converted to this unit, it is represented as xsd:decimal
  • Otherwise, if the unit is not "1", it is listed as "1234"^^wdu:Q1234, where wdu:Q1234 is defined as:
wdu:Q1234 rdfs:subclassOf xsd:decimal, wikibase:measuredBy wd:Q1234

The wdu: units are generated on the first use and there will be a mechanism preventing (or reducing if full prevention is too expensive memory-wise) their duplication.

If the property has no standard unit defined, the values are converted to normalized units (see T117031) and presented as above with their units.

daniel raised the priority of this task from High to Needs Triage.Sep 12 2016, 5:13 PM

We pushed this back several times, and it seems that there is no pressing need for this at the moment. Should be triaged again.

daniel changed the task status from Open to Stalled.Jul 24 2017, 2:13 PM

There currently seems no good way to do this.

Smalyshev triaged this task as Medium priority.Dec 21 2017, 2:14 AM