Mapping en:Infobox company: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
m (website property to foaf:homepage)
No edit summary
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{ TemplateMapping  
{{ ConditionalMapping
| mapToClass = Company  
| cases =
| mappings =  
{{Condition
    | templateProperty = industry
    | operator = contains
    | value = banking
    | mapping = {{TemplateMapping | header = 0
                | mapToClass = Bank
                }}
}}
 
{{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 = 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 = 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 = genre | ontologyProperty = genre }}
     {{ PropertyMapping | templateProperty = fate | ontologyProperty = fate }}
     {{ PropertyMapping | templateProperty = fate | ontologyProperty = fate }}
     {{ PropertyMapping | templateProperty = predecessor | ontologyProperty = predecessor }}
     {{ PropertyMapping | templateProperty = predecessor | ontologyProperty = predecessor }}
    {{ PropertyMapping | templateProperty = predecessors | ontologyProperty = predecessor }}
     {{ PropertyMapping | templateProperty = successor | ontologyProperty = successor }}
     {{ PropertyMapping | templateProperty = successor | ontologyProperty = successor }}
    {{ PropertyMapping | templateProperty = successors | ontologyProperty = successor }}
     <!-- mapped foundation into three different ontologyProperties    -->
     <!-- mapped foundation into three different ontologyProperties    -->
     {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingDate }}
     {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingDate }}
     {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingYear }}
     {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingYear }}
     {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundationPlace }}
     {{ PropertyMapping | templateProperty = founded | ontologyProperty = foundingDate }}
    {{ PropertyMapping | templateProperty = founded | ontologyProperty = foundingYear }}
     {{ PropertyMapping | templateProperty = founder | ontologyProperty = foundedBy }}
     {{ PropertyMapping | templateProperty = founder | ontologyProperty = foundedBy }}
     {{ PropertyMapping | templateProperty = defunct | ontologyProperty = extinctionDate }}
     {{ PropertyMapping | templateProperty = founders | ontologyProperty = foundedBy }}
     {{ PropertyMapping | templateProperty = defunct | ontologyProperty = extinctionYear }}
     {{ PropertyMapping | templateProperty = defunct | ontologyProperty = dissolutionDate }}
    {{ PropertyMapping | templateProperty = location_city | ontologyProperty = locationCity }}
 
    {{ PropertyMapping | templateProperty = location_country | ontologyProperty = locationCountry }}
    {{ PropertyMapping | templateProperty = location | ontologyProperty = location }}
     {{ PropertyMapping | templateProperty = locations | ontologyProperty = numberOfLocations }}
     {{ PropertyMapping | templateProperty = locations | ontologyProperty = numberOfLocations }}
    {{ PropertyMapping | templateProperty = num_locations | ontologyProperty = numberOfLocations }}
     {{ PropertyMapping | templateProperty = area_served | ontologyProperty = regionServed }}
     {{ PropertyMapping | templateProperty = area_served | ontologyProperty = regionServed }}
     {{ PropertyMapping | templateProperty = key_people | ontologyProperty = keyPerson }}
     {{ PropertyMapping | templateProperty = key_people | ontologyProperty = keyPerson }}
     <!-- {{ IntermediateNodeMapping | nodeClass = PersonFunction | correspondingProperty = leaderFunction | mappings = {{ PropertyMapping | templateProperty = key_people | ontologyProperty = person }} {{ PropertyMapping | templateProperty = key_people | ontologyProperty = title }} }} -->
 
 
     {{ 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 = industry | ontologyProperty = industry }}
     {{ PropertyMapping | templateProperty = products | ontologyProperty = product }}
     {{ PropertyMapping | templateProperty = products | ontologyProperty = product }}
     {{ PropertyMapping | templateProperty = services | ontologyProperty = service }}
     {{ PropertyMapping | templateProperty = services | ontologyProperty = service }}
    {{ PropertyMapping | templateProperty = production | ontologyProperty = production }}
     {{ PropertyMapping | templateProperty = revenue | ontologyProperty = revenue | unit = Currency }}
     {{ PropertyMapping | templateProperty = revenue | ontologyProperty = revenue | unit = Currency }}
    {{ PropertyMapping | templateProperty = revenue_year | ontologyProperty = revenueYear }}
     {{ PropertyMapping | templateProperty = operating_income | ontologyProperty = operatingIncome | unit = Currency }}
     {{ PropertyMapping | templateProperty = operating_income | ontologyProperty = operatingIncome | unit = Currency }}
     {{ PropertyMapping | templateProperty = net_income | ontologyProperty = netIncome | unit = Currency }}
     {{ PropertyMapping | templateProperty = net_income | ontologyProperty = netIncome | unit = Currency }}
Line 38: Line 80:
     {{ PropertyMapping | templateProperty = divisions | ontologyProperty = division }}
     {{ PropertyMapping | templateProperty = divisions | ontologyProperty = division }}
     {{ PropertyMapping | templateProperty = subsid | ontologyProperty = subsidiary }}
     {{ PropertyMapping | templateProperty = subsid | ontologyProperty = subsidiary }}
     {{ PropertyMapping | templateProperty = homepage | ontologyProperty = foaf:homepage }}
     {{ PropertyMapping | templateProperty = homepage | ontologyProperty = foaf:homepage }}
     {{ PropertyMapping | templateProperty = website | 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 }}
     {{ PropertyMapping | templateProperty = intl | ontologyProperty = internationally }}
     <!-- not named in definition of Infobox company, but deliver sparql-results -->
     <!-- not named in definition of Infobox company, but deliver sparql-results -->


    {{ PropertyMapping | templateProperty = production | ontologyProperty = production }}
     {{ PropertyMapping | templateProperty = company_name | ontologyProperty = foaf:name }}
     {{ PropertyMapping | templateProperty = company_name | ontologyProperty = foaf:name }}
     {{ PropertyMapping | templateProperty = company_type | ontologyProperty = type }} }}
     {{ 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
unitCurrency




Property Mapping (help)
template property revenue_year
ontology property revenueYear


Property Mapping (help)
template property operating_income
ontology property operatingIncome
unitCurrency


Property Mapping (help)
template property net_income
ontology property netIncome
unitCurrency


Property Mapping (help)
template property aum
ontology property assetUnderManagement
unitCurrency


Property Mapping (help)
template property assets
ontology property assets
unitCurrency


Property Mapping (help)
template property equity
ontology property equity
unitCurrency




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 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