Interface BlankNodeAllocator

All Known Implementing Classes:
BlankNodeAllocatorCounter, BlankNodeAllocatorFixedSeedHash, BlankNodeAllocatorGlobal, BlankNodeAllocatorHash, BlankNodeAllocatorLabelEncoded

public interface BlankNodeAllocator
Interface to allocators for blank nodes.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.graph.Node
    alloc(String label)
    Allocate based on a non-null label.
    org.apache.jena.graph.Node
    Create a fresh blank node, different from anything generated so far.
    void
    Reset allocation state - calls to alloc(java.lang.String) will return a different blank node for a label than the one returned before the reset.
  • Method Details

    • alloc

      org.apache.jena.graph.Node alloc(String label)
      Allocate based on a non-null label. Calling this twice, with the same label will generate equivalent nodes but they may not be identical (i.e they are .equals but may not be ==)
    • create

      org.apache.jena.graph.Node create()
      Create a fresh blank node, different from anything generated so far. Will not clash with a node allocated by alloc(java.lang.String)
    • reset

      void reset()
      Reset allocation state - calls to alloc(java.lang.String) will return a different blank node for a label than the one returned before the reset.