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
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 addedserializedGraph - the stream from which the serialized graph is readformatIdentifier - a String identifying the formatbaseUri - the baseUri for interpreting relative uris, may be null
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.