Trait rdf_rs::parsing::RDFParser[][src]

pub trait RDFParser {
    fn uri(u: &str) -> Parsed<Uri>;
fn resource(r: &str) -> Parsed<Resource>;
fn relationship(r: &str) -> Parsed<Relationship>;
fn object(o: &str) -> Parsed<Object>;
fn triple(t: &str) -> Parsed<Vec<Triple>>;
fn graph(g: &str) -> Parsed<Graph>; fn from_file(path: &str) -> Parsed<Graph> { ... } }

Required methods

Provided methods

Acts as a wrapper around RDFParser::graph() that automatically reads and parses a file.

Errors

Returns a ParserError if the file is not a valid Graph.

Examples

let triple = TurtleParser::from_file("./test_data/simple.ttl")?;

Implementors