neosemantics icon indicating copy to clipboard operation
neosemantics copied to clipboard

Load class annotations in ontology import

Open fanavarro opened this issue 4 years ago • 0 comments

Hi, I am using the ontology import method to save a simplified version of my ontology into a neo4j database. I actually like this simplified version and it works for me. However, I noted that annotations on owl classes and properties are not being taken into account. For example, in my ontology, the classes are annotated with skos:prefLabel annotation property, but this is not included in neo4j after loading the ontology.

I think including this kind of annotation properties is fine when loading ontologies since they rarely include complex stuff like anonymous nodes. I've checked the OntologyImporter class, and I have seen the axioms taken into account. Would it be ok if skos annotation properties are also considered? Another option is to consider all annotation properties whose value is a literal. I think I can try to include it this weekend, at least the skos part. Would it be useful for the community?

fanavarro avatar Feb 16 '21 09:02 fanavarro