Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1938

OntClass query does not return classes that are of type RDFS.Class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Jena 3.16.0
    • None
    • Ontology API

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            AHOO Amir Hooshmand
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: