Mapping en:Infobox drug: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(Created page with '{{TemplateMapping | mapToClass = Drug | mappings = {{PropertyMapping | templateProperty = drug_name | ontologyProperty = drug_name }} {{PropertyMapping | templateProperty = IUP...')
 
(Merged from Drugbox)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TemplateMapping
{{ConditionalMapping
| mapToClass = Drug
| cases =
| mappings =
  {{Condition
{{PropertyMapping | templateProperty = drug_name | ontologyProperty = drug_name }}
    | templateProperty = type
{{PropertyMapping | templateProperty = IUPAC_name | ontologyProperty = IUPAC_name }}
    | operator = equals
        {{PropertyMapping | templateProperty = tradename | ontologyProperty = tradename }}
    | value = combo
{{PropertyMapping | templateProperty = image | ontologyProperty = image}}
    | mapping = {{TemplateMapping
       
                  | mapToClass = CombinationDrug
                }}
  }}
 
  {{Condition
    | templateProperty = type
    | operator = equals
    | value = mab
    | mapping = {{TemplateMapping
                  | mapToClass = MonoclonalAntibody
                }}
  }}
 
  {{Condition
    | templateProperty = type
    | operator = equals
    | value = vaccine
    | mapping = {{TemplateMapping
                  | mapToClass = Vaccine
                }}
  }}
 
  {{Condition
    | operator = otherwise
    | mapping = {{TemplateMapping
                  | mapToClass = Drug
                }}
  }}
 
  | defaultMappings =
{{PropertyMapping | templateProperty = drug_name | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = INN | ontologyProperty = inn }}
{{PropertyMapping | templateProperty = tradename | ontologyProperty = alternativeName }}
{{PropertyMapping | templateProperty = Drugs.com | ontologyProperty = drugs.com }}
{{PropertyMapping | templateProperty = MedlinePlus | ontologyProperty = medlinePlus }}
{{PropertyMapping | templateProperty = PubChem | ontologyProperty = pubchem }}
{{PropertyMapping | templateProperty = DrugBank | ontologyProperty = drugbank }}
{{PropertyMapping | templateProperty = class | ontologyProperty = class }}
 
{{PropertyMapping | templateProperty = ATC_supplemental | ontologyProperty = atcCode }}
{{CombineSimpleMapping
| templateProperty1 = ATC_prefix
| templateProperty2 = ATC_suffix
| ontologyProperty = atcCode
}}
{{PropertyMapping | templateProperty = CAS_number | ontologyProperty = casNumber }}
{{PropertyMapping | templateProperty = CAS_number2 | ontologyProperty = casNumber }}
{{PropertyMapping | templateProperty = CAS_supplemental | ontologyProperty = casNumber }}
{{PropertyMapping | templateProperty = DrugBank | ontologyProperty = drugbank }}
{{PropertyMapping | templateProperty = DrugBank2 | ontologyProperty = drugbank }}
{{PropertyMapping | templateProperty = PubChem | ontologyProperty = pubchem }}
{{PropertyMapping | templateProperty = UNII | ontologyProperty = fdaUniiCode }}
{{PropertyMapping | templateProperty = UNII2 | ontologyProperty = fdaUniiCode }}
{{PropertyMapping | templateProperty = ChEBI | ontologyProperty = chEBI }}
{{PropertyMapping | templateProperty = ChEBI2 | ontologyProperty = chEBI }}
{{PropertyMapping | templateProperty = ChEMBL | ontologyProperty = chEMBL }}
{{PropertyMapping | templateProperty = ChEMBL2 | ontologyProperty = chEMBL }}
{{PropertyMapping | templateProperty = KEGG | ontologyProperty = kegg }}
{{PropertyMapping | templateProperty = KEGG2 | ontologyProperty = kegg }}
<!-- TODO Chemical Symbol and further identifiers -->
{{PropertyMapping | templateProperty = chemical_formula | ontologyProperty = chemicalFormula }}
{{PropertyMapping | templateProperty = bioavailability | ontologyProperty = bioavailability }}
{{PropertyMapping | templateProperty = licence_CA | ontologyProperty = license }}
{{PropertyMapping | templateProperty = licence_EU | ontologyProperty = license }}
{{PropertyMapping | templateProperty = licence_US | ontologyProperty = license }}
{{PropertyMapping | templateProperty = license_US | ontologyProperty = license }}
{{PropertyMapping | templateProperty = DailyMedID | ontologyProperty = license }}
    {{PropertyMapping | templateProperty = density | ontologyProperty = density }}  
{{PropertyMapping | templateProperty = melting_point | ontologyProperty = meltingPoint | unit = Temperature }}
{{PropertyMapping | templateProperty = melting_high | ontologyProperty = meltingPoint | unit = Temperature }}
{{PropertyMapping | templateProperty = boiling_point | ontologyProperty = boilingPoint | unit = Temperature }} 
}}
}}

