Skip to content

Commit

Permalink
Merge pull request #56 from cthoyt/add-bioregistry-uri-synonyms
Browse files Browse the repository at this point in the history
Add URI prefix synonyms from the Bioregistry
  • Loading branch information
sierra-moxon authored Dec 18, 2023
2 parents b8a2bbd + e4dbbe5 commit 588804c
Show file tree
Hide file tree
Showing 7 changed files with 47,671 additions and 72 deletions.
11,914 changes: 11,914 additions & 0 deletions src/prefixmaps/data/bioregistry.csv

Large diffs are not rendered by default.

11,914 changes: 11,914 additions & 0 deletions src/prefixmaps/data/bioregistry.upper.csv

Large diffs are not rendered by default.

11,939 changes: 11,908 additions & 31 deletions src/prefixmaps/data/merged.csv

Large diffs are not rendered by default.

11,939 changes: 11,908 additions & 31 deletions src/prefixmaps/data/merged.oak.csv

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions src/prefixmaps/data/prefixcc.csv
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ prefixcc,ceo,https://linkeddata.cultureelerfgoed.nl/def/ceo#,canonical
prefixcc,ceox,https://linkeddata.cultureelerfgoed.nl/def/ceox#,canonical
prefixcc,cercabib,https://cercabib.ub.edu/,canonical
prefixcc,cerealstoo,http://rdf.ag/o/cerealstoo#,canonical
prefixcc,cergy,https://dbpedia.org/page/Cergy/,canonical
prefixcc,cerif,http://spi-fm.uca.es/neologism/cerif#,canonical
prefixcc,cert,http://www.w3.org/ns/auth/cert#,canonical
prefixcc,ceterms,http://purl.org/ctdl/terms/,canonical
Expand Down Expand Up @@ -823,7 +824,7 @@ prefixcc,fire,http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-java.html#,canoni
prefixcc,fisa,https://ifitkau.github.io/fisa/,canonical
prefixcc,fise,http://fise.iks-project.eu/ontology/,canonical
prefixcc,fl,http://eulersharp.sourceforge.net/2003/03swap/fl-rules#,canonical
prefixcc,flow,http://www.w3.org/2005/01/wf/flow#,namespace_alias
prefixcc,flow,http://www.w3.org/2005/01/wf/flow#,canonical
prefixcc,fls,http://lukasblaho.sk/football_league_schema#,canonical
prefixcc,fluidops,http://www.fluidops.com/,canonical
prefixcc,fma,http://sig.uw.edu/fma#,canonical
Expand Down Expand Up @@ -933,7 +934,7 @@ prefixcc,gfo,http://www.onto-med.de/ontologies/gfo.owl#,canonical
prefixcc,gg,http://www.gemeentegeschiedenis.nl/gg-schema#,canonical
prefixcc,ggbn,http://data.ggbn.org/schemas/ggbn/terms/,canonical
prefixcc,ghga,http://w3id.org/ghga/,canonical
prefixcc,gist,http://ontologies.semanticarts.com/gist/,canonical
prefixcc,gist,https://ontologies.semanticarts.com/o/gistCore#,canonical
prefixcc,giving,http://ontologi.es/giving#,canonical
prefixcc,gl,http://schema.geolink.org/,canonical
prefixcc,gldp,http://www.w3.org/ns/people#,canonical
Expand Down Expand Up @@ -983,6 +984,7 @@ prefixcc,gsp,http://www.opengis.net/ont/geosparql#,namespace_alias
prefixcc,gt,https://vocab.eccenca.com/geniustex/,canonical
prefixcc,gtfs,http://vocab.gtfs.org/terms#,canonical
prefixcc,gts,http://resource.geosciml.org/ontology/timescale/gts#,canonical
prefixcc,guez,http://guez.fr/,canonical
prefixcc,gufo,http://purl.org/nemo/gufo#,canonical
prefixcc,guo,http://purl.org/hpi/guo#,canonical
prefixcc,gv,http://rdf.data-vocabulary.org/#,namespace_alias
Expand Down Expand Up @@ -1067,6 +1069,7 @@ prefixcc,idot,http://identifiers.org/idot/,canonical
prefixcc,idpo,https://w3id.org/idpo#,canonical
prefixcc,ids,https://w3id.org/idsa/core/,canonical
prefixcc,idsc,https://w3id.org/idsa/code/,canonical
prefixcc,ies,http://ies.data.gov.uk/ontology/ies4#,namespace_alias
prefixcc,ies4,http://ies.data.gov.uk/ontology/ies4#,canonical
prefixcc,ifc,http://ifcowl.openbimstandards.org/IFC2X3_Final#,canonical
prefixcc,ifcowl,http://www.buildingsmart-tech.org/ifcOWL/IFC4_ADD2#,canonical
Expand Down Expand Up @@ -1225,7 +1228,7 @@ prefixcc,lds,https://solid.ti.rw.fau.de/public/ns/linked-data-structures#,canoni
prefixcc,ldt,https://www.w3.org/ns/ldt#,canonical
prefixcc,ldvm,http://linked.opendata.cz/ontology/ldvm/,canonical
prefixcc,leak,http://data.ontotext.com/resource/leak/,canonical
prefixcc,leaks,https://cuzin.com/,canonical
prefixcc,leaks,https://onlyfans.com/chelxie/,canonical
prefixcc,led,http://led.kmi.open.ac.uk/term/,canonical
prefixcc,legal,http://www.w3.org/ns/legal#,canonical
prefixcc,lemon,http://lemon-model.net/lemon#,canonical
Expand Down Expand Up @@ -1415,6 +1418,8 @@ prefixcc,mil,http://rdf.muninn-project.org/ontologies/military#,canonical
prefixcc,mime,https://www.iana.org/assignments/media-types/,canonical
prefixcc,mindat,https://www.mindat.org/,canonical
prefixcc,minim,http://purl.org/minim/minim#,canonical
prefixcc,miprog,https://marineinfo.org/ns/progress#,canonical
prefixcc,mir,http://marineinfo.org/ns/person/roles#,canonical
prefixcc,misp,http://purl.org/cyber/misp#,canonical
prefixcc,mit,http://purl.org/ontology/mo/mit#,canonical
prefixcc,mls,http://www.w3.org/ns/mls#,canonical
Expand Down Expand Up @@ -2609,7 +2614,7 @@ prefixcc,static,http://vocab-ld.org/vocab/static-ld#,canonical
prefixcc,stats,http://purl.org/rdfstats/stats#,canonical
prefixcc,status,http://www.w3.org/2003/06/sw-vocab-status/ns#,namespace_alias
prefixcc,stax,https://w3id.org/stax/ontology#,canonical
prefixcc,steel,http://ontorule-project.eu/resources/steel-30#,canonical
prefixcc,steel,https://w3id.org/steel/ProcessOntology/,canonical
prefixcc,stencila,http://schema.stenci.la/,canonical
prefixcc,step,http://purl.org/net/step#,canonical
prefixcc,stirdata,https://w3id.org/stirdata/vocabulary/,canonical
Expand Down Expand Up @@ -2764,6 +2769,7 @@ prefixcc,ufo,http://ufo.com/#,canonical
prefixcc,ui,http://www.w3.org/ns/ui#,canonical
prefixcc,uimo,http://vocab.sti2.at/uimo/,canonical
prefixcc,uio,https://www.mitre.org/mparmelee/ontologies/2023/6/UserIntentOntology/,canonical
prefixcc,uiot,http://www.w3id.org/urban-iot/core#,canonical
prefixcc,uis,http://uis.270a.info/dataset/,canonical
prefixcc,ul,http://underlay.mit.edu/ns/,canonical
prefixcc,ulan,http://vocab.getty.edu/ulan/,canonical
Expand Down Expand Up @@ -2898,7 +2904,7 @@ prefixcc,webbox,http://webbox.ecs.soton.ac.uk/ns#,canonical
prefixcc,webservice,http://www.openlinksw.com/ontology/webservices#,canonical
prefixcc,webtlab,http://webtlab.it.uc3m.es/,canonical
prefixcc,weki,https://en.wikipedia.org/wiki/,namespace_alias
prefixcc,wf,http://www.w3.org/2005/01/wf/flow#,canonical
prefixcc,wf,http://www.w3.org/2005/01/wf/flow#,namespace_alias
prefixcc,wf4ever,http://purl.org/wf4ever/wf4ever#,canonical
prefixcc,wfdesc,http://purl.org/wf4ever/wfdesc#,canonical
prefixcc,wfm,http://purl.org/net/wf-motifs#,canonical
Expand Down
15 changes: 14 additions & 1 deletion src/prefixmaps/data/w3id.csv
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ w3id,annett-o,https://w3id.org/annett-o/,canonical
w3id,aoi,https://w3id.org/aoi/,canonical
w3id,APD,https://w3id.org/APD/,canonical
w3id,apn,https://w3id.org/apn/,canonical
w3id,aqfo,https://w3id.org/aqfo/,canonical
w3id,arco,https://w3id.org/arco/,canonical
w3id,ardo,https://w3id.org/ardo/,canonical
w3id,ARK,https://w3id.org/ARK/,canonical
Expand Down Expand Up @@ -156,6 +157,7 @@ w3id,citizenship,https://w3id.org/citizenship/,canonical
w3id,cityofthings,https://w3id.org/cityofthings/,canonical
w3id,cityspin,https://w3id.org/cityspin/,canonical
w3id,ckgg,https://w3id.org/ckgg/,canonical
w3id,clarin_el_dictionary,https://w3id.org/clarin_el_dictionary/,canonical
w3id,class,https://w3id.org/class/,canonical
w3id,classrank,https://w3id.org/classrank/,canonical
w3id,cld,https://w3id.org/cld/,canonical
Expand Down Expand Up @@ -195,6 +197,7 @@ w3id,cpld,https://w3id.org/cpld/,canonical
w3id,cpm,https://w3id.org/cpm/,canonical
w3id,cpont,https://w3id.org/cpont/,canonical
w3id,cpr,https://w3id.org/cpr/,canonical
w3id,CPSWatch,https://w3id.org/CPSWatch/,canonical
w3id,cpto,https://w3id.org/cpto/,canonical
w3id,cramp-fdp,https://w3id.org/cramp-fdp/,canonical
w3id,credentials,https://w3id.org/credentials/,canonical
Expand Down Expand Up @@ -285,6 +288,7 @@ w3id,dosdp,https://w3id.org/dosdp/,canonical
w3id,dot,https://w3id.org/dot/,canonical
w3id,dpcat,https://w3id.org/dpcat/,canonical
w3id,dpp,https://w3id.org/dpp/,canonical
w3id,dppo,https://w3id.org/dppo/,canonical
w3id,dpv,https://w3id.org/dpv/,canonical
w3id,dqd,https://w3id.org/dqd/,canonical
w3id,dqts,https://w3id.org/dqts/,canonical
Expand Down Expand Up @@ -332,6 +336,7 @@ w3id,ejp-rd,https://w3id.org/ejp-rd/,canonical
w3id,eke,https://w3id.org/eke/,canonical
w3id,elementary,https://w3id.org/elementary/,canonical
w3id,emerging,https://w3id.org/emerging/,canonical
w3id,emmo,https://w3id.org/emmo/,canonical
w3id,empathi,https://w3id.org/empathi/,canonical
w3id,encode,https://w3id.org/encode/,canonical
w3id,EnergyInformationModel,https://w3id.org/EnergyInformationModel/,canonical
Expand Down Expand Up @@ -384,6 +389,7 @@ w3id,faircookbook,https://w3id.org/faircookbook/,canonical
w3id,FAIROS,https://w3id.org/FAIROS/,canonical
w3id,FAIRVASC,https://w3id.org/FAIRVASC/,canonical
w3id,fairvasc-fdp,https://w3id.org/fairvasc-fdp/,canonical
w3id,fao-ipgr,https://w3id.org/fao-ipgr/,canonical
w3id,farm-stack,https://w3id.org/farm-stack/,canonical
w3id,FATO,https://w3id.org/FATO/,canonical
w3id,favr,https://w3id.org/favr/,canonical
Expand Down Expand Up @@ -495,6 +501,7 @@ w3id,ic,https://w3id.org/ic/,canonical
w3id,icddl,https://w3id.org/icddl/,canonical
w3id,icity,https://w3id.org/icity/,canonical
w3id,icon,https://w3id.org/icon/,canonical
w3id,icsa,https://w3id.org/icsa/,canonical
w3id,id-rules,https://w3id.org/id-rules/,canonical
w3id,idafensp,https://w3id.org/idafensp/,canonical
w3id,iddo,https://w3id.org/iddo/,canonical
Expand Down Expand Up @@ -558,6 +565,7 @@ w3id,kos,https://w3id.org/kos/,canonical
w3id,kouigenjimonogatari,https://w3id.org/kouigenjimonogatari/,canonical
w3id,kpionto,https://w3id.org/kpionto/,canonical
w3id,kpxl,https://w3id.org/kpxl/,canonical
w3id,ksa,https://w3id.org/ksa/,canonical
w3id,kxu,https://w3id.org/kxu/,canonical
w3id,l4dr,https://w3id.org/l4dr/,canonical
w3id,la,https://w3id.org/la/,canonical
Expand Down Expand Up @@ -732,6 +740,7 @@ w3id,omn,https://w3id.org/omn/,canonical
w3id,omop,https://w3id.org/omop/,canonical
w3id,onderwijs-vlaanderen,https://w3id.org/onderwijs-vlaanderen/,canonical
w3id,onto4drone,https://w3id.org/onto4drone/,canonical
w3id,ontobio,https://w3id.org/ontobio/,canonical
w3id,ontoboldt,https://w3id.org/ontoboldt/,canonical
w3id,ontocis,https://w3id.org/ontocis/,canonical
w3id,ontocity,https://w3id.org/ontocity/,canonical
Expand All @@ -741,6 +750,7 @@ w3id,OntoDT-extended,https://w3id.org/OntoDT-extended/,canonical
w3id,ontoeng,https://w3id.org/ontoeng/,canonical
w3id,OntoExhibit,https://w3id.org/OntoExhibit/,canonical
w3id,ontoexp,https://w3id.org/ontoexp/,canonical
w3id,ontofnct,https://w3id.org/ontofnct/,canonical
w3id,ontogpt,https://w3id.org/ontogpt/,canonical
w3id,OntoGraphDB,https://w3id.org/OntoGraphDB/,canonical
w3id,ontoim,https://w3id.org/ontoim/,canonical
Expand Down Expand Up @@ -780,6 +790,7 @@ w3id,organization,https://w3id.org/organization/,canonical
w3id,orphadata,https://w3id.org/orphadata/,canonical
w3id,OSCD,https://w3id.org/OSCD/,canonical
w3id,osdu,https://w3id.org/osdu/,canonical
w3id,oseg,https://w3id.org/oseg/,canonical
w3id,ost,https://w3id.org/ost/,canonical
w3id,ovama-proms,https://w3id.org/ovama-proms/,canonical
w3id,OWLToOAS,https://w3id.org/OWLToOAS/,canonical
Expand Down Expand Up @@ -818,6 +829,7 @@ w3id,pmd,https://w3id.org/pmd/,canonical
w3id,pmlm,https://w3id.org/pmlm/,canonical
w3id,pnv,https://w3id.org/pnv/,canonical
w3id,PO2,https://w3id.org/PO2/,canonical
w3id,podio,https://w3id.org/podio/,canonical
w3id,polifonia,https://w3id.org/polifonia/,canonical
w3id,pope,https://w3id.org/pope/,canonical
w3id,poseidon,https://w3id.org/poseidon/,canonical
Expand Down Expand Up @@ -967,14 +979,14 @@ w3id,softalias,https://w3id.org/softalias/,canonical
w3id,software-iodata,https://w3id.org/software-iodata/,canonical
w3id,software-types,https://w3id.org/software-types/,canonical
w3id,softwareCredit,https://w3id.org/softwareCredit/,canonical
w3id,solar,https://w3id.org/solar/,canonical
w3id,solid,https://w3id.org/solid/,canonical
w3id,sona,https://w3id.org/sona/,canonical
w3id,sora,https://w3id.org/sora/,canonical
w3id,soya,https://w3id.org/soya/,canonical
w3id,spar,https://w3id.org/spar/,canonical
w3id,sparql-generate,https://w3id.org/sparql-generate/,canonical
w3id,special,https://w3id.org/special/,canonical
w3id,speech,https://w3id.org/speech/,canonical
w3id,spew,https://w3id.org/spew/,canonical
w3id,spice,https://w3id.org/spice/,canonical
w3id,spm,https://w3id.org/spm/,canonical
Expand All @@ -991,6 +1003,7 @@ w3id,srt,https://w3id.org/srt/,canonical
w3id,sskg,https://w3id.org/sskg/,canonical
w3id,sssom,https://w3id.org/sssom/,canonical
w3id,stahl,https://w3id.org/stahl/,canonical
w3id,stap,https://w3id.org/stap/,canonical
w3id,stargate-h2020,https://w3id.org/stargate-h2020/,canonical
w3id,stav,https://w3id.org/stav/,canonical
w3id,stax,https://w3id.org/stax/,canonical
Expand Down
6 changes: 2 additions & 4 deletions src/prefixmaps/ingest/ingest_bioregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def from_bioregistry(upper=False, canonical_idorg=True, filter_dubious=True) ->
"obofoundry",
"miriam.legacy" if canonical_idorg else "miriam",
"default",
"bioportal",
"ols",
"n2t",
]
Expand All @@ -82,7 +81,6 @@ def from_bioregistry(upper=False, canonical_idorg=True, filter_dubious=True) ->
if record.prefix not in PROBLEMATIC_CURIE_PREFIX_SYNONYMS_RECORDS:
for s in record.prefix_synonyms:
context.add_prefix(s, record.uri_prefix, preferred=preferred)
# TODO future, add URI prefix synonyms
# for s in record.uri_prefix_synonyms:
# context.add_prefix(record.prefix, s, status=StatusType.namespace_alias, preferred=preferred)
for s in record.uri_prefix_synonyms:
context.add_prefix(record.prefix, s, preferred=preferred)
return context

0 comments on commit 588804c

Please sign in to comment.