-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft ncbigene and fix hgnc import (#7380)
* First draft ncbigene import * Changes the HGNC ingest to use the symbol as the label --------- Co-authored-by: Sabrina Toro <[email protected]>
- Loading branch information
1 parent
d7df62e
commit 6ec68b6
Showing
5 changed files
with
67 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
prefix xsd: <http://www.w3.org/2001/XMLSchema#> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
prefix owl: <http://www.w3.org/2002/07/owl#> | ||
prefix dc: <http://purl.org/dc/elements/1.1/> | ||
|
||
CONSTRUCT { | ||
?gene a owl:Class ; | ||
rdfs:subClassOf <http://purl.obolibrary.org/obo/SO_0000704> ; | ||
rdfs:label ?symbol ; | ||
rdfs:subClassOf [ | ||
owl:onProperty <http://purl.obolibrary.org/obo/RO_0002162> ; | ||
owl:someValuesFrom ?taxon ] ; | ||
<http://purl.org/dc/terms/description> ?description . | ||
} | ||
WHERE { | ||
?gene <https://w3id.org/biolink/vocab/category> <https://w3id.org/biolink/vocab/Gene> ; | ||
<https://w3id.org/biolink/vocab/in_taxon> ?taxon_xref ; | ||
<https://w3id.org/biolink/vocab/symbol> ?symbol . | ||
|
||
OPTIONAL { | ||
?gene <http://purl.org/dc/terms/description> ?description . | ||
} | ||
|
||
FILTER (!isBlank(?gene)) | ||
FILTER ( regex(str(?gene), "^http://identifiers.org/ncbigene/")) | ||
BIND(IRI(REPLACE(str(?taxon_xref), "NCBITaxon:","http://purl.obolibrary.org/obo/NCBITaxon_")) AS ?taxon) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters