Class RDFParser

java.lang.Object
fr.inria.rules.integraal.io.rdf.RDFParser
All Implemented Interfaces:
Parser<Object>, CloseableIterator<Object>, Closeable, AutoCloseable

public class RDFParser extends Object implements Parser<Object>
This is an import from Graal 1.3
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a parser for a file and infers its RDF format.
    RDFParser(File file, org.eclipse.rdf4j.rio.RDFFormat format)
    Creates a parser for a file using the supplied RDF format.
    RDFParser(File file, org.eclipse.rdf4j.rio.RDFFormat format, RDFTranslationMode mode)
    Creates a parser for a file using the supplied translation mode.
    RDFParser(Reader reader, org.eclipse.rdf4j.rio.RDFFormat format)
    Creates a parser from an existing reader.
    RDFParser(Reader reader, org.eclipse.rdf4j.rio.RDFFormat format, org.eclipse.rdf4j.rio.ParserConfig parserConfig, RDFTranslationMode mode)
    Creates a parser from a reader with explicit parser configuration.
    RDFParser(String filepath)
    Creates a parser for the RDF file at the supplied path.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the iterator and releases its resources.
    boolean
    Indicates whether another element can be read from the iterator.
    Returns the next element from the iterator.

    Methods inherited from class Object

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

    Methods inherited from interface Parser

    parse, streamParsedObjects
  • Constructor Details

    • RDFParser

      public RDFParser(File file, org.eclipse.rdf4j.rio.RDFFormat format) throws FileNotFoundException
      Creates a parser for a file using the supplied RDF format.
      Parameters:
      file - file to read from
      format - RDFFormat of the file
      Throws:
      FileNotFoundException - iff the given file is not found
    • RDFParser

      public RDFParser(String filepath) throws FileNotFoundException
      Creates a parser for the RDF file at the supplied path.
      Parameters:
      filepath - to RDF file to read from
      Throws:
      FileNotFoundException - iff the given file is not found
    • RDFParser

      public RDFParser(File file) throws FileNotFoundException
      Creates a parser for a file and infers its RDF format.
      Parameters:
      file - file to read from
      Throws:
      FileNotFoundException - iff the given file is not found
    • RDFParser

      public RDFParser(File file, org.eclipse.rdf4j.rio.RDFFormat format, RDFTranslationMode mode) throws FileNotFoundException
      Creates a parser for a file using the supplied translation mode.
      Parameters:
      file - file to read from
      format - RDFFormat of the file
      mode - Method to translate triples into atoms
      Throws:
      FileNotFoundException - iff the given file is not found
    • RDFParser

      public RDFParser(Reader reader, org.eclipse.rdf4j.rio.RDFFormat format)
      Creates a parser from an existing reader.
      Parameters:
      reader - reader to read from
      format - RDFFormat of the data
    • RDFParser

      public RDFParser(Reader reader, org.eclipse.rdf4j.rio.RDFFormat format, org.eclipse.rdf4j.rio.ParserConfig parserConfig, RDFTranslationMode mode)
      Creates a parser from a reader with explicit parser configuration.
      Parameters:
      reader - reader to read from
      format - RDFFormat of the data
      parserConfig - configuration of the parser
      mode - Method to translate triples into atoms
  • Method Details