org.apache.jena.ontology.ConversionException: Cannot convert node http://schema.org/Product to OntClass: it does not have rdf:type owl:Class or equivalent

Stack Overflow | user1783398 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    DBpedia.owl loading superclass, causing 'cannot convert node to OntClass: it does not have rdf:type owl:Class or equivalent'

    Stack Overflow | 7 months ago | user1783398
    org.apache.jena.ontology.ConversionException: Cannot convert node http://schema.org/Product to OntClass: it does not have rdf:type owl:Class or equivalent

    Root Cause Analysis

    1. org.apache.jena.ontology.ConversionException

      Cannot convert node http://schema.org/Product to OntClass: it does not have rdf:type owl:Class or equivalent

      at org.apache.jena.ontology.impl.OntClassImpl$1.wrap()
    2. org.apache.jena
      FilterIterator.hasNext
      1. org.apache.jena.ontology.impl.OntClassImpl$1.wrap(OntClassImpl.java:82)
      2. org.apache.jena.enhanced.EnhNode.convertTo(EnhNode.java:152)
      3. org.apache.jena.enhanced.EnhNode.convertTo(EnhNode.java:31)
      4. org.apache.jena.enhanced.Polymorphic.asInternal(Polymorphic.java:62)
      5. org.apache.jena.enhanced.EnhNode.as(EnhNode.java:107)
      6. org.apache.jena.ontology.impl.OntResourceImpl.lambda$listDirectPropertyValues$30(OntResourceImpl.java:1536)
      7. org.apache.jena.util.iterator.Map1Iterator.next(Map1Iterator.java:46)
      8. org.apache.jena.util.iterator.WrappedIterator.next(WrappedIterator.java:94)
      9. org.apache.jena.util.iterator.FilterIterator.hasNext(FilterIterator.java:56)
      10. org.apache.jena.util.iterator.WrappedIterator.hasNext(WrappedIterator.java:90)
      11. org.apache.jena.util.iterator.FilterIterator.hasNext(FilterIterator.java:55)
      12. org.apache.jena.util.iterator.WrappedIterator.hasNext(WrappedIterator.java:90)
      13. org.apache.jena.util.iterator.FilterIterator.hasNext(FilterIterator.java:55)
      13 frames