DBpedia Datatypes: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
DBpedia defines datatypes for units and dimensions. The following datatypes are available:
DBpedia defines datatypes for units and dimensions.  


= XML Schema Datatypes =
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]]:
<pre>{{PropertyMapping | templateProperty = altura | ontologyProperty = height | unit = Length }}
</pre>
* 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]]:
<pre>{{PropertyMapping | templateProperty = length_ft | ontologyProperty = length | unit = foot}}
</pre>
 
In both cases:
* The number is converted to SI units (eg meters for Length)
* In some cases, a specific property with a more appropriate unit is also created. Eg http://dbpedia.org/ontology/Person/height is in centimeters
 
= XML and RDF Datatypes =
* [[Datatype:rdf:langString]]
* [[Datatype:xsd:anyURI]]
* [[Datatype:xsd:anyURI]]
* [[Datatype:xsd:boolean]]
* [[Datatype:xsd:boolean]]
Line 20: Line 33:
* [[Datatype:xsd:string]]
* [[Datatype:xsd:string]]
* [[Datatype:xsd:time]]
* [[Datatype:xsd:time]]
= [[Datatype:Area|Area]] =
= [[Datatype:Area|Area]] =
* [[Datatype:squareNauticalMile]]
* [[Datatype:squareNauticalMile]]
Line 296: Line 310:
* [[Datatype:peoplePerSquareKilometer]]: '''duplicate, should be deleted'''
* [[Datatype:peoplePerSquareKilometer]]: '''duplicate, should be deleted'''
= [[Datatype:Power|Power]] =
= [[Datatype:Power|Power]] =
* [[Datatype:brakeHorsepower]]
* [[Datatype:brakeHorsepower]], see [https://en.wikipedia.org/wiki/Horsepower#Brake_horsepower en.wikipedia]. This is like horsepower but of an engine stripped from auxiliary components, so as to maximize the measurement.
* [[Datatype:pferdestaerke]]
* [[Datatype:pferdestaerke]], see [https://de.wikipedia.org/wiki/Pferdestärke de.wikipedia]. '''I think should be merged with horsepower'''
* [[Datatype:horsepower]]
* [[Datatype:horsepower]], see [https://en.wikipedia.org/wiki/Horsepower en.wikipedia]
* [[Datatype:gigawatt]]
* [[Datatype:gigawatt]]
* [[Datatype:megawatt]]
* [[Datatype:megawatt]]
Line 304: Line 318:
* [[Datatype:kilowatt]]
* [[Datatype:kilowatt]]
* [[Datatype:watt]]
* [[Datatype:watt]]
= [[Datatype:ElectricCurrent|ElectricCurrent]] =
= [[Datatype:ElectricCurrent|ElectricCurrent]] =
* [[Datatype:ampere]]
* [[Datatype:ampere]]

Latest revision as of 11:16, 20 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:

{{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:
{{PropertyMapping | templateProperty = length_ft | ontologyProperty = length | unit = foot}}

In both cases:

XML and RDF 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