You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialisation of our RDF models can be triggered by creating an rdflib.Graph and passing it to the model.to_graph(...) method on the model.
graph=rdflib.Graph()
model.to_graph(graph)
# you can now query `graph` as you would any RDF datastore.
Add Unit-test framework to sharedmodel package.
Test overriding of attributes in subclass - do we see the overriden triple outputted whilst the original triple is suppressed?
Test that Resource[T] is serialised properly for both ExistingResource and NewResource types (ensures recursive serialisation for NewResource types).
Test that circular Resource[T] references are serialised properly.
Test that multiple Triples can be specified in an annotation. Ensure they both get serialised properly.
Test exceptions are raised when PropertyStatus.mandatory triples have no value provided when serializing, but recommended/optional silently pass where values haven't been provided.
The text was updated successfully, but these errors were encountered:
Serialisation of our RDF models can be triggered by creating an
rdflib.Graph
and passing it to themodel.to_graph(...)
method on the model.Resource[T]
is serialised properly for both ExistingResource and NewResource types (ensures recursive serialisation for NewResource types).Resource[T]
references are serialised properly.Triple
s can be specified in an annotation. Ensure they both get serialised properly.PropertyStatus.mandatory
triples have no value provided when serializing, butrecommended
/optional
silently pass where values haven't been provided.The text was updated successfully, but these errors were encountered: