org.apache.clerezza.rdf.core.serializedform
Interface ParsingProvider


public interface ParsingProvider

An instance of this class parses RDF-Graph from one or more serialization formats. The supported formats are indicated using the SupportedFormat annotation.

Author:
reto

Method Summary
 void parse(MGraph target, InputStream serializedGraph, String formatIdentifier, UriRef baseUri)
          Parses a stream as the specified RDF-format.
 

Method Detail

parse

void parse(MGraph target,
           InputStream serializedGraph,
           String formatIdentifier,
           UriRef baseUri)
Parses a stream as the specified RDF-format. This method will be invoked for a supported format, a format is considered as supported if the part before a ';'-character in the formatIdentifier matches a SupportedFormat annotation of the implementing class.

Parameters:
target - the mutable graph to which the read triples shall be added
serializedGraph - the stream from which the serialized graph is read
formatIdentifier - a String identifying the format
baseUri - the baseUri for interpreting relative uris, may be null


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.