acdh-oeaw / apis-core-rdf

APIS Core refactored
https://acdh-oeaw.github.io/apis-core-rdf/
MIT License
3 stars 3 forks source link

come up with a solution to convert RDF ontologies in models.py files #442

Open sennierer opened 9 months ago

sennierer commented 9 months ago

Use case for this would be to easily create models.py files from existing widely used ontologies. Advantage of this would be that the parser would already know how to again create RDF out of the model class and thus could also add the RDF serializer config.

However, there would be the need to somehow tell the parser what fields to put in the entity classes, what in relations etc. This could e.g. be achieved by creating an APIS-RDF ontology that would allow to set RDF classes also as APIS entity classes, APIS entity attributes etc. It could also be achieved by simply answering questions on the command line.

sennierer commented 9 months ago

@gregorpirgie could you add your comments on this here