public class RiotReader extends Object
Constructor and Description |
---|
RiotReader() |
Modifier and Type | Method and Description |
---|---|
static Iterator<Quad> |
createIteratorQuads(InputStream input,
Lang lang,
String baseIRI)
Creates an iterator over the parsed quads
|
static Iterator<Triple> |
createIteratorTriples(InputStream input,
Lang lang,
String baseIRI)
Create an iterator over the parsed triples
|
static LangRIOT |
createParser(InputStream input,
Lang lang,
String baseIRI,
StreamRDF dest)
Create a parser
|
static LangRIOT |
createParser(Tokenizer tokenizer,
Lang lang,
String baseIRI,
StreamRDF dest)
Create a parser
|
static LangNQuads |
createParserNQuads(InputStream input,
StreamRDF dest)
Create a parser for NQuads, with default behaviour
|
static LangNQuads |
createParserNQuads(Tokenizer tokenizer,
StreamRDF dest)
Create a parser for NQuads, with default behaviour
|
static LangNTriples |
createParserNTriples(InputStream input,
StreamRDF dest)
Create a parser for N-Triples, with default behaviour
|
static LangNTriples |
createParserNTriples(Tokenizer tokenizer,
StreamRDF dest)
Create a parser for N-Triples, with default behaviour
|
static LangRDFJSON |
createParserRdfJson(InputStream input,
StreamRDF dest) |
static LangRDFJSON |
createParserRdfJson(Tokenizer tokenizer,
StreamRDF dest)
Create parsers for RDF/JSON
|
static LangRDFXML |
createParserRDFXML(InputStream input,
String baseIRI,
StreamRDF dest)
Create a parser for RDF/XML
|
static LangTriG |
createParserTriG(InputStream input,
String baseIRI,
StreamRDF dest)
Create a parser for TriG, with default behaviour
|
static LangTriG |
createParserTriG(Tokenizer tokenizer,
String baseIRI,
StreamRDF dest)
Create a parser for TriG, with default behaviour
|
static LangTurtle |
createParserTurtle(InputStream input,
String baseIRI,
StreamRDF dest)
Create a parser for Turtle, with default behaviour
|
static LangTurtle |
createParserTurtle(Tokenizer tokenizer,
String baseIRI,
StreamRDF dest)
Create a parser for Turtle, with default behaviour
|
static void |
parse(InputStream in,
Lang lang,
StreamRDF dest)
Parse an InputStream, using RDFParserOutput as the destination for the parser output.
|
static void |
parse(InputStream in,
Lang lang,
String baseIRI,
StreamRDF dest)
Parse an InputStream, using RDFParserOutput as the destination for the parser output.
|
static void |
parse(String filename,
Lang lang,
StreamRDF dest)
Parse a file, sending output to a StreamRDF sink.
|
static void |
parse(String filename,
Lang lang,
String baseIRI,
StreamRDF dest)
Parse a file, sending output to a StreamRDF sink.
|
static void |
parse(String filename,
StreamRDF dest)
Parse a file, sending output to a StreamRDF sink.
|
static void |
parseQuads(InputStream in,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Parse an InputStream, sending quads to a sink.
|
static void |
parseQuads(String filename,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Parse a file, sending quads to a sink.
|
static void |
parseQuads(String filename,
Sink<Quad> sink)
Parse a file, sending quads to a sink.
|
static void |
parseTriples(InputStream in,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Parse an InputStream, sending triples to a sink.
|
static void |
parseTriples(String filename,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Parse a file, sending triples to a sink.
|
static void |
parseTriples(String filename,
Sink<Triple> sink)
Parse a file, sending triples to a sink.
|
public static void parse(String filename, StreamRDF dest)
filename
- dest
- Where to send the triples from the parser.public static void parse(String filename, Lang lang, StreamRDF dest)
filename
- lang
- Language, or null for "guess from URL" (e.g. file extension)dest
- Where to send the triples from the parser.public static void parse(String filename, Lang lang, String baseIRI, StreamRDF dest)
filename
- lang
- Language, or null for "guess from URL" (e.g. file extension)baseIRI
- Base IRI, or null for based on input filenamedest
- Where to send the triples from the parser.public static void parse(InputStream in, Lang lang, StreamRDF dest)
in
- Source for bytes to parse.lang
- Language.dest
- Where to send the triples from the parser.public static void parse(InputStream in, Lang lang, String baseIRI, StreamRDF dest)
in
- Source for bytes to parse.lang
- Language.baseIRI
- Base IRI.dest
- Where to send the triples from the parser.public static LangRIOT createParser(InputStream input, Lang lang, String baseIRI, StreamRDF dest)
public static LangRIOT createParser(Tokenizer tokenizer, Lang lang, String baseIRI, StreamRDF dest)
public static void parseTriples(String filename, Sink<Triple> sink)
filename
- sink
- Where to send the triples from the parser.parse(String,StreamRDF)
public static void parseTriples(String filename, Lang lang, String baseIRI, Sink<Triple> sink)
filename
- lang
- Language, or null for "guess from URL" (e.g. file extension)baseIRI
- Base IRI, or null for based on input filenamesink
- Where to send the triples from the parser.parse(java.lang.String, org.apache.jena.riot.system.StreamRDF)
public static void parseTriples(InputStream in, Lang lang, String baseIRI, Sink<Triple> sink)
in
- Source for bytes to parse.lang
- Language.baseIRI
- Base IRI.sink
- Where to send the triples from the parser.parse(java.lang.String, org.apache.jena.riot.system.StreamRDF)
public static void parseQuads(String filename, Sink<Quad> sink)
filename
- sink
- Where to send the quads from the parser.parse(java.lang.String, org.apache.jena.riot.system.StreamRDF)
public static void parseQuads(String filename, Lang lang, String baseIRI, Sink<Quad> sink)
filename
- lang
- Language, or null for "guess from filename" (e.g. extension)baseIRI
- Base IRI, or null for base on input filenamesink
- Where to send the quads from the parser.parse(java.lang.String, org.apache.jena.riot.system.StreamRDF)
public static void parseQuads(InputStream in, Lang lang, String baseIRI, Sink<Quad> sink)
in
- Source for bytes to parse.lang
- Language.baseIRI
- Base IRI.sink
- Where to send the quads from the parser.parse(java.lang.String, org.apache.jena.riot.system.StreamRDF)
public static Iterator<Triple> createIteratorTriples(InputStream input, Lang lang, String baseIRI)
input
- Input Streamlang
- LanguagebaseIRI
- Base IRIpublic static Iterator<Quad> createIteratorQuads(InputStream input, Lang lang, String baseIRI)
input
- Input Streamlang
- LanguagebaseIRI
- Base IRIpublic static LangTurtle createParserTurtle(InputStream input, String baseIRI, StreamRDF dest)
public static LangTurtle createParserTurtle(Tokenizer tokenizer, String baseIRI, StreamRDF dest)
public static LangRDFXML createParserRDFXML(InputStream input, String baseIRI, StreamRDF dest)
public static LangRDFJSON createParserRdfJson(Tokenizer tokenizer, StreamRDF dest)
public static LangRDFJSON createParserRdfJson(InputStream input, StreamRDF dest)
public static LangTriG createParserTriG(InputStream input, String baseIRI, StreamRDF dest)
public static LangTriG createParserTriG(Tokenizer tokenizer, String baseIRI, StreamRDF dest)
public static LangNTriples createParserNTriples(InputStream input, StreamRDF dest)
public static LangNTriples createParserNTriples(Tokenizer tokenizer, StreamRDF dest)
public static LangNQuads createParserNQuads(InputStream input, StreamRDF dest)
public static LangNQuads createParserNQuads(Tokenizer tokenizer, StreamRDF dest)
Licenced under the Apache License, Version 2.0