Interface EnhNodeProducer

All Known Implementing Classes:
EnhNodeProducer.Default, EnhNodeProducer.WithType

public interface EnhNodeProducer
To make some preparation while creating (create main triple). Also, to create new instance of the resource (EnhNode). Used in factory (CommonEnhNodeFactoryImpl).
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    The base maker implementation for our project.
    static class 
    to create a triple representing declaration.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
    Answers true if the given node can be created in graph
    void
    doInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
    Changes the EnhGraph according to the encapsulated rules.
    org.apache.jena.enhanced.EnhNode
    newInstance(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
    Wraps the given node as a Jena RDFNode.
     
    Returns a view string representation.
  • Method Details

    • newInstance

      org.apache.jena.enhanced.EnhNode newInstance(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
      Wraps the given node as a Jena RDFNode. No changes in the given EnhGraph are made.
      Parameters:
      node - Node
      eg - EnhGraph
      Returns:
      EnhNode
    • doInsert

      void doInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
      Changes the EnhGraph according to the encapsulated rules.
      Parameters:
      node - Node
      eg - EnhGraph
    • canInsert

      boolean canInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg)
      Answers true if the given node can be created in graph
      Parameters:
      node - Node ti test
      eg - EnhGraph
      Returns:
      boolean
    • targetName

      String targetName()
      Returns a view string representation.
      Returns:
      the name (type) of EnhNode object
    • restrict

      default EnhNodeProducer restrict(EnhNodeFilter filter)