Show / Hide Table of Contents

Class LiteralExpression

Represents a literal expression.

Inheritance
object
PrimaryExpression<ISparqlExpression>
SparqlExpression
RdfTermExpression
LiteralExpression
NumericExpression
TypedLiteralExpression<T>
Inherited Members
SparqlExpression.In(params SparqlExpression[])
SparqlExpression.Gt(ISparqlExpression, ISparqlExpression)
SparqlExpression.Lt(ISparqlExpression, ISparqlExpression)
SparqlExpression.Ge(ISparqlExpression, ISparqlExpression)
SparqlExpression.Le(ISparqlExpression, ISparqlExpression)
PrimaryExpression<ISparqlExpression>.Expression
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Builder.Expressions
Assembly: dotNetRdf.dll
Syntax
public class LiteralExpression : RdfTermExpression

Constructors

| Edit this page View Source

LiteralExpression(ISparqlExpression)

Wraps the expression as a literal expression.

Declaration
public LiteralExpression(ISparqlExpression expression)
Parameters
Type Name Description
ISparqlExpression expression

Methods

| Edit this page View Source

ToSimpleLiteral()

Returns the constant value of this expression formatted as a simple literal expression.

Declaration
public LiteralExpression ToSimpleLiteral()
Returns
Type Description
LiteralExpression

A new LiteralExpression whose value is the constant value of this expression.

Operators

| Edit this page View Source

operator ==(string, LiteralExpression)

Declaration
public static BooleanExpression operator ==(string left, LiteralExpression right)
Parameters
Type Name Description
string left
LiteralExpression right
Returns
Type Description
BooleanExpression
| Edit this page View Source

operator ==(LiteralExpression, string)

Declaration
public static BooleanExpression operator ==(LiteralExpression left, string right)
Parameters
Type Name Description
LiteralExpression left
string right
Returns
Type Description
BooleanExpression
| Edit this page View Source

operator !=(string, LiteralExpression)

Declaration
public static BooleanExpression operator !=(string left, LiteralExpression right)
Parameters
Type Name Description
string left
LiteralExpression right
Returns
Type Description
BooleanExpression
| Edit this page View Source

operator !=(LiteralExpression, string)

Declaration
public static BooleanExpression operator !=(LiteralExpression left, string right)
Parameters
Type Name Description
LiteralExpression left
string right
Returns
Type Description
BooleanExpression

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • LiteralExpression(ISparqlExpression)
  • Methods
    • ToSimpleLiteral()
  • Operators
    • operator ==(string, LiteralExpression)
    • operator ==(LiteralExpression, string)
    • operator !=(string, LiteralExpression)
    • operator !=(LiteralExpression, string)
  • Extension Methods
Back to top Generated by DocFX