Multiple models storing the same `rdf_type`
In DjangoLDP, we define a function _get_model_with_rdf_type, which is used to get the model corresponding to an rdf_type
received in an activity
It therefore assumes that only one model on the server will be used to store the same rdf_type. In the package djangoldp-invoice this was not the case, as both FreelanceInvoice
and CustomerInvoice
were storing rdf_type = sib:invoice
I think that this is spec-compliant, possibly a limitation of using an SQL database with RDF semantics?
EDIT: a solution may be djangoldp-packages/djangoldp#352
In future it may be possible for us to be more intelligent in deducing which model locally stores the object, for example by examining the fields included on the resource