Class RdfReader

  • Direct Known Subclasses:
    RdfNTriplesReader, RdfXmlReader

    public abstract class RdfReader
    extends java.lang.Object
    Super class of all RDF readers.
    • Field Detail

      • graphHandler

        private GraphHandler graphHandler
        The graph handler invoked when parsing.
      • rdfRepresentation

        private Representation rdfRepresentation
        The representation to read.
    • Constructor Detail

      • RdfReader

        public RdfReader​(Representation rdfRepresentation,
                         GraphHandler graphHandler)
        Constructor.
        Parameters:
        rdfRepresentation - The representation to read.
        graphHandler - The graph handler invoked during the parsing.
        Throws:
        java.io.IOException
    • Method Detail

      • getGraphHandler

        public GraphHandler getGraphHandler()
        Returns the graph handler invoked when parsing.
        Returns:
        The graph handler invoked when parsing.
      • getRdfRepresentation

        public Representation getRdfRepresentation()
        Returns the representation to read.
        Returns:
        The representation to read.
      • parse

        public abstract void parse()
                            throws java.lang.Exception
        Parses the content.
        Throws:
        java.lang.Exception