Class StardogMappingSyntaxParser
- java.lang.Object
-
- com.complexible.stardog.virtual.api.StardogMappingSyntaxParser
-
public class StardogMappingSyntaxParser extends java.lang.ObjectParser for Stardog mappings syntax.- Since:
- 3.1
- Version:
- 6.0
- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description StardogMappingSyntaxParser()StardogMappingSyntaxParser(java.lang.String theSep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Statement>parse(java.io.InputStream theInput, RDFFormat theFormat)Parses the mappings from the givenInputStream.Pair<Namespaces,java.util.Set<Statement>>parse(java.io.Reader theInput, RDFFormat theFormat)Parses the mappings from the given inputReader.Pair<Namespaces,java.util.Set<Statement>>parse(java.lang.String theInput, RDFFormat theFormat)Parses the mappings from the given inputReader.
-
-
-
Method Detail
-
parse
public java.util.Set<Statement> parse(java.io.InputStream theInput, RDFFormat theFormat) throws java.io.IOException
Parses the mappings from the givenInputStream.- Parameters:
theInput- the input streamtheFormat- 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 inputReader.- Parameters:
theInput- the input ReadertheFormat- the format of the input stream, should be Turtle or TriG- Returns:
- a
Paircontaining the extractedNamespacesand 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 inputReader.- Parameters:
theInput- the input StringtheFormat- the format of the input stream, should be Turtle or TriG- Returns:
- a
Paircontaining the extractedNamespacesand the RDF model containing mappings in R2RML syntax - Throws:
java.io.IOException
-
-