Class StardogMappingSyntaxParser
java.lang.Object
com.complexible.stardog.virtual.api.StardogMappingSyntaxParser
Parser for Stardog mappings syntax.
- Since:
- 3.1
- Version:
- 6.0
- Author:
- Evren Sirin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(InputStream theInput, RDFFormat theFormat) Parses the mappings from the givenInputStream.Parses the mappings from the given inputReader.Parses the mappings from the given inputReader.
-
Constructor Details
-
StardogMappingSyntaxParser
public StardogMappingSyntaxParser() -
StardogMappingSyntaxParser
-
-
Method Details
-
parse
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:
IOException
-
parse
public Pair<Namespaces,Set<Statement>> parse(Reader theInput, RDFFormat theFormat) throws 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:
IOException
-
parse
public Pair<Namespaces,Set<Statement>> parse(String theInput, RDFFormat theFormat) throws 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:
IOException
-