luckinet / ontologics

Code-Logics to Handle Ontologies
https://luckinet.github.io/ontologics/
GNU General Public License v3.0
3 stars 2 forks source link

read/write of an ontology #16

Open EhrmannS opened 2 years ago

EhrmannS commented 2 years ago

Since we now have a function to load_ontology and one to export_as_rdf, whether it would make sense to harmonise this further into a read_ontology and write_ontology function. Currently, the load function is only able to read from rds and there is no specific "write" function, albeit the export function obviously does this, it can't write to rds itself... What do you think, @rue-a?

rue-a commented 2 years ago

I see the point here. I think it would make sense to assign read_ontology and write_ontology to the native rds format. And use import and export for non-native formats such as RDF. I also think it would make sense to rename the export_as_rdf function to export_as_skos, as it is more precise. But export_as_rdf is more obvious, maybe; I'm not sure. Future releases of the package could have an import_from_skos function.