Mapping en:Infobox company: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(Updated some properties, deleted not necessary properties)
No edit summary
 
(43 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{DisclaimerMapping|{{PAGENAMEE}}}}
{{ ConditionalMapping
| cases =
{{Condition
    | templateProperty = industry
    | operator = contains
    | value = banking
    | mapping = {{TemplateMapping | header = 0
                | mapToClass = Bank
                }}
}}


{{TemplateMapping| mapToClass = Company
  {{Condition
| mappings =
    | templateProperty = industry
{{PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
    | operator = contains
{{PropertyMapping | templateProperty = type | ontologyProperty = type }}
    | value = financial
{{PropertyMapping | templateProperty = genre | ontologyProperty = genre }}
    | mapping = {{TemplateMapping | header = 0
{{PropertyMapping | templateProperty = fate | ontologyProperty = fate}}
                | mapToClass = Bank
{{PropertyMapping | templateProperty = predecessor | ontologyProperty = predecessor }}
                }}
{{PropertyMapping | templateProperty = successor | ontologyProperty = successor}}
}}
<!-- mapped fundation into 3 different ontologyProperties  -->
{{PropertyMapping | templateProperty = foundation | ontologyProperty = formationDate}}
{{PropertyMapping | templateProperty = foundation | ontologyProperty = formationYear}}
{{PropertyMapping | templateProperty = foundation | ontologyProperty = foundationPlace }}
{{PropertyMapping | templateProperty = founder | ontologyProperty = foundationPerson }}
{{PropertyMapping | templateProperty = defunct | ontologyProperty = extinctionDate}}
{{PropertyMapping | templateProperty = defunct | ontologyProperty = extinctionYear}}
{{PropertyMapping | templateProperty = location_city | ontologyProperty = locationCity }}
{{PropertyMapping | templateProperty = location_country | ontologyProperty = locationCountry }}
{{PropertyMapping | templateProperty = location | ontologyProperty = location }}
{{PropertyMapping | templateProperty = locations | ontologyProperty = location }}
        {{PropertyMapping | templateProperty = area_served | ontologyProperty = regionServed}} 
        {{IntermediateNodeMapping | nodeClass = PersonFunction |
correspondingProperty = leaderFunction | mappings =


{{PropertyMapping | templateProperty = key_people | ontologyProperty = person}}
{{Condition
    | operator = otherwise
    | mapping = {{TemplateMapping | header = 0
                | mapToClass = Company
                }}
}}


{{PropertyMapping | templateProperty = key_people | ontologyProperty = title}}
| defaultMappings =
}}
    {{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
        {{PropertyMapping | templateProperty = industry | ontologyProperty = industry }}
    {{ PropertyMapping | templateProperty = trading_name | ontologyProperty = tradingName }}
{{PropertyMapping | templateProperty = products | ontologyProperty = product }}
    {{ PropertyMapping | templateProperty = native_name | ontologyProperty = originalName }}
{{PropertyMapping | templateProperty = services | ontologyProperty = service }}
    {{ PropertyMapping | templateProperty = former_name | ontologyProperty = formerName }}
        {{PropertyMapping | templateProperty = revenue | ontologyProperty = revenue | unit = Currency}}
    {{ PropertyMapping | templateProperty = type | ontologyProperty = type }}
        {{PropertyMapping | templateProperty = operating_income | ontologyProperty = operatingIncome | unit = Currency}}
    {{ PropertyMapping | templateProperty = ISNI | ontologyProperty = isniId }}
{{PropertyMapping | templateProperty = net_income | ontologyProperty = netIncome | unit = Currency}}
    {{ PropertyMapping | templateProperty = ISNI2 | ontologyProperty = isniId }}
{{PropertyMapping | templateProperty = aum | ontologyProperty = assetUnderManagement | unit = Currency}}
    {{ PropertyMapping | templateProperty = ISNI3 | ontologyProperty = isniId }}
{{PropertyMapping | templateProperty = assets | ontologyProperty = assets | unit = Currency}}
    {{ PropertyMapping | templateProperty = genre | ontologyProperty = genre }}
{{PropertyMapping | templateProperty = equity | ontologyProperty = equity | unit = Currency}}
    {{ PropertyMapping | templateProperty = fate | ontologyProperty = fate }}
{{PropertyMapping | templateProperty = owner | ontologyProperty = owner}}
    {{ PropertyMapping | templateProperty = predecessor | ontologyProperty = predecessor }}
{{PropertyMapping | templateProperty = owner | ontologyProperty = owningCompany}}
    {{ PropertyMapping | templateProperty = predecessors | ontologyProperty = predecessor }}
{{PropertyMapping | templateProperty = num_employees | ontologyProperty = numberOfStaff}}
    {{ PropertyMapping | templateProperty = successor | ontologyProperty = successor }}
{{PropertyMapping | templateProperty = parent | ontologyProperty = parentCompany }}
    {{ PropertyMapping | templateProperty = successors | ontologyProperty = successor }}
{{PropertyMapping | templateProperty = divisions | ontologyProperty = division }}
    <!-- mapped foundation into three different ontologyProperties    -->
{{PropertyMapping | templateProperty = subsid | ontologyProperty = subsidiary }}
    {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingDate }}
{{PropertyMapping | templateProperty = homepage | ontologyProperty = foaf:homepage }}
    {{ PropertyMapping | templateProperty = foundation | ontologyProperty = foundingYear }}
{{PropertyMapping | templateProperty = intl | ontologyProperty = internationally }}
    {{ 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 }}


<!-- not named in definition of Infobox company, but deliver sparql-results -->
        {{PropertyMapping | templateProperty = production | ontologyProperty = production}}
{{PropertyMapping | templateProperty = language | ontologyProperty = language}}
{{PropertyMapping | templateProperty = current_status | ontologyProperty = currentStatus }}
{{PropertyMapping | templateProperty = company_name | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = company_type | ontologyProperty = type }}
{{PropertyMapping | templateProperty = company_slogan | ontologyProperty = slogan }}
{{PropertyMapping | templateProperty = url | ontologyProperty = foaf:homepage }}
{{PropertyMapping | templateProperty = launch_date | ontologyProperty = formationDate }}
{{PropertyMapping | templateProperty = launch_date | ontologyProperty = formationYear}}


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