Class StringParser
Static Helper Class which allows raw strings of RDF/SPARQL Results to be parsed directly.
Inheritance
System.Object
StringParser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public static class StringParser
Methods
|
Improve this Doc
View Source
GetDatasetParser(String)
Uses the format detection rules to determine the most likely RDF Dataset Parser.
Declaration
public static IStoreReader GetDatasetParser(string data)
Parameters
Type |
Name |
Description |
System.String |
data |
Raw RDF Dataset String. |
Returns
|
Improve this Doc
View Source
GetParser(String)
Declaration
public static IRdfReader GetParser(string data)
Parameters
Type |
Name |
Description |
System.String |
data |
Raw RDF String. |
Returns
|
Improve this Doc
View Source
GetResultSetParser(String)
Uses the format detection rules to return the most likely SPARQL Results parser.
Declaration
public static ISparqlResultsReader GetResultSetParser(string data)
Parameters
Type |
Name |
Description |
System.String |
data |
Raw SPARQL Results String. |
Returns
|
Improve this Doc
View Source
Parse(IGraph, String)
Parses a raw RDF String (attempts to auto-detect the format).
Declaration
public static void Parse(IGraph g, string data)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to load into. |
System.String |
data |
Raw RDF String. |
|
Improve this Doc
View Source
Parse(IGraph, String, IRdfReader)
Parses a raw RDF String using the given
IRdfReader.
Declaration
public static void Parse(IGraph g, string data, IRdfReader reader)
Parameters
Type |
Name |
Description |
IGraph |
g |
Graph to load into. |
System.String |
data |
Raw RDF String. |
IRdfReader |
reader |
Parser to use to read the data. |
|
Improve this Doc
View Source
ParseDataset(ITripleStore, String)
Parses a raw RDF Dataset String (attempts to auto-detect the format).
Declaration
public static void ParseDataset(ITripleStore store, string data)
Parameters
Type |
Name |
Description |
ITripleStore |
store |
Store to load into. |
System.String |
data |
Raw RDF Dataset String. |
|
Improve this Doc
View Source
ParseDataset(ITripleStore, String, IStoreReader)
Parses a raw RDF Dataset String using the given Parser.
Declaration
public static void ParseDataset(ITripleStore store, string data, IStoreReader reader)
Parameters
Type |
Name |
Description |
ITripleStore |
store |
Store to load into. |
System.String |
data |
Raw RDF Dataset String. |
IStoreReader |
reader |
Parser to use. |
|
Improve this Doc
View Source
ParseResultSet(SparqlResultSet, String)
Parses a raw SPARQL Results String (attempts to auto-detect the format).
Declaration
public static void ParseResultSet(SparqlResultSet results, string data)
Parameters
Type |
Name |
Description |
SparqlResultSet |
results |
SPARQL Result Set to fill. |
System.String |
data |
Raw SPARQL Results String. |
|
Improve this Doc
View Source
ParseResultSet(SparqlResultSet, String, ISparqlResultsReader)
Parses a raw SPARQL Results String using the given Parser.
Declaration
public static void ParseResultSet(SparqlResultSet results, string data, ISparqlResultsReader reader)
Parameters