Class StardogMappingSyntaxParser


  • public class StardogMappingSyntaxParser
    extends java.lang.Object
    Parser for Stardog mappings syntax.
    Since:
    3.1
    Version:
    6.0
    Author:
    Evren Sirin
    • Constructor Detail

      • StardogMappingSyntaxParser

        public StardogMappingSyntaxParser()
      • StardogMappingSyntaxParser

        public StardogMappingSyntaxParser​(java.lang.String theSep)
    • Method Detail

      • parse

        public java.util.Set<Statement> parse​(java.io.InputStream theInput,
                                              RDFFormat theFormat)
                                       throws java.io.IOException
        Parses the mappings from the given InputStream.
        Parameters:
        theInput - the input stream
        theFormat - the format of the input stream, should be Turtle or TriG
        Returns:
        the RDF model containing mappings in R2RML syntax
        Throws:
        java.io.IOException
      • parse

        public Pair<Namespaces,​java.util.Set<Statement>> parse​(java.io.Reader theInput,
                                                                     RDFFormat theFormat)
                                                              throws java.io.IOException
        Parses the mappings from the given input Reader.
        Parameters:
        theInput - the input Reader
        theFormat - the format of the input stream, should be Turtle or TriG
        Returns:
        a Pair containing the extracted Namespaces and the RDF model containing mappings in R2RML syntax
        Throws:
        java.io.IOException
      • parse

        public Pair<Namespaces,​java.util.Set<Statement>> parse​(java.lang.String theInput,
                                                                     RDFFormat theFormat)
                                                              throws java.io.IOException
        Parses the mappings from the given input Reader.
        Parameters:
        theInput - the input String
        theFormat - the format of the input stream, should be Turtle or TriG
        Returns:
        a Pair containing the extracted Namespaces and the RDF model containing mappings in R2RML syntax
        Throws:
        java.io.IOException