Page MenuHomePhabricator

Decide how to represent quantities with units as RDF literals.
Open, MediumPublic

Description

It would be really nice if we could indicate the unit of the literal we provide for the "plain" mapping of quantity values. The plain mapping should always be a single resources or literal. So the unit has to be either encoded into the string, or into the literal's type.

I think something like "12.7"^^wdu:Q828224 would be a nice representation. But we would have to somehow indicate that wdu:Q828224 is a subtype of xsd:decimal. The declaration of that relationship needs to be included in the RDF output, and we would have to make sure that consumers, in particular WDQS/BlazeGraph, will understand hand treat the "12.7" as a decimal value, not a plain string.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
ResolvedSmalyshev
DuplicateNone
DuplicateNone
OpenNone
OpenNone
OpenNone
OpenNone
Resolveddaniel
OpenNone
ResolvedLydia_Pintscher
Resolvedthiemowmde
Resolveddaniel
OpenNone
ResolvedLydia_Pintscher
ResolvedLadsgroup
OpenNone
ResolvedLadsgroup
OpenNone
Resolvedhoo
OpenNone
OpenNone
OpenNone

Event Timeline

daniel created this task.Oct 27 2016, 5:07 PM
daniel added a project: Wikidata-Query-Service.
Restricted Application added a project: Discovery. · View Herald TranscriptOct 27 2016, 5:08 PM
Lydia_Pintscher triaged this task as Medium priority.Jun 11 2017, 6:07 PM
Smalyshev updated the task description. (Show Details)Apr 4 2018, 8:28 PM
Gehel moved this task from SDAW to RDF Model on the Wikidata-Query-Service board.Mar 18 2020, 1:39 PM