Click or drag to resize

DataUriLoader Class

A Class for parsing RDF data from Data URIs.
Inheritance Hierarchy
SystemObject
  VDS.RDF.ParsingDataUriLoader

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static class DataUriLoader
Methods
  NameDescription
Public methodStatic memberLoad(IGraph, Uri)
Loads RDF data into a Graph from a data: URI.
Public methodStatic memberLoad(IRdfHandler, Uri)
Loads RDF data using an RDF Handler from a data: URI.
Top
Remarks

Data URIs use the data: scheme and are defined by the IETF in RFC 2397 and provide a means to embed data directly in a URI either in Base64 or ASCII encoded format. This class can extract the data from such URIs and attempt to parse it as RDF using the StringParser.

The parsing process for data: URIs involves first extracting and decoding the data embedded in the URI - this may either be in Base64 or ASCII encoding - and then using the StringParser to actually parse the data string. If the data: URI defines a MIME type then a parser is selected (if one exists for the given MIME type) and that is used to parse the data, in the event that no MIME type is given or the one given does not have a corresponding parser then the StringParser will use its basic heuristics to attempt to auto-detect the format and select an appropriate parser.

If you attempt to use this loader for non data: URIs then the standard UriLoader is used instead.

See Also