Skip to content

Commit 057b173

Browse files
authored
Merge pull request #192 from puja-trivedi/issue191
updating genome_annotation schema
2 parents c30ad22 + d9a2f3a commit 057b173

File tree

5 files changed

+23
-54
lines changed

5 files changed

+23
-54
lines changed

jsonld-context-autogen/bke_taxonomy.context.jsonld

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@
8989
},
9090
"NBO-PROPERTY": "http://purl.obolibrary.org/obo/nbo#",
9191
"NCBIGene": "http://identifiers.org/ncbigene/",
92-
"NCBITaxon": {
93-
"@id": "http://purl.obolibrary.org/obo/NCBITaxon_",
94-
"@prefix": true
95-
},
92+
"NCBITaxon": "http://identifiers.org/taxonomy/",
9693
"NCIT": {
9794
"@id": "http://purl.obolibrary.org/obo/NCIT_",
9895
"@prefix": true
@@ -221,7 +218,10 @@
221218
},
222219
"@id": "authority"
223220
},
224-
"category": "@type",
221+
"category": {
222+
"@type": "xsd:anyURI",
223+
"@id": "biolink:category"
224+
},
225225
"cell_type_set_type": {
226226
"@id": "cell_type_set_type"
227227
},
@@ -764,4 +764,5 @@
764764
"@id": "VersionedNamedThing"
765765
}
766766
}
767-
}
767+
}
768+

jsonld-context-autogen/genome_annotation.context.jsonld

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@
8888
"@prefix": true
8989
},
9090
"NBO-PROPERTY": "http://purl.obolibrary.org/obo/nbo#",
91-
"NCBIAssembly": "https://www.ncbi.nlm.nih.gov/assembly/",
91+
"NCBIAssembly": "http://identifiers.org/assembly/",
9292
"NCBIGene": "http://identifiers.org/ncbigene/",
93-
"NCBITaxon": {
94-
"@id": "http://purl.obolibrary.org/obo/NCBITaxon_",
95-
"@prefix": true
96-
},
93+
"NCBITaxon": "http://identifiers.org/taxonomy/",
9794
"NCIT": {
9895
"@id": "http://purl.obolibrary.org/obo/NCIT_",
9996
"@prefix": true
@@ -176,10 +173,6 @@
176173
"gff3": "https://github.com/The-Sequence-Ontology/Specifications/blob/master/gff3.md#",
177174
"gpi": "https://github.com/geneontology/go-annotation/blob/master/specs/gpad-gpi-2-0.md#",
178175
"linkml": "https://w3id.org/linkml/",
179-
"ncbi": {
180-
"@id": "https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=",
181-
"@prefix": true
182-
},
183176
"oboInOwl": "http://www.geneontology.org/formats/oboInOwl#",
184177
"orphanet": {
185178
"@id": "http://www.orpha.net/ORDO/Orphanet_",
@@ -214,7 +207,10 @@
214207
},
215208
"@id": "authority"
216209
},
217-
"category": "@type",
210+
"category": {
211+
"@type": "xsd:anyURI",
212+
"@id": "biolink:category"
213+
},
218214
"checksum_algorithm": {
219215
"@context": {
220216
"text": "skos:notation",
@@ -453,4 +449,5 @@
453449
"@id": "VersionedNamedThing"
454450
}
455451
}
456-
}
452+
}
453+

linkml-schema/genome_annotation.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ prefixes:
88
linkml: https://w3id.org/linkml/
99
bican: https://identifiers.org/brain-bican/vocab/
1010
schema: http://schema.org/
11-
ncbi: https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=
12-
NCBIAssembly: https://www.ncbi.nlm.nih.gov/assembly/
11+
NCBIAssembly: http://identifiers.org/assembly/
12+
NCBIGene: http://identifiers.org/ncbigene/
13+
NCBITaxon: http://identifiers.org/taxonomy/
1314

1415
imports:
1516
- linkml:types

models_py-autogen/genome_annotation.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ def __contains__(self, key:str) -> bool:
7171
'imports': ['linkml:types', 'bican_biolink', 'bican_core'],
7272
'name': 'genome-annotation-schema',
7373
'prefixes': {'NCBIAssembly': {'prefix_prefix': 'NCBIAssembly',
74-
'prefix_reference': 'https://www.ncbi.nlm.nih.gov/assembly/'},
74+
'prefix_reference': 'http://identifiers.org/assembly/'},
75+
'NCBIGene': {'prefix_prefix': 'NCBIGene',
76+
'prefix_reference': 'http://identifiers.org/ncbigene/'},
77+
'NCBITaxon': {'prefix_prefix': 'NCBITaxon',
78+
'prefix_reference': 'http://identifiers.org/taxonomy/'},
7579
'bican': {'prefix_prefix': 'bican',
7680
'prefix_reference': 'https://identifiers.org/brain-bican/vocab/'},
7781
'linkml': {'prefix_prefix': 'linkml',
7882
'prefix_reference': 'https://w3id.org/linkml/'},
79-
'ncbi': {'prefix_prefix': 'ncbi',
80-
'prefix_reference': 'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id='},
8183
'schema': {'prefix_prefix': 'schema',
8284
'prefix_reference': 'http://schema.org/'}},
8385
'source_file': 'genome_annotation.yaml',

utils/modify_jsonldcontext.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)