Page MenuHomePhabricator

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

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

StatusAssignedTask
OpenNone
OpenNone
OpenNone
ResolvedSmalyshev
OpenNone
OpenNone
OpenNone
OpenNone
Opencscott
Resolvedhoo
OpenNone
OpenNone
OpenNone
Resolveddaniel
OpenNone
ResolvedLydia_Pintscher
Resolvedthiemowmde
Resolveddaniel
OpenNone
StalledNone
StalledNone
OpenNone
ResolvedSmalyshev
ResolvedSmalyshev
ResolvedSmalyshev
InvalidNone
Resolveddaniel
ResolvedSmalyshev
ResolvedLydia_Pintscher
ResolvedLadsgroup
OpenNone
ResolvedLadsgroup

Event Timeline

Smalyshev raised the priority of this task from to High.
Smalyshev updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 19 2015, 10:20 PM

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

Deskana moved this task from Needs triage to WDQS on the Discovery board.Oct 27 2015, 10:32 AM
Smalyshev added a comment.EditedOct 29 2015, 12:29 PM

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.

Smalyshev updated the task description. (Show Details)Oct 29 2015, 12:33 PM
Smalyshev set Security to None.
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.

Restricted Application added a subscriber: PokestarFan. · View Herald TranscriptJul 24 2017, 2:13 PM
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 Normal priority.Dec 21 2017, 2:14 AM