sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

fix(rdf): schema.org prefix #96

Closed cmdoret closed 2 months ago

cmdoret commented 3 months ago

The schema prefix is assigned by default by rdflib to https://schema.org. Unfortunately, linkml cannot use https://schema.org and assigns the schema namespace to http://schema.org

As modos inherits http from linkml, all conversions to rdflib resulted in using the automatically assigned schema1 prefix.

This PR overrides the default rdflib assignment of schema so that turtle serialization and SPARQL queries on modos objects can use the schema prefix.