1
2
3
4
5
6
7
8
9
use graph::Graph;
use Result;

/// Trait implemented by RDF parsers to generate a RDF graph from RDF syntax.
pub trait RdfParser {
    /// Generates an RDF graph from a provided RDF syntax.
    /// Returns an error if invalid RDF input is provided.
    fn decode(&mut self) -> Result<Graph>;
}