Interface ExtractionResult

    • Method Detail

      • writeTriple

        void writeTriple​(org.eclipse.rdf4j.model.Resource s,
                         org.eclipse.rdf4j.model.IRI p,
                         org.eclipse.rdf4j.model.Value o,
                         org.eclipse.rdf4j.model.IRI g)
        Writes a triple. Parameters can be null, then the triple will be silently ignored.
        Parameters:
        s - subject
        p - predicate
        o - object
        g - graph
      • writeTriple

        void writeTriple​(org.eclipse.rdf4j.model.Resource s,
                         org.eclipse.rdf4j.model.IRI p,
                         org.eclipse.rdf4j.model.Value o)
        Write a triple. Parameters can be null, then the triple will be silently ignored.
        Parameters:
        s - subject
        p - predicate
        o - object
      • writeNamespace

        void writeNamespace​(String prefix,
                            String IRI)
        Write a namespace.
        Parameters:
        prefix - the prefix of the namespace
        IRI - the long IRI identifying the namespace
      • close

        void close()

        Close the result.

        Extractors should close their results as soon as possible, but don't have to, the environment will close any remaining ones. Implementations should be robust against multiple close() invocations.
      • openSubResult

        ExtractionResult openSubResult​(ExtractionContext extractionContext)
        Open a result nested in the current one.
        Parameters:
        extractionContext - the context to be used to open the sub result.
        Returns:
        the instance of the nested extraction result.