Latest revision as of 15:11, 15 October 2017

This is the mapping for the Wikipedia template Infobox drug. 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 type
operator equals
value combo

This is the mapping for the Wikipedia template Infobox drug. 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.

Template Mapping (help)
map to class CombinationDrug


Condition (help)
template property type
operator equals
value mab

This is the mapping for the Wikipedia template Infobox drug. 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.

Template Mapping (help)
map to class MonoclonalAntibody


Condition (help)
template property type
operator equals
value vaccine

This is the mapping for the Wikipedia template Infobox drug. 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.

Template Mapping (help)
map to class Vaccine


Condition (help)
otherwise

This is the mapping for the Wikipedia template Infobox drug. 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.

Template Mapping (help)
map to class Drug

Default Mappings




Property Mapping (help)
template property drug_name
ontology property foaf:name




Property Mapping (help)
template property INN
ontology property inn




Property Mapping (help)
template property tradename
ontology property alternativeName




Property Mapping (help)
template property Drugs.com
ontology property drugs.com




Property Mapping (help)
template property MedlinePlus
ontology property medlinePlus




Property Mapping (help)
template property PubChem
ontology property pubchem




Property Mapping (help)
template property DrugBank
ontology property drugbank




Property Mapping (help)
template property class
ontology property class





Property Mapping (help)
template property ATC_supplemental
ontology property atcCode

Template:CombineSimpleMapping




Property Mapping (help)
template property CAS_number
ontology property casNumber




Property Mapping (help)
template property CAS_number2
ontology property casNumber




Property Mapping (help)
template property CAS_supplemental
ontology property casNumber




Property Mapping (help)
template property DrugBank
ontology property drugbank




Property Mapping (help)
template property DrugBank2
ontology property drugbank




Property Mapping (help)
template property PubChem
ontology property pubchem




Property Mapping (help)
template property UNII
ontology property fdaUniiCode




Property Mapping (help)
template property UNII2
ontology property fdaUniiCode




Property Mapping (help)
template property ChEBI
ontology property chEBI




Property Mapping (help)
template property ChEBI2
ontology property chEBI




Property Mapping (help)
template property ChEMBL
ontology property chEMBL




Property Mapping (help)
template property ChEMBL2
ontology property chEMBL




Property Mapping (help)
template property KEGG
ontology property kegg




Property Mapping (help)
template property KEGG2
ontology property kegg




Property Mapping (help)
template property chemical_formula
ontology property chemicalFormula




Property Mapping (help)
template property bioavailability
ontology property bioavailability




Property Mapping (help)
template property licence_CA
ontology property license




Property Mapping (help)
template property licence_EU
ontology property license




Property Mapping (help)
template property licence_US
ontology property license




Property Mapping (help)
template property license_US
ontology property license




Property Mapping (help)
template property DailyMedID
ontology property license




Property Mapping (help)
template property density
ontology property density


Property Mapping (help)
template property melting_point
ontology property meltingPoint
unitTemperature


Property Mapping (help)
template property melting_high
ontology property meltingPoint
unitTemperature


Property Mapping (help)
template property boiling_point
ontology property boilingPoint
unitTemperature