DBpedia Datatypes: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
(Created page with 'DBpedia defines datatypes for units and dimensions. The following datatypes are available:')
 
 
(15 intermediate revisions by 4 users 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.  
 
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:boolean]]
* [[Datatype:xsd:date]]
* [[Datatype:xsd:dateTime]]
* [[Datatype:xsd:double]]
* [[Datatype:xsd:float]]
* [[Datatype:xsd:gDay]]
* [[Datatype:xsd:gMonth]]
* [[Datatype:xsd:gMonthDay]]
* [[Datatype:xsd:gYear]]
* [[Datatype:xsd:gYearMonth]]
* [[Datatype:xsd:integer]]
* [[Datatype:xsd:negativeInteger]]
* [[Datatype:xsd:nonNegativeInteger]]
* [[Datatype:xsd:nonPositiveInteger]]
* [[Datatype:xsd:positiveInteger]]
* [[Datatype:xsd:string]]
* [[Datatype:xsd:time]]
 
= [[Datatype:Area|Area]] =
* [[Datatype:squareNauticalMile]]
* [[Datatype:squareMile]]
* [[Datatype:acre]]
* [[Datatype:squareYard]]
* [[Datatype:squareFoot]]
* [[Datatype:squareInch]]
* [[Datatype:hectare]]
* [[Datatype:squareKilometre]]
* [[Datatype:squareHectometre]]
* [[Datatype:squareDecametre]]
* [[Datatype:squareDecimetre]]
* [[Datatype:squareCentimetre]]
* [[Datatype:squareMillimetre]]
* [[Datatype:squareMetre]]
= [[Datatype:Currency|Currency]] =
* [[Datatype:afghanAfghani]]
* [[Datatype:albanianLek]]
* [[Datatype:algerianDinar]]
* [[Datatype:angolanKwanza]]
* [[Datatype:angolanKwanza]]
* [[Datatype:argentinePeso]]
* [[Datatype:armenianDram]]
* [[Datatype:arubanGuilder]]
* [[Datatype:australianDollar]]
* [[Datatype:azerbaijaniManat]]
* [[Datatype:bahamianDollar]]
* [[Datatype:bahrainiDinar]]
* [[Datatype:bangladeshiTaka]]
* [[Datatype:barbadosDollar]]
* [[Datatype:belarussianRuble]]
* [[Datatype:belizeDollar]]
* [[Datatype:bermudianDollar]]
* [[Datatype:bhutaneseNgultrum]]
* [[Datatype:bolivianBoliviano]]
* [[Datatype:bosniaAndHerzegovinaConvertibleMarks]]
* [[Datatype:botswanaPula]]
* [[Datatype:brazilianReal]]
* [[Datatype:bruneiDollar]]
* [[Datatype:bulgarianLev]]
* [[Datatype:burundianFranc]]
* [[Datatype:cambodianRiel]]
* [[Datatype:canadianDollar]]
* [[Datatype:capeVerdeEscudo]]
* [[Datatype:caymanIslandsDollar]]
* [[Datatype:centralAfricanCfaFranc]]
* [[Datatype:cfpFranc]]
* [[Datatype:chileanPeso]]
* [[Datatype:colombianPeso]]
* [[Datatype:comorianFranc]]
* [[Datatype:congoleseFranc]]
* [[Datatype:costaRicanColon]]
* [[Datatype:croatianKuna]]
* [[Datatype:cubanPeso]]
* [[Datatype:czechKoruna]]
* [[Datatype:danishKrone]]
* [[Datatype:djiboutianFranc]]
* [[Datatype:dominicanPeso]]
* [[Datatype:eastCaribbeanDollar]]
* [[Datatype:egyptianPound]]
* [[Datatype:eritreanNakfa]]
* [[Datatype:estonianKroon]]
* [[Datatype:ethiopianBirr]]
* [[Datatype:euro]]
* [[Datatype:falklandIslandsPound]]
* [[Datatype:fijiDollar]]
* [[Datatype:gambianDalasi]]
* [[Datatype:georgianLari]]
* [[Datatype:ghanaianCedi]]
* [[Datatype:gibraltarPound]]
* [[Datatype:guatemalanQuetzal]]
* [[Datatype:guineaFranc]]
* [[Datatype:guyanaDollar]]
* [[Datatype:haitiGourde]]
* [[Datatype:honduranLempira]]
* [[Datatype:hongKongDollar]]
* [[Datatype:hungarianForint]]
* [[Datatype:icelandKrona]]
* [[Datatype:indianRupee]]
* [[Datatype:indonesianRupiah]]
* [[Datatype:iranianRial]]
* [[Datatype:iraqiDinar]]
* [[Datatype:israeliNewSheqel]]
* [[Datatype:jamaicanDollar]]
* [[Datatype:japaneseYen]]
* [[Datatype:jordanianDinar]]
* [[Datatype:kazakhstaniTenge]]
* [[Datatype:kenyanShilling]]
* [[Datatype:kuwaitiDinar]]
* [[Datatype:kyrgyzstaniSom]]
* [[Datatype:laoKip]]
* [[Datatype:latvianLats]]
* [[Datatype:lebanesePound]]
* [[Datatype:lesothoLoti]]
* [[Datatype:liberianDollar]]
* [[Datatype:libyanDinar]]
* [[Datatype:lithuanianLitas]]
* [[Datatype:macanesePataca]]
* [[Datatype:macedonianDenar]]
* [[Datatype:malagasyAriary]]
* [[Datatype:malawianKwacha]]
* [[Datatype:malaysianRinggit]]
* [[Datatype:maldivianRufiyaa]]
* [[Datatype:mauritanianOuguiya]]
* [[Datatype:mauritianRupee]]
* [[Datatype:mexicanPeso]]
* [[Datatype:moldovanLeu]]
* [[Datatype:mongolianTögrög]]
* [[Datatype:moroccanDirham]]
* [[Datatype:mozambicanMetical]]
* [[Datatype:myanmaKyat]]
* [[Datatype:namibianDollar]]
* [[Datatype:nepaleseRupee]]
* [[Datatype:netherlandsAntilleanGuilder]]
* [[Datatype:newTaiwanDollar]]
* [[Datatype:newZealandDollar]]
* [[Datatype:nicaraguanCordoba]]
* [[Datatype:nigerianNaira]]
* [[Datatype:northKoreanWon]]
* [[Datatype:norwegianKrone]]
* [[Datatype:omaniRial]]
* [[Datatype:pakistaniRupee]]
* [[Datatype:panamanianBalboa]]
* [[Datatype:papuaNewGuineanKina]]
* [[Datatype:paraguayanGuarani]]
* [[Datatype:peruvianNuevoSol]]
* [[Datatype:philippinePeso]]
* [[Datatype:polishZloty]]
* [[Datatype:poundSterling]]
* [[Datatype:qatariRial]]
* [[Datatype:renminbi]]
* [[Datatype:romanianNewLeu]]
* [[Datatype:russianRouble]]
* [[Datatype:rwandaFranc]]
* [[Datatype:saintHelenaPound]]
* [[Datatype:samoanTala]]
* [[Datatype:saudiRiyal]]
* [[Datatype:serbianDinar]]
* [[Datatype:seychellesRupee]]
* [[Datatype:sierraLeoneanLeone]]
* [[Datatype:singaporeDollar]]
* [[Datatype:slovakKoruna]]
* [[Datatype:solomonIslandsDollar]]
* [[Datatype:somaliShilling]]
* [[Datatype:southAfricanRand]]
* [[Datatype:southKoreanWon]]
* [[Datatype:sriLankanRupee]]
* [[Datatype:sudanesePound]]
* [[Datatype:surinamDollar]]
* [[Datatype:swaziLilangeni]]
* [[Datatype:swedishKrona]]
* [[Datatype:swissFranc]]
* [[Datatype:syrianPound]]
* [[Datatype:sãoToméAndPríncipeDobra]]
* [[Datatype:tajikistaniSomoni]]
* [[Datatype:tanzanianShilling]]
* [[Datatype:thaiBaht]]
* [[Datatype:tonganPaanga]]
* [[Datatype:trinidadAndTobagoDollar]]
* [[Datatype:tunisianDinar]]
* [[Datatype:turkishLira]]
* [[Datatype:turkmenistaniManat]]
* [[Datatype:ugandaShilling]]
* [[Datatype:ukrainianHryvnia]]
* [[Datatype:unitedArabEmiratesDirham]]
* [[Datatype:uruguayanPeso]]
* [[Datatype:usDollar]]
* [[Datatype:uzbekistanSom]]
* [[Datatype:vanuatuVatu]]
* [[Datatype:venezuelanBolivar]]
* [[Datatype:westAfricanCfaFranc]]
* [[Datatype:yemeniRial]]
* [[Datatype:zambianKwacha]]
* [[Datatype:zimbabweanDollar]]
= [[Datatype:Density|Density]] =
* [[Datatype:gramPerMillilitre]]
* [[Datatype:gramPerCubicCentimetre]]
* [[Datatype:kilogramPerLitre]]
* [[Datatype:kilogramPerCubicMetre]]
= [[Datatype:Energy|Energy]] =
* [[Datatype:footPound]]
* [[Datatype:inchPound]]
* [[Datatype:megacalorie]]
* [[Datatype:kilocalorie]]
* [[Datatype:calorie]]
* [[Datatype:millicalorie]]
* [[Datatype:terawattHour]]
* [[Datatype:gigawattHour]]
* [[Datatype:megawattHour]]
* [[Datatype:kilowattHour]]
* [[Datatype:wattHour]]
* [[Datatype:milliwattHour]]
* [[Datatype:erg]]
* [[Datatype:kilojoule]]
* [[Datatype:joule]]
= [[Datatype:FlowRate|FlowRate]] =
* [[Datatype:cubicFeetPerYear]]
* [[Datatype:cubicMetrePerYear]]
* [[Datatype:cubicFeetPerSecond]]
* [[Datatype:cubicMetrePerSecond]]
= [[Datatype:Force|Force]] =
* [[Datatype:poundal]]
* [[Datatype:millipond]]
* [[Datatype:milligramForce]]
* [[Datatype:pond]]
* [[Datatype:gramForce]]
* [[Datatype:kilopond]]
* [[Datatype:kilogramForce]]
* [[Datatype:megapond]]
* [[Datatype:tonneForce]]
* [[Datatype:giganewton]]
* [[Datatype:meganewton]]
* [[Datatype:kilonewton]]
* [[Datatype:millinewton]]
* [[Datatype:nanonewton]]
* [[Datatype:newton]]
= [[Datatype:FuelEfficiency|FuelEfficiency]] =
* [[Datatype:kilometresPerLitre]]
= [[Datatype:Frequency|Frequency]] =
* [[Datatype:terahertz]]
* [[Datatype:gigahertz]]
* [[Datatype:megahertz]]
* [[Datatype:kilohertz]]
* [[Datatype:millihertz]]
* [[Datatype:hertz]]
= [[Datatype:InformationUnit|InformationUnit]] =
* [[Datatype:terabyte]]
* [[Datatype:gigabyte]]
* [[Datatype:megabyte]]
* [[Datatype:kilobyte]]
* [[Datatype:megabit]]
* [[Datatype:kilobit]]
* [[Datatype:bit]]
* [[Datatype:byte]]
= [[Datatype:Length|Length]] =
* [[Datatype:kilolightYear]]
* [[Datatype:lightYear]]
* [[Datatype:astronomicalUnit]]
* [[Datatype:nautialMile]]
* [[Datatype:mile]]
* [[Datatype:furlong]]
* [[Datatype:chain]]
* [[Datatype:rod]]
* [[Datatype:fathom]]
* [[Datatype:yard]]
* [[Datatype:foot]]
* [[Datatype:hand]]
* [[Datatype:inch]]
* [[Datatype:gigametre]]
* [[Datatype:megametre]]
* [[Datatype:kilometre]]
* [[Datatype:hectometre]]
* [[Datatype:decametre]]
* [[Datatype:decimetre]]
* [[Datatype:centimetre]]
* [[Datatype:millimetre]]
* [[Datatype:micrometre]]
* [[Datatype:nanometre]]
* [[Datatype:metre]]
= [[Datatype:LinearMassDensity|LinearMassDensity]] =
* [[Datatype:gramPerKilometre]]
= [[Datatype:Mass|Mass]] =
* [[Datatype:carat]]
* [[Datatype:grain]]
* [[Datatype:ounce]]
* [[Datatype:pound]]
* [[Datatype:stone]]
* [[Datatype:tonne]]
* [[Datatype:kilogram]]
* [[Datatype:milligram]]
* [[Datatype:gram]]
= [[Datatype:PopulationDensity|PopulationDensity]] =
* [[Datatype:inhabitantsPerSquareMile]]
* [[Datatype:inhabitantsPerSquareKilometre]]
* [[Datatype:peoplePerSquareKilometer]]: '''duplicate, should be deleted'''
= [[Datatype:Power|Power]] =
* [[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]], see [https://de.wikipedia.org/wiki/Pferdestärke de.wikipedia]. '''I think should be merged with horsepower'''
* [[Datatype:horsepower]], see [https://en.wikipedia.org/wiki/Horsepower en.wikipedia]
* [[Datatype:gigawatt]]
* [[Datatype:megawatt]]
* [[Datatype:milliwatt]]
* [[Datatype:kilowatt]]
* [[Datatype:watt]]
 
= [[Datatype:ElectricCurrent|ElectricCurrent]] =
* [[Datatype:ampere]]
* [[Datatype:kiloampere]]
* [[Datatype:milliampere]]
* [[Datatype:microampere]]
= [[Datatype:Voltage|Voltage]] =
* [[Datatype:volt]]
* [[Datatype:megavolt]]
* [[Datatype:kilovolt]]
* [[Datatype:millivolt]]
* [[Datatype:microvolt]]
= [[Datatype:Pressure|Pressure]] =
* [[Datatype:poundPerSquareInch]]
* [[Datatype:standardAtmosphere]]
* [[Datatype:bar]]
* [[Datatype:decibar]]
* [[Datatype:millibar]]
* [[Datatype:megapascal]]
* [[Datatype:kilopascal]]
* [[Datatype:hectopascal]]
* [[Datatype:millipascal]]
* [[Datatype:pascal]]
= [[Datatype:Speed|Speed]] =
* [[Datatype:knot]]
* [[Datatype:footPerMinute]]
* [[Datatype:footPerSecond]]
* [[Datatype:milePerHour]]
* [[Datatype:kilometrePerSecond]]
* [[Datatype:metrePerSecond]]
* [[Datatype:kilometrePerHour]]
= [[Datatype:Temperature|Temperature]] =
* [[Datatype:degreeRankine]]
* [[Datatype:degreeFahrenheit]]
* [[Datatype:kelvin]]
* [[Datatype:degreeCelsius]]
= [[Datatype:Time|Time]] =
* [[Datatype:day]]
* [[Datatype:hour]]
* [[Datatype:minute]]
* [[Datatype:second]]
* [[Datatype:millisecond]]
= [[Datatype:Torque|Torque]] =
* [[Datatype:poundFoot]]
* [[Datatype:newtonCentimetre]]
* [[Datatype:newtonMillimetre]]
* [[Datatype:newtonMetre]]
= [[Datatype:Volume|Volume]] =
* [[Datatype:usGallon]]
* [[Datatype:imperialGallon]]
* [[Datatype:usBarrelOil]]
* [[Datatype:imperialBarrelOil]]
* [[Datatype:usBarrel]]
* [[Datatype:imperialBarrel]]
* [[Datatype:cubicInch]]
* [[Datatype:cubicFoot]]
* [[Datatype:cubicYard]]
* [[Datatype:cubicMile]]
* [[Datatype:gigalitre]]
* [[Datatype:megalitre]]
* [[Datatype:kilolitre]]
* [[Datatype:hectolitre]]
* [[Datatype:litre]]
* [[Datatype:decilitre]]
* [[Datatype:centilitre]]
* [[Datatype:millilitre]]
* [[Datatype:microlitre]]
* [[Datatype:cubicKilometre]]
* [[Datatype:cubicHectometre]]
* [[Datatype:cubicDecametre]]
* [[Datatype:cubicDecimetre]]
* [[Datatype:cubicCentimetre]]
* [[Datatype:cubicMillimetre]]
* [[Datatype:cubicMetre]]
= Other =
* [[Datatype:pH]]
= Unknown =
I think '''should be deleted'''
* [[Datatype:valvetrain]]
* [[Datatype:engineConfiguration]]
* [[Datatype:fuelType]]
* [[Datatype:minority]]
* [[Datatype:people]]

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