Package com.stardog.stark.io

# Class RDFHandlers.GraphBuilder

java.lang.Object
com.stardog.stark.io.AbstractRDFHandler
com.stardog.stark.io.RDFHandlers.GraphBuilder

All Implemented Interfaces:
  `RDFHandler`

Enclosing class:
  `RDFHandlers`

public static final class RDFHandlers.GraphBuilder extends AbstractRDFHandler

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GraphBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Set<Statement>`
  `graph()`
  `void`
  `handle(Statement theStmt)`
  Event for when a statement was encountered
  `void`
  `namespace(String thePrefix, String theIRI)`
  Event for when a namespace was encountered
  `Namespaces`
  `namespaces()`

  ### Methods inherited from class com.stardog.stark.io.AbstractRDFHandler

  `end, start`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GraphBuilder

    public GraphBuilder()

- ## Method Details

  - ### namespaces

    public Namespaces namespaces()

  - ### graph

    public Set<Statement> graph()

  - ### namespace

    public void namespace(@Nonnull String thePrefix, @Nonnull String theIRI)
    Event for when a namespace was encountered
    Specified by:
      `namespace` in interface `RDFHandler`
    Overrides:
      `namespace` in class `AbstractRDFHandler`
    Parameters:
      `thePrefix` - the namespace prefix
      `theIRI` - the associated IRI

  - ### handle

    public void handle(@Nonnull Statement theStmt)
    Event for when a statement was encountered
    Parameters:
      `theStmt` - the statement