vemonet / shapes-of-you

💠 An index for linked open data & standard knowledge descriptions (ontologies, vocabularies, shapes, queries, mappings)
http://index.semanticscience.org
MIT License
38 stars 6 forks source link

Index mappings files (sssom) #35

Open vemonet opened 2 years ago

vemonet commented 2 years ago

Parse files from the "Simple Standard for Sharing Ontology Mappings (SSSOM)": https://mapping-commons.github.io/sssom/usecases/

matentzn commented 2 years ago

These are not all perfect, but due to the use of LinkML there are some automatic conversions into SHACL and SHEX: https://github.com/mapping-commons/sssom/tree/master/project.

There are also data classes for SSSOM here: https://github.com/mapping-commons/sssom/blob/master/src/sssom_schema/datamodel/sssom_schema.py (on pypi)

An example parser is here: https://github.com/mapping-commons/sssom-py/blob/bbbd22ed058175f74b06ccc79cfb0f49414270c6/sssom/parsers.py#L133

vemonet commented 2 years ago

Hi @matentzn thanks a lot for those pointers, the example for parsing is exactly what I need