pyLODE icon indicating copy to clipboard operation
pyLODE copied to clipboard

support individuals even without owl:NamedIndividual

Open VladimirAlexiev opened this issue 7 months ago • 1 comments

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).

VladimirAlexiev avatar Apr 17 '25 14:04 VladimirAlexiev

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

maximelefrancois86 avatar Apr 18 '25 09:04 maximelefrancois86

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.

VladimirAlexiev avatar Aug 04 '25 09:08 VladimirAlexiev