Class BaseEnhNodeFactoryImpl

java.lang.Object
org.apache.jena.enhanced.Implementation
org.apache.jena.ontapi.common.BaseEnhNodeFactoryImpl
All Implemented Interfaces:
EnhNodeFactory
Direct Known Subclasses:
CommonEnhNodeFactoryImpl, CompositeEnhNodeFactoryImpl, WrappedEnhNodeFactory

public abstract class BaseEnhNodeFactoryImpl extends org.apache.jena.enhanced.Implementation implements EnhNodeFactory
An extended Implementation factory, the base class for any factories to produce Ontology Objects. Used to bind implementation (node) and interface. Also, in addition to the standard jena methods, this implementation includes nodes' search and graph transformation functionality.
  • Constructor Details

    • BaseEnhNodeFactoryImpl

      public BaseEnhNodeFactoryImpl()
  • Method Details

    • wrap

      public org.apache.jena.enhanced.EnhNode wrap(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
      Creates a new EnhNode wrapping the given Node node in the context of the graph EnhGraph.
      Specified by:
      wrap in interface EnhNodeFactory
      Specified by:
      wrap in class org.apache.jena.enhanced.Implementation
      Parameters:
      node - the node to be wrapped
      eg - the graph containing the node
      Returns:
      A new enhanced node which wraps node but presents the interface(s) that this factory encapsulates.
      Throws:
      OntJenaException.Conversion - in case wrapping is impossible