[ 
https://issues.apache.org/jira/browse/JENA-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162571#comment-17162571
 ] 

Amir Hooshmand edited comment on JENA-1938 at 7/22/20, 7:56 AM:
----------------------------------------------------------------

Thanks for the comment, but of-course it is a bug, please see below from Jena 
Documentation: 
 * "The Jena Ontology API is language-neutral: the Java class names are not 
specific to the underlying language. For example, *the {{OntClass}} Java class 
can represent an* *OWL class or RDFS class*. To represent the differences 
between the various representations, each of the ontology languages has a 
_profile_, which lists the permitted constructs and the names of the classes 
and properties."
 * Check here: [https://jena.apache.org/documentation/ontology/] 

 Furthermore in the same class OWLProfile see lines 385-402;
 * As you can see the OntClass.doCheck() is very different from the 
getClassDescriptionTypes()
 * This shows one of the methods should be buggy! 

 


was (Author: ahoo):
Thanks for the comment, but of-course it is a bug, please see below from Jena 
Documentation: 
 * "The Jena Ontology API is language-neutral: the Java class names are not 
specific to the underlying language. For example, *the {{OntClass}} Java class 
can represent an* *OWL class or RDFS class*. To represent the differences 
between the various representations, each of the ontology languages has a 
_profile_, which lists the permitted constructs and the names of the classes 
and properties."
 * Check here: [https://jena.apache.org/documentation/ontology/] 

 

 

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

Reply via email to