[
https://issues.apache.org/jira/browse/JENA-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162587#comment-17162587
]
Lorenz Bühmann commented on JENA-1938:
--------------------------------------
I'm still not convinced. It depends on the profile, yes. But in an OWL profile
an RDFS class should not be returned unless it's an OWL class. In the RDFS
Profile, sure. anything that is an owl:Class or an rdfs:Class should be
returned.
I mean, you cannot even use rdfs:Class as a class in OWL, it is not a legal
class in OWL.
Anyways, Andy or Dave have to decide on what is correct or not. As long as this
is documented I don't care. So just wait for comments and just in case you
could open a PR if you're willing to contribute.
> OntClass query does not return classes that are of type RDFS.Class
> ------------------------------------------------------------------
>
> Key: JENA-1938
> URL: https://issues.apache.org/jira/browse/JENA-1938
> Project: Apache Jena
> Issue Type: Bug
> Components: Ontology API
> Affects Versions: Jena 3.16.0
> Environment: Team,
> There is a bug in the Ontology API; the OntClass query does not return
> classes that are RDFS.Class. You receive only OWL.Class and OWL.Restriction
> classes
> There are two functions affected due to this bug (to my best knowledge);
> * ontClass.listNamedClasses();
> * ontClass.listClasses();
> The Bug is in "org.apache.jena.ontology.impl" in
> * OWLProfile Class,
> * method getClassDescriptionTypes()
> * in Line 218
> My suggestion to fix the bug:
> * add <<< RDFS.Class >>> to the ArrayList.
>
> Thanks
> Amir
> Reporter: Amir Hooshmand
> Priority: Major
> Labels: easyfix, ready-to-commit
>
> Team,
> There is a bug in the Ontology API; the OntClass query does not return
> classes that are RDFS.Class. You receive only OWL.Class and OWL.Restriction
> classes
> There are two functions affected due to this bug (to my best knowledge);
> * ontClass.listNamedClasses();
> * ontClass.listClasses();
> The Bug is in "org.apache.jena.ontology.impl" in
> * OWLProfile Class,
> * method getClassDescriptionTypes()
> * in Line 218
> My suggestion to fix the bug:
> * add <<< RDFS.Class >>> to the ArrayList.
>
> Thanks
> Amir
--
This message was sent by Atlassian Jira
(v8.3.4#803005)