Click or drag to resize

StringParser Class

Static Helper Class which allows raw strings of RDF/SPARQL Results to be parsed directly.
Inheritance Hierarchy
SystemObject
  VDS.RDF.ParsingStringParser

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static class StringParser

The StringParser type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetDatasetParser
Uses the format detection rules to determine the most likely RDF Dataset Parser.
Public methodStatic memberGetParser
Uses the rules described in the remarks for the Parse() to return the most likely Parser.
Public methodStatic memberGetResultSetParser
Uses the format detection rules to return the most likely SPARQL Results parser.
Public methodStatic memberParse(IGraph, String)
Parses a raw RDF String (attempts to auto-detect the format).
Public methodStatic memberParse(IGraph, String, IRdfReader)
Parses a raw RDF String using the given IRdfReader.
Public methodStatic memberParseDataset(ITripleStore, String)
Parses a raw RDF Dataset String (attempts to auto-detect the format).
Public methodStatic memberParseDataset(ITripleStore, String, IStoreReader)
Parses a raw RDF Dataset String using the given Parser.
Public methodStatic memberParseResultSet(SparqlResultSet, String)
Parses a raw SPARQL Results String (attempts to auto-detect the format).
Public methodStatic memberParseResultSet(SparqlResultSet, String, ISparqlResultsReader)
Parses a raw SPARQL Results String using the given Parser.
Top
Remarks
The API structure for dotNetRDF means that our IRdfReader classes which are our Parsers only have to support parsing from a file or a stream. For most applications this is fine but there may be occassions when you wish to parse a small fragment of RDF and you don't want to have to put it into a file before you can parse it.
See Also