Class TriplePatternObjectPart
Class responsible for setting the object part of triple patterns.
Inheritance
System.Object
TriplePatternObjectPart
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Builder
Assembly: dotNetRdf.dll
Syntax
public sealed class TriplePatternObjectPart
Methods
| Improve this Doc View SourceObject(string)
Sets a SPARQL variable as Object.
Declaration
public ITriplePatternBuilder Object(string variableName)
Parameters
Type | Name | Description |
---|---|---|
string | variableName |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Object(Uri)
Sets a System.Uri as Object.
Declaration
public ITriplePatternBuilder Object(Uri objectUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | objectUri |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Object(INode)
Depending on the objectNode
's type, sets a literal, a QName or a blank node as Object.
Declaration
public ITriplePatternBuilder Object(INode objectNode)
Parameters
Type | Name | Description |
---|---|---|
INode | objectNode |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Object(PatternItem)
Sets a PatternItem as Object.
Declaration
public ITriplePatternBuilder Object(PatternItem objectPattern)
Parameters
Type | Name | Description |
---|---|---|
PatternItem | objectPattern |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Object(SparqlVariable)
Sets a SPARQL variable as Object.
Declaration
public ITriplePatternBuilder Object(SparqlVariable variable)
Parameters
Type | Name | Description |
---|---|---|
SparqlVariable | variable |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Object<TNode>(string)
Depending on the generic parameter type, sets a literal, a QName or a blank node as Object.
Declaration
public ITriplePatternBuilder Object<TNode>(string @object) where TNode : INode
Parameters
Type | Name | Description |
---|---|---|
string | object | Either a variable name, a literal, a QName or a blank node identifier. |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
Type Parameters
Name | Description |
---|---|
TNode |
Remarks
A relevant prefix/base URI must be added to Prefixes to accept a QName.
ObjectLiteral(object, string)
Sets a literal with language tag as Object.
Declaration
public ITriplePatternBuilder ObjectLiteral(object literal, string langSpec)
Parameters
Type | Name | Description |
---|---|---|
System.Object | literal | |
string | langSpec |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
ObjectLiteral(object, Uri)
Sets a typed literal as Object.
Declaration
public ITriplePatternBuilder ObjectLiteral(object literal, Uri datatype)
Parameters
Type | Name | Description |
---|---|---|
System.Object | literal | |
System.Uri | datatype |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |
ObjectLiteral(object)
Sets a plain literal as Object.
Declaration
public ITriplePatternBuilder ObjectLiteral(object literal)
Parameters
Type | Name | Description |
---|---|---|
System.Object | literal |
Returns
Type | Description |
---|---|
ITriplePatternBuilder |