Class LiteralExpression
Represents a literal expression.
Inheritance
System.Object
LiteralExpression
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()
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 epression. |
Operators
| Improve this Doc View SourceEquality(String, LiteralExpression)
Declaration
public static BooleanExpression operator ==(string left, LiteralExpression right)
Parameters
Type | Name | Description |
---|---|---|
System.String | left | |
LiteralExpression | right |
Returns
Type | Description |
---|---|
BooleanExpression |
Equality(LiteralExpression, String)
Declaration
public static BooleanExpression operator ==(LiteralExpression left, string right)
Parameters
Type | Name | Description |
---|---|---|
LiteralExpression | left | |
System.String | right |
Returns
Type | Description |
---|---|
BooleanExpression |
Inequality(String, LiteralExpression)
Declaration
public static BooleanExpression operator !=(string left, LiteralExpression right)
Parameters
Type | Name | Description |
---|---|---|
System.String | left | |
LiteralExpression | right |
Returns
Type | Description |
---|---|
BooleanExpression |
Inequality(LiteralExpression, String)
Declaration
public static BooleanExpression operator !=(LiteralExpression left, string right)
Parameters
Type | Name | Description |
---|---|---|
LiteralExpression | left | |
System.String | right |
Returns
Type | Description |
---|---|
BooleanExpression |