DBpedia Datatypes: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
The page below shows a "hierarchy" of datatypes, although there's no such thing as subClassOf for datatypes (see [https://github.com/dbpedia/mappings-tracker/issues/22 #22]). In [[Template:PropertyMapping|PropertyMapping]].unit you can specify:
The page below shows a "hierarchy" of datatypes, although there's no such thing as subClassOf for datatypes (see [https://github.com/dbpedia/mappings-tracker/issues/22 #22]). In [[Template:PropertyMapping|PropertyMapping]].unit you can specify:
* Either a super-datatype, in which case the templateProperty is expected to have an explicit unit. Eg in [Mapping_pt:Info/Futebolista]:
* Either a super-datatype, in which case the templateProperty is expected to have an explicit unit. Eg in [Mapping_pt:Info/Futebolista]:
      {{PropertyMapping | templateProperty = altura | ontologyProperty = height | unit = Length }}
        {{PropertyMapping | templateProperty = altura | ontologyProperty = height | unit = Length }}
* Or a specific datatype, in which case the templateProperty carries a pure number, which is interpreted as the provided unit. Eg in [Mapping_en:Infobox_street]:
* Or a specific datatype, in which case the templateProperty carries a pure number, which is interpreted as the provided unit. Eg in [Mapping_en:Infobox_street]:
      {{PropertyMapping | templateProperty = length_ft | ontologyProperty = length | unit = foot}}
        {{PropertyMapping | templateProperty = length_ft | ontologyProperty = length | unit = foot}}


In both cases:
In both cases:

Revision as of 13:00, 19 January 2015

DBpedia defines datatypes for units and dimensions.

The page below shows a "hierarchy" of datatypes, although there's no such thing as subClassOf for datatypes (see #22). In PropertyMapping.unit you can specify:

  • Either a super-datatype, in which case the templateProperty is expected to have an explicit unit. Eg in [Mapping_pt:Info/Futebolista]:


Property Mapping (help)
template property altura
ontology property height
unitLength
  • Or a specific datatype, in which case the templateProperty carries a pure number, which is interpreted as the provided unit. Eg in [Mapping_en:Infobox_street]:


Property Mapping (help)
template property length_ft
ontology property length
unitfoot


In both cases:

XML Schema Datatypes

Area

Currency

Density

Energy

FlowRate

Force

FuelEfficiency

Frequency

InformationUnit

Length

LinearMassDensity

Mass

PopulationDensity

Power

ElectricCurrent

Voltage

Pressure

Speed

Temperature

Time

Torque

Volume

Other

Unknown

I think should be deleted