Mapping en:Infobox company: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(disclaimer) |
No edit summary |
||
(45 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{ ConditionalMapping | ||
| cases = | |||
{{Condition | |||
| templateProperty = industry | |||
| operator = contains | |||
| value = banking | |||
| mapping = {{TemplateMapping | header = 0 | |||
| mapToClass = Bank | |||
}} | |||
}} | |||
{{TemplateMapping| | {{Condition | ||
| | | templateProperty = industry | ||
| operator = contains | |||
| value = financial | |||
| mapping = {{TemplateMapping | header = 0 | |||
| mapToClass = Bank | |||
}} | |||
}} | |||
{{Condition | |||
| operator = otherwise | |||
| mapping = {{TemplateMapping | header = 0 | |||
| mapToClass = Company | |||
}} | |||
}} | |||
| defaultMappings = | |||
{{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }} | |||
{{ PropertyMapping | templateProperty = trading_name | ontologyProperty = tradingName }} | |||
{{ PropertyMapping | templateProperty = native_name | ontologyProperty = originalName }} | |||
{{ PropertyMapping | templateProperty = former_name | ontologyProperty = formerName }} | |||
{{ PropertyMapping | templateProperty = type | ontologyProperty = type }} | |||
{{ PropertyMapping | templateProperty = ISNI | ontologyProperty = isniId }} | |||
{{ PropertyMapping | templateProperty = ISNI2 | ontologyProperty = isniId }} | |||
{{ PropertyMapping | templateProperty = ISNI3 | ontologyProperty = isniId }} | |||
{{ PropertyMapping | templateProperty = genre | ontologyProperty = genre }} | |||
{{ PropertyMapping | templateProperty = fate | ontologyProperty = fate }} | |||
{{ PropertyMapping | templateProperty = predecessor | ontologyProperty = predecessor }} | |||
{{ PropertyMapping | templateProperty = predecessors | ontologyProperty = predecessor }} | |||
{{ PropertyMapping | templateProperty = successor | ontologyProperty = successor }} | |||
{{ PropertyMapping | templateProperty = successors | ontologyProperty = successor }} | |||
<!-- mapped foundation into three different ontologyProperties --> | |||
{{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingDate }} | |||
{{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingYear }} | |||
{{ PropertyMapping | templateProperty = founded | ontologyProperty = foundingDate }} | |||
{{ PropertyMapping | templateProperty = founded | ontologyProperty = foundingYear }} | |||
{{ PropertyMapping | templateProperty = founder | ontologyProperty = foundedBy }} | |||
{{ PropertyMapping | templateProperty = founders | ontologyProperty = foundedBy }} | |||
{{ PropertyMapping | templateProperty = defunct | ontologyProperty = dissolutionDate }} | |||
{{ PropertyMapping | templateProperty = locations | ontologyProperty = numberOfLocations }} | |||
{{ PropertyMapping | templateProperty = num_locations | ontologyProperty = numberOfLocations }} | |||
{{ PropertyMapping | templateProperty = area_served | ontologyProperty = regionServed }} | |||
{{ PropertyMapping | templateProperty = key_people | ontologyProperty = keyPerson }} | |||
{{ PropertyMapping | templateProperty = hq_location | ontologyProperty = headquarter }} | |||
{{ PropertyMapping | templateProperty = hq_city | ontologyProperty = locationCity }} | |||
{{ PropertyMapping | templateProperty = hq_location_city | ontologyProperty = locationCity }} | |||
{{ PropertyMapping | templateProperty = hq_country | ontologyProperty = locationCountry }} | |||
{{ PropertyMapping | templateProperty = hq_location_country | ontologyProperty = locationCountry }} | |||
{{ PropertyMapping | templateProperty = location | ontologyProperty = location }} | |||
{{ PropertyMapping | templateProperty = industry | ontologyProperty = industry }} | |||
{{ PropertyMapping | templateProperty = products | ontologyProperty = product }} | |||
{{ PropertyMapping | templateProperty = services | ontologyProperty = service }} | |||
{{ PropertyMapping | templateProperty = production | ontologyProperty = production }} | |||
{{ PropertyMapping | templateProperty = revenue | ontologyProperty = revenue | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = revenue_year | ontologyProperty = revenueYear }} | |||
{{ PropertyMapping | templateProperty = operating_income | ontologyProperty = operatingIncome | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = net_income | ontologyProperty = netIncome | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = aum | ontologyProperty = assetUnderManagement | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = assets | ontologyProperty = assets | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = equity | ontologyProperty = equity | unit = Currency }} | |||
{{ PropertyMapping | templateProperty = owner | ontologyProperty = owner }} | |||
{{ PropertyMapping | templateProperty = owner | ontologyProperty = owningCompany }} | |||
{{ PropertyMapping | templateProperty = num_employees | ontologyProperty = numberOfEmployees }} | |||
{{ PropertyMapping | templateProperty = parent | ontologyProperty = parentCompany }} | |||
{{ PropertyMapping | templateProperty = divisions | ontologyProperty = division }} | |||
{{ PropertyMapping | templateProperty = subsid | ontologyProperty = subsidiary }} | |||
{{ PropertyMapping | templateProperty = homepage | ontologyProperty = foaf:homepage }} | |||
{{ PropertyMapping | templateProperty = website | ontologyProperty = foaf:homepage }} | |||
{{ PropertyMapping | templateProperty = company_logo | ontologyProperty = foaf:logo }} | |||
{{ PropertyMapping | templateProperty = logo | ontologyProperty = foaf:logo }} | |||
{{ PropertyMapping | templateProperty = intl | ontologyProperty = internationally }} | |||
<!-- not named in definition of Infobox company, but deliver sparql-results --> | |||
{{ PropertyMapping | templateProperty = company_name | ontologyProperty = foaf:name }} | |||
{{ PropertyMapping | templateProperty = company_type | ontologyProperty = type }} | |||
}} | }} |
Latest revision as of 17:18, 7 June 2021
This is the mapping for the Wikipedia template Infobox company. Find usages of this Wikipedia template here.
Test this mapping (or in namespace File or Creator) with some example Wikipedia pages. Check which properties are not mapped yet.
Read more about mapping Wikipedia templates.
Conditions
Condition (help) | |
---|---|
template property | industry |
operator | contains |
value | banking |
Template Mapping (help) map to class Bank
Condition (help) | |
---|---|
template property | industry |
operator | contains |
value | financial |
Template Mapping (help) map to class Bank
Condition (help) | |
---|---|
otherwise |
Template Mapping (help) map to class Company
Default Mappings
Property Mapping (help) template property name ontology property foaf:name
Property Mapping (help) template property trading_name ontology property tradingName
Property Mapping (help) template property native_name ontology property originalName
Property Mapping (help) template property former_name ontology property formerName
Property Mapping (help) template property type ontology property type
Property Mapping (help) template property ISNI ontology property isniId
Property Mapping (help) template property ISNI2 ontology property isniId
Property Mapping (help) template property ISNI3 ontology property isniId
Property Mapping (help) template property genre ontology property genre
Property Mapping (help) template property fate ontology property fate
Property Mapping (help) template property predecessor ontology property predecessor
Property Mapping (help) template property predecessors ontology property predecessor
Property Mapping (help) template property successor ontology property successor
Property Mapping (help) template property successors ontology property successor
Property Mapping (help) template property foundation ontology property foundingDate
Property Mapping (help) template property foundation ontology property foundingYear
Property Mapping (help) template property founded ontology property foundingDate
Property Mapping (help) template property founded ontology property foundingYear
Property Mapping (help) template property founder ontology property foundedBy
Property Mapping (help) template property founders ontology property foundedBy
Property Mapping (help) template property defunct ontology property dissolutionDate
Property Mapping (help) template property locations ontology property numberOfLocations
Property Mapping (help) template property num_locations ontology property numberOfLocations
Property Mapping (help) template property area_served ontology property regionServed
Property Mapping (help) template property key_people ontology property keyPerson
Property Mapping (help) template property hq_location ontology property headquarter
Property Mapping (help) template property hq_city ontology property locationCity
Property Mapping (help) template property hq_location_city ontology property locationCity
Property Mapping (help) template property hq_country ontology property locationCountry
Property Mapping (help) template property hq_location_country ontology property locationCountry
Property Mapping (help) template property location ontology property location
Property Mapping (help) template property industry ontology property industry
Property Mapping (help) template property products ontology property product
Property Mapping (help) template property services ontology property service
Property Mapping (help) template property production ontology property production
Property Mapping (help) template property revenue ontology property revenue unit Currency
Property Mapping (help) template property revenue_year ontology property revenueYear
Property Mapping (help) template property operating_income ontology property operatingIncome unit Currency
Property Mapping (help) template property net_income ontology property netIncome unit Currency
Property Mapping (help) template property aum ontology property assetUnderManagement unit Currency
Property Mapping (help) template property assets ontology property assets unit Currency
Property Mapping (help) template property equity ontology property equity unit Currency
Property Mapping (help) template property owner ontology property owner
Property Mapping (help) template property owner ontology property owningCompany
Property Mapping (help) template property num_employees ontology property numberOfEmployees
Property Mapping (help) template property parent ontology property parentCompany
Property Mapping (help) template property divisions ontology property division
Property Mapping (help) template property subsid ontology property subsidiary
Property Mapping (help) template property homepage ontology property foaf:homepage
Property Mapping (help) template property website ontology property foaf:homepage
Property Mapping (help) template property company_logo ontology property foaf:logo
Property Mapping (help) template property logo ontology property foaf:logo
Property Mapping (help) template property intl ontology property internationally
Property Mapping (help) template property company_name ontology property foaf:name
Property Mapping (help) template property company_type ontology property type