-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobo_wikidata_mapping.yml
38 lines (29 loc) · 2.08 KB
/
obo_wikidata_mapping.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
annotation_properties:
label: "http://www.w3.org/2000/01/rdf-schema#label"
definition: "http://purl.obolibrary.org/obo/IAO_0000115"
exact_synonym: "http://www.geneontology.org/formats/oboInOwl#hasExactSynonym"
narrow_synonym: "http://www.geneontology.org/formats/oboInOwl#hasNarrowSynonym"
broad_synonym: "http://www.geneontology.org/formats/oboInOwl#hasBroadSynonym"
related_synonym: "http://www.geneontology.org/formats/oboInOwl#hasRelatedSynonym"
database_cross_reference: "http://www.geneontology.org/formats/oboInOwl#hasDbXref"
# Would be good to distinguish cross-reference on term from cross reference on definition
wikidata_builtin:
# Note - using Glossary links in absence of IRIs refering to these
label: "https://www.wikidata.org/wiki/Wikidata:Glossary#Label"
description: "https://www.wikidata.org/wiki/Wikidata:Glossary#Description"
alias: "https://www.wikidata.org/wiki/Wikidata:Glossary#Alias"
wikidata_properties:
"see_also": "https://www.wikidata.org/wiki/Property:P1659"
# TBA: wikidata property for definition
"subClass 0f": "https://www.wikidata.org/wiki/Property:P279"
"instance of": "https://www.wikidata.org/wiki/Property:P31"
"part of": "https://www.wikidata.org/wiki/Property:P361"
mapping:
# dictionary mapping OBO annotation properties to wikidata entity. All entrie use full URI to avoid namespace clashes
"http://www.geneontology.org/formats/oboInOwl#hasExactSynonym": "https://www.wikidata.org/wiki/Wikidata:Glossary#Alias"
"http://www.w3.org/2000/01/rdf-schema#label": "https://www.wikidata.org/wiki/Wikidata:Glossary#Label"
# dbxref mapping - need to treat mappings on term(below) differently from definitional mappings. Not clear how to spec in YAML:
"http://www.geneontology.org/formats/oboInOwl#hasDbXref": "https://www.wikidata.org/wiki/Property:P1659"
# Should only be applied between named classes:
"http://www.w3.org/2000/01/rdf-schema#subClassOf" : "https://www.wikidata.org/wiki/Property:P279"
# Are there any cases where we want to capture other edge, (e.g. part of), need to parse anonymous class expressions.