pyLODE
pyLODE copied to clipboard
support individuals even without owl:NamedIndividual
https://github.com/Accord-Project/aec3po/issues/4 , Maxime Lefrancois wrote:
named individuals need to be explicitly asserted as instances of owl:NamedIndividual for PyLODE to generate the corresponding section
How to recognize individuals:
a subject in the ontology file that is not member of any of the known class and property classes (from rdf, rdfs, owl).
At least in 3.2.1, the #named_individuals section never gets generated, neither in OntPub, nor in VocPub.
For example the following block is orphan:
https://github.com/RDFLib/pyLODE/blob/3.2.1/pylode/profiles/vocpub.py#L555-L558
as something should be done about named individual around line 506
The readme says
While it does know about instance data, such as Named Individuals, it's not really designed to document large ontologies containing class instances. However, I checked all examples in https://github.com/RDFLib/pyLODE/tree/master/examples/ontpub, and https://github.com/RDFLib/pyLODE/blob/master/pylode/rdf_elements.py, and I don't see handling of individuals.
https://github.com/Accord-Project/aec3po/issues/4 item3 depends on adding such handling.