Class LiteralExpression
Represents a literal expression.
Inheritance
System.Object
LiteralExpression
Inherited Members
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
| Improve this Doc View SourceLiteralExpression(ISparqlExpression)
Wraps the expression
as a literal expression.
Declaration
public LiteralExpression(ISparqlExpression expression)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expression |
Methods
| Improve this Doc View SourceToSimpleLiteral()
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
| Improve this Doc View Sourceoperator ==(string, LiteralExpression)
Declaration
public static BooleanExpression operator ==(string left, LiteralExpression right)
Parameters
Type | Name | Description |
---|---|---|
string | left | |
LiteralExpression | right |
Returns
Type | Description |
---|---|
BooleanExpression |
operator ==(LiteralExpression, string)
Declaration
public static BooleanExpression operator ==(LiteralExpression left, string right)
Parameters
Type | Name | Description |
---|---|---|
LiteralExpression | left | |
string | right |
Returns
Type | Description |
---|---|
BooleanExpression |
operator !=(string, LiteralExpression)
Declaration
public static BooleanExpression operator !=(string left, LiteralExpression right)
Parameters
Type | Name | Description |
---|---|---|
string | left | |
LiteralExpression | right |
Returns
Type | Description |
---|---|
BooleanExpression |
operator !=(LiteralExpression, string)
Declaration
public static BooleanExpression operator !=(LiteralExpression left, string right)
Parameters
Type | Name | Description |
---|---|---|
LiteralExpression | left | |
string | right |
Returns
Type | Description |
---|---|
BooleanExpression |