Skip to content

Commit 5894c8a

Browse files
authored
Merge pull request #66 from INCATools/node-identifiers
node identifiers
2 parents deacdd8 + 25f52d6 commit 5894c8a

File tree

6 files changed

+28
-5
lines changed

6 files changed

+28
-5
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ selected: $(patsubst %,all-%,$(SELECTED_ONTS))
3434

3535
all-%: db/%.db
3636
sqlite3 $< "SELECT COUNT(*) FROM statements"
37-
#stage/%.db.gz: db/%.db
38-
# gzip -c $< > [email protected] && mv [email protected] $@
39-
stage/%.db.gz:
40-
gzip -c db/$*.db > $@.tmp && mv $@.tmp $@
37+
stage/%.db.gz: db/%.db
38+
gzip -c $< > $@.tmp && mv $@.tmp $@
39+
#stage/%.db.gz:
40+
# gzip -c db/$*.db > [email protected] && mv [email protected] $@
4141
.PRECIOUS: stage/%.db.gz
4242

4343
list-onts:

ontologies.Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,17 @@ db/complexportal.owl: download/complexportal.owl
416416
cp $< $@
417417

418418

419+
download/drugmechdb.owl: STAMP
420+
curl -L -s None > $@.tmp
421+
sha256sum -b $@.tmp > $@.sha256
422+
mv $@.tmp $@
423+
424+
.PRECIOUS: download/drugmechdb.owl
425+
426+
db/drugmechdb.owl: download/drugmechdb.owl
427+
cp $< $@
428+
429+
419430
download/%.owl: STAMP
420431
curl -L -s http://purl.obolibrary.org/obo/$*.owl > $@.tmp
421432
sha256sum -b $@.tmp > $@.sha256
@@ -426,4 +437,4 @@ download/%.owl: STAMP
426437
db/%.owl: download/%.owl
427438
robot merge -i $< -o $@
428439

429-
EXTRA_ONTOLOGIES = chiro ncit maxo foodon chebiplus msio phenio comploinc bero aio reacto go go-lego bao orcid cpont biolink biopax enanomapper mlo ito reactome-Homo-sapiens efo edam sweetAll lov schema-dot-org cosmo co_324 hgnc.genegroup hgnc dictybase eccode uniprot rhea drugbank drugcentral complexportal
440+
EXTRA_ONTOLOGIES = chiro ncit maxo foodon chebiplus msio phenio comploinc bero aio reacto go go-lego bao orcid cpont biolink biopax enanomapper mlo ito reactome-Homo-sapiens efo edam sweetAll lov schema-dot-org cosmo co_324 hgnc.genegroup hgnc dictybase eccode uniprot rhea drugbank drugcentral complexportal drugmechdb

src/semsql/builder/prefixes/prefixes.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ uniprot.obo,http://purl.obolibrary.org/obo/uniprot_
7070
drugbank,http://purl.obolibrary.org/obo/drugbank_
7171
drugbank,http://purl.obolibrary.org/obo/drugcentral_
7272
complexportal,http://purl.obolibrary.org/obo/complexportal_
73+
MESH,http://id.nlm.nih.gov/mesh/
7374
RBO,http://purl.obolibrary.org/obo/RBO_
7475
RBO,http://purl.obolibrary.org/obo/RBO_
7576
CLYH,http://purl.obolibrary.org/obo/CLYH_

src/semsql/builder/prefixes/prefixes_local.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ uniprot.obo,http://purl.obolibrary.org/obo/uniprot_
1818
drugbank,http://purl.obolibrary.org/obo/drugbank_
1919
drugbank,http://purl.obolibrary.org/obo/drugcentral_
2020
complexportal,http://purl.obolibrary.org/obo/complexportal_
21+
MESH,http://id.nlm.nih.gov/mesh/

src/semsql/builder/registry/ontologies.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,6 @@ ontologies:
164164
compression: gzip
165165
prefixmap:
166166
complexportal: http://purl.obolibrary.org/obo/complexportal_
167+
drugmechdb:
168+
prefixmap:
169+
MESH: http://id.nlm.nih.gov/mesh/

utils/ncbo2owl.pl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/perl -np
2+
# See: https://github.com/INCATools/ontology-access-kit/issues/427
3+
s@skos:prefLabel @rdfs:label @;
4+
s@<http://purl.bioontology.org/ontology/\w+/isa> @rdfs:subClassOf @;
5+
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
6+
s@umls:cui """(\w+)"""\^\^xsd:string@skos:exactMatch umls:$1@;
7+
s@(<http://purl.bioontology.org/ontology/RXNORM/(has_ingredient|consists_of|has_dose_form|tradename_of)>) (<http://purl.bioontology.org/ontology/RXNORM/\d+>)@rdfs:subClassOf [a owl:Restriction; owl:onProperty $1; owl:someValuesFrom $3]@;

0 commit comments

Comments
 (0)