Administrator
|
Hi,
You're true, there is no mean to access / define ontology metadata... This is mainly because onto.something search for entity "something" in onto, and does not refer to the annotation of the ontology.
In the development version, I've added onto.metadata, which allows to query or define metadata:
>>> print(onto.metadata.comment)
[...]
>>> onto.metadata.comment.append("my first comment")
Currently, the only workaround possible is to add the triple directly in the quadstore:
>>> onto.add_triple(onto.storid, comment.storid, to_literal("abc"))
Best regards,
Jiba
|