DBpedia Datatypes: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
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]]: | ||
<pre>{{PropertyMapping | templateProperty = altura | ontologyProperty = height | unit = Length }} | <pre>{{PropertyMapping | templateProperty = altura | ontologyProperty = height | unit = Length }} | ||
</pre> | </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]: | * 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>{{PropertyMapping | templateProperty = length_ft | ontologyProperty = length | unit = foot}} | ||
</pre> | </pre> | ||
Line 13: | Line 13: | ||
* In some cases, a specific property with a more appropriate unit is also created. Eg http://dbpedia.org/ontology/Person/height is in centimeters | * 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 | = XML and RDF Datatypes = | ||
* [[Datatype:rdf:langString]] | |||
* [[Datatype:xsd:anyURI]] | * [[Datatype:xsd:anyURI]] | ||
* [[Datatype:xsd:boolean]] | * [[Datatype:xsd:boolean]] | ||
Line 32: | Line 33: | ||
* [[Datatype:xsd:string]] | * [[Datatype:xsd:string]] | ||
* [[Datatype:xsd:time]] | * [[Datatype:xsd:time]] | ||
= [[Datatype:Area|Area]] = | = [[Datatype:Area|Area]] = | ||
* [[Datatype:squareNauticalMile]] | * [[Datatype:squareNauticalMile]] |
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:
- 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 }}
- 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:
- 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
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
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
Density
- Datatype:gramPerMillilitre
- Datatype:gramPerCubicCentimetre
- Datatype:kilogramPerLitre
- Datatype:kilogramPerCubicMetre
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
FlowRate
- Datatype:cubicFeetPerYear
- Datatype:cubicMetrePerYear
- Datatype:cubicFeetPerSecond
- Datatype:cubicMetrePerSecond
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
FuelEfficiency
Frequency
- Datatype:terahertz
- Datatype:gigahertz
- Datatype:megahertz
- Datatype:kilohertz
- Datatype:millihertz
- Datatype:hertz
InformationUnit
- Datatype:terabyte
- Datatype:gigabyte
- Datatype:megabyte
- Datatype:kilobyte
- Datatype:megabit
- Datatype:kilobit
- Datatype:bit
- Datatype:byte
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
LinearMassDensity
Mass
- Datatype:carat
- Datatype:grain
- Datatype:ounce
- Datatype:pound
- Datatype:stone
- Datatype:tonne
- Datatype:kilogram
- Datatype:milligram
- Datatype:gram
PopulationDensity
- Datatype:inhabitantsPerSquareMile
- Datatype:inhabitantsPerSquareKilometre
- Datatype:peoplePerSquareKilometer: duplicate, should be deleted
Power
- Datatype:brakeHorsepower, see en.wikipedia. This is like horsepower but of an engine stripped from auxiliary components, so as to maximize the measurement.
- Datatype:pferdestaerke, see de.wikipedia. I think should be merged with horsepower
- Datatype:horsepower, see en.wikipedia
- Datatype:gigawatt
- Datatype:megawatt
- Datatype:milliwatt
- Datatype:kilowatt
- Datatype:watt
ElectricCurrent
Voltage
Pressure
- Datatype:poundPerSquareInch
- Datatype:standardAtmosphere
- Datatype:bar
- Datatype:decibar
- Datatype:millibar
- Datatype:megapascal
- Datatype:kilopascal
- Datatype:hectopascal
- Datatype:millipascal
- Datatype:pascal
Speed
- Datatype:knot
- Datatype:footPerMinute
- Datatype:footPerSecond
- Datatype:milePerHour
- Datatype:kilometrePerSecond
- Datatype:metrePerSecond
- Datatype:kilometrePerHour
Temperature
Time
Torque
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
Unknown
I think should be deleted