rob-metalinkage / django-rdf-io

Simple RDF serialiser/deserialiser to support synching a django model with an external triple-store
Creative Commons Zero v1.0 Universal
37 stars 14 forks source link

Propagate default mappings from target app #2

Open rob-metalinkage opened 8 years ago

rob-metalinkage commented 8 years ago

Allow an app such as skosxl to define default mappings (to SKOS!) and have these used by serialiser automatically.

rob-metalinkage commented 8 years ago

Must also initialise this post_save signals and load reasoning rules (and ontology dependencies) to remote store

rob-metalinkage commented 5 years ago

Djangos loaddata and migrations seem to be not designed for this purpose - migrations are possible to hack - but just very nasty to try to persist in git without mixing up with autogenerated ones - seems to be designed for one-off data migration be experts, not automated setup. (django not so happy with data-driven functionality)

also not easy to see how to override defaults.

currently writing init endpoints that use ORM directly to get an idempotent initialisation to meet downstream module requirements.