Show / Hide Table of Contents

Class SparqlUpdateParser

Class for parsing SPARQL Update commands into SparqlUpdateCommandSet objects that can be used to modify a Triple Store.

Inheritance
System.Object
SparqlUpdateParser
Implements
ITraceableTokeniser
IObjectParser<SparqlUpdateCommandSet>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class SparqlUpdateParser : ITraceableTokeniser, IObjectParser<SparqlUpdateCommandSet>

Constructors

| Improve this Doc View Source

SparqlUpdateParser()

Creates a new parser instance that parses SPARQL 1.1 syntax and uses the default (root) URI Factory.

Declaration
public SparqlUpdateParser()
| Improve this Doc View Source

SparqlUpdateParser(IUriFactory)

Creates a new parser instance that uses the specified URI factory to create URIs.

Declaration
public SparqlUpdateParser(IUriFactory uriFactory)
Parameters
Type Name Description
IUriFactory uriFactory

The factory to use when creating URIs while parsing the update.

| Improve this Doc View Source

SparqlUpdateParser(SparqlQuerySyntax, IUriFactory)

Creates a new parser instance that uses the specified query syntax and URI factory.

Declaration
public SparqlUpdateParser(SparqlQuerySyntax syntax = SparqlQuerySyntax.Sparql_1_1, IUriFactory uriFactory = null)
Parameters
Type Name Description
SparqlQuerySyntax syntax

The syntax mode to support when parsing the update.

IUriFactory uriFactory

The factory to use when creating URIs while parsing the update.

Properties

| Improve this Doc View Source

AllowUnknownFunctions

Gets/Sets whether functions that can't be parsed into Expressions should be represented by the UnknownFunction.

Declaration
public bool AllowUnknownFunctions { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

DefaultBaseUri

Gets/Sets the Default Base URI used for Updated Commands parsed by this parser instance.

Declaration
public Uri DefaultBaseUri { get; set; }
Property Value
Type Description
System.Uri
| Improve this Doc View Source

ExpressionFactories

Gets/Sets the locally scoped custom expression factories.

Declaration
public IEnumerable<ISparqlCustomExpressionFactory> ExpressionFactories { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><ISparqlCustomExpressionFactory>
| Improve this Doc View Source

QueryOptimisation

Get / set whether the update commands should be optimized at the end of the parsing process.

Declaration
public bool QueryOptimisation { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Defaults to true.

| Improve this Doc View Source

QueryOptimiser

Gets/Sets the locally scoped Query Optimiser applied to graph patterns in update commands at the end of the parsing process.

Declaration
public IQueryOptimiser QueryOptimiser { get; set; }
Property Value
Type Description
IQueryOptimiser
Remarks

May be null if no locally scoped optimiser is set in which case the globally scoped optimiser will be used.

| Improve this Doc View Source

Syntax

Get or set the syntax mode to support when parsing the update.

Declaration
public SparqlQuerySyntax Syntax { get; set; }
Property Value
Type Description
SparqlQuerySyntax
| Improve this Doc View Source

TraceTokeniser

Gets/Sets whether Tokeniser Tracing is used.

Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UriFactory

Get or set the factory to use when creating URIs in this parser.

Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type Description
IUriFactory

Methods

| Improve this Doc View Source

Parse(StreamReader)

Parses a SPARQL Update Command Set from the input stream.

Declaration
public SparqlUpdateCommandSet Parse(StreamReader input)
Parameters
Type Name Description
System.IO.StreamReader input

Input Stream.

Returns
Type Description
SparqlUpdateCommandSet
| Improve this Doc View Source

Parse(TextReader)

Parses a SPARQL Update Command Set from the input.

Declaration
public SparqlUpdateCommandSet Parse(TextReader input)
Parameters
Type Name Description
System.IO.TextReader input

Input.

Returns
Type Description
SparqlUpdateCommandSet
| Improve this Doc View Source

ParseFromFile(string)

Parses a SPARQL Update Command Set from the given file.

Declaration
public SparqlUpdateCommandSet ParseFromFile(string file)
Parameters
Type Name Description
string file

File.

Returns
Type Description
SparqlUpdateCommandSet
| Improve this Doc View Source

ParseFromString(string)

Parses a SPARQL Update Command Set from the given String.

Declaration
public SparqlUpdateCommandSet ParseFromString(string updates)
Parameters
Type Name Description
string updates

SPARQL Update Commands.

Returns
Type Description
SparqlUpdateCommandSet
| Improve this Doc View Source

ParseFromString(SparqlParameterizedString)

Parses a SPARQL Update Command Set from the given String.

Declaration
public SparqlUpdateCommandSet ParseFromString(SparqlParameterizedString updates)
Parameters
Type Name Description
SparqlParameterizedString updates

SPARQL Update Commands.

Returns
Type Description
SparqlUpdateCommandSet

Events

| Improve this Doc View Source

Warning

Event raised when a non-fatal issue with the SPARQL Update Commands being parsed is detected

Declaration
public event SparqlWarning Warning
Event Type
Type Description
SparqlWarning

Implements

ITraceableTokeniser
IObjectParser<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SparqlUpdateParser()
    • SparqlUpdateParser(IUriFactory)
    • SparqlUpdateParser(SparqlQuerySyntax, IUriFactory)
  • Properties
    • AllowUnknownFunctions
    • DefaultBaseUri
    • ExpressionFactories
    • QueryOptimisation
    • QueryOptimiser
    • Syntax
    • TraceTokeniser
    • UriFactory
  • Methods
    • Parse(StreamReader)
    • Parse(TextReader)
    • ParseFromFile(string)
    • ParseFromString(string)
    • ParseFromString(SparqlParameterizedString)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX