[
https://issues.apache.org/jira/browse/JENA-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162707#comment-17162707
]
Andy Seaborne commented on JENA-1938:
-------------------------------------
Jena Ont API is (an approximation of) OWL1. No one has contributed and update -
or more likely, a new API - that reflects OWL2 with RDF to the Jena project.
`getClassDescriptionTypes` is defined with javadoc
{noformat}
* Answer an iterator over the various types of class description defined
* in the language.
{noformat}
whereas `isSupported` means:
{noformat}
* Answer true if the given graph supports a view of this node as the given
* language element,
{noformat}
which I don't see as contradictory about rdfs:Class. "viewed as" does not imply
"defined by".
As this code has been this way for a long time, it should be up to the user
community to decide and the important question is what problems are caused by
this, not that it is different. A code example (and future test case) would
show that.
BTW:
Each section of a W3C spec has a link:
e.g. section 6.4 is:
https://www.w3.org/TR/2012/REC-owl2-rdf-based-semantics-20121211/#A_Set_of_Axiomatic_Triples
and github supports links into code: Line 385-402 for OWLProfile is
https://github.com/apache/jena/blob/master/jena-core/src/main/java/org/apache/jena/ontology/impl/OWLProfile.java#L385-L402
> 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
> 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)