Closed Panaetius closed 4 years ago
Together with SHACL this should be possible I guess (with open questions like what to do with open shapes) - but what happens if the graph is large? Maybe at that point you would actually want to query it instead of just reading the json-ld serialization?
Added this yesterday. If you deserialize a flat list with e.g. a PersonSchema then everything with type http://schema.org/person
would be deserialized as a top-level entity (either there has to be a single one or you need to pass the many=True
parameter).
Nesting is done with custom code, not pyld, for performance reasons.
Ideally we'd pass the id of the root object to deserialize and it goes from there, picking the correct schema and deserializing. Alternatively we could maybe unflatten it with pyld and then take it from there.