Skip to content

Commit

Permalink
Correct up taxonomy uri
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcisio_adm committed Aug 23, 2024
1 parent 4e2c6f8 commit f1ff4f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ontop_config/emi-v0_2/emi-v0_2.obda
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ source SELECT trim(replace(replace(replace(substring_index(tax_name, '"',2), '"

mappingId open_tree_life_synonym_2
target <https://tree.opentreeoflife.org/taxonomy/browse?id={uid}> skos:exactMatch <{iri_mapping}> . <{iri_mapping}> dcterms:identifier {external_id}^^xsd:string .
source SELECT uid, substring_index( IF( sourceinfo like 'ncbi:%', replace(sourceinfo, 'ncbi:','https://www.uniprot.org/taxonomy/'), replace(sourceinfo, 'gbif:','https://www.gbif.org/species/')),',' ,1 ) as iri_mapping, substring_index(sourceinfo,',','1') as external_id FROM open_tree_life_synonym where (sourceinfo like 'ncbi:%' or sourceinfo like 'gbif:%')
source SELECT uid, substring_index( IF( sourceinfo like 'ncbi:%', replace(sourceinfo, 'ncbi:','http://purl.uniprot.org/taxonomy/'), replace(sourceinfo, 'gbif:','https://www.gbif.org/species/')),',' ,1 ) as iri_mapping, substring_index(sourceinfo,',','1') as external_id FROM open_tree_life_synonym where (sourceinfo like 'ncbi:%' or sourceinfo like 'gbif:%')
]]

2 changes: 1 addition & 1 deletion ontop_config/open-tree-of-life/otl.obda
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ source SELECT trim(replace(replace(replace(substring_index(tax_name, '"',2), '"

mappingId open_tree_life_synonym_2
target <https://tree.opentreeoflife.org/taxonomy/browse?id={uid}> skos:exactMatch <{iri_mapping}>. <{iri_mapping}> dcterms:identifier {external_id}^^xsd:string .
source SELECT uid, substring_index( IF( sourceinfo like 'ncbi:%', replace(sourceinfo, 'ncbi:','https://www.uniprot.org/taxonomy/'), replace(sourceinfo, 'gbif:','https://www.gbif.org/species/')),',' ,1 ) as iri_mapping, substring_index(sourceinfo,',','1') as external_id FROM open_tree_life_synonym where (sourceinfo like 'ncbi:%' or sourceinfo like 'gbif:%')
source SELECT uid, substring_index( IF( sourceinfo like 'ncbi:%', replace(sourceinfo, 'ncbi:','http://purl.uniprot.org/taxonomy/'), replace(sourceinfo, 'gbif:','https://www.gbif.org/species/')),',' ,1 ) as iri_mapping, substring_index(sourceinfo,',','1') as external_id FROM open_tree_life_synonym where (sourceinfo like 'ncbi:%' or sourceinfo like 'gbif:%')
]]

2 changes: 1 addition & 1 deletion ontop_config/traits/traits.obda
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ up: http://purl.uniprot.org/core/

mappingId taxonomy
target <https://tree.opentreeoflife.org/taxonomy/browse?id={ott}> skos:exactMatch <http://purl.uniprot.org/taxonomy/{ncbi_otol}>, <http://purl.uniprot.org/taxonomy/{ncbi_wd}>, <https://www.gbif.org/species/{gbif_otol_new}>, <https://www.eol.org/pages/{eol}>, <http://purl.obolibrary.org/obo/NCBITaxon_{ncbi_wd}>, <http://purl.obolibrary.org/obo/NCBITaxon_{ncbi_otol}> , <{WdID}> . <http://purl.uniprot.org/taxonomy/{ncbi_otol}> dcterms:identifier {ncbi_otol}^^xsd:int ; skos:inScheme <http://purl.uniprot.org/taxonomy> . <http://purl.uniprot.org/taxonomy> rdfs:label "UniProtKB-NCBI organismal taxonomy" . <https://www.gbif.org/species/{gbif_otol_new}> dcterms:identifier {gbif_otol_new}^^xsd:int ; skos:inScheme <https://www.gbif.org/species> . <https://www.gbif.org/species> rdfs:label "The GBIF taxonomy" . <https://www.eol.org/pages/{eol}> dcterms:identifier {eol}^^xsd:int ; skos:inScheme <https://www.eol.org> . <https://www.eol.org> rdfs:label "Encyclopedia of Life" . <http://purl.obolibrary.org/obo/NCBITaxon_{ncbi_wd}> dcterms:identifier {ncbi_wd}^^xsd:int ; skos:inScheme <http://purl.obolibrary.org/obo/ncbitaxon.owl> . <http://purl.obolibrary.org/obo/ncbitaxon.owl> rdfs:label "NCBI organismal classification" . <{WdID}> dcterms:identifier {wd_id}^^xsd:string ; a emi:Taxon ; skos:inScheme <http://www.wikidata.org/entity> . <http://www.wikidata.org/entity> rdfs:label "Wikidata entities".
source SELECT ott, IF(WdID = 'NA', Null, WdID) as WdID, replace(replace(WdID, 'http://www.wikidata.org/entity/',''),'NA',Null) as wd_id, IF(eol='NA', Null, eol) as eol, IF(gbif_otol='NA', Null, gbif_otol) as gbif_otol_new, IF(ncbi_wd='NA', Null, ncbi_wd) as ncbi_wd, IF(ncbi_otol='NA', Null, ncbi_otol) as ncbi_otol FROM taxonomy where ott != 'NA' and WdID = 'NA'
source SELECT DISTINCT IF(ott='NA',null,ott) as ott, IF(WdID = 'NA', null, WdID) as WdID, IF(WdID = 'NA', null, replace(WdID, 'http://www.wikidata.org/entity/','')) as wd_id, IF(eol='NA', null, eol) as eol, IF(gbif_otol='NA', null, gbif_otol) as gbif_otol_new, IF(ncbi_wd='NA', null, ncbi_wd) as ncbi_wd, IF(ncbi_otol='NA', null, ncbi_otol) as ncbi_otol FROM taxonomy


]]
Expand Down

0 comments on commit f1ff4f0

Please sign in to comment.