biopragmatics / bioregistry

📮 An integrative registry of biological databases, ontologies, and nomenclatures.
https://bioregistry.io
MIT License
119 stars 51 forks source link

Use SHACL vocabulary in RDF #305

Closed cthoyt closed 2 years ago

cthoyt commented 2 years ago

SHACL is a controlled vocabulary that has the facility for describing the structure of RDF itself.

The OBO Foundry has demonstrated it's useful to represent a prefix map using SHACL. Their implementation that converts the OBO Foundry's prefix map into SHACL is here https://github.com/OBOFoundry/OBOFoundry.github.io/blob/master/util/make-shacl-prefixes.py

It would be useful to create a similar export of the Bioregistry. This could be implemented in this file: https://github.com/biopragmatics/bioregistry/blob/main/src/bioregistry/export/prefix_maps.py next to the code that generates JSON-LD-style prefix maps.

cmungall commented 2 years ago

Yes, we use this for OBO as well: http://purl.obolibrary.org/meta/obo_prefixes.ttl

cthoyt commented 2 years ago

@cmungall this is where I got the idea ;)

cthoyt commented 2 years ago

@kkaris do you want to take care of this?

kkaris commented 2 years ago

Will do!