Class Quad
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public sealed class Quad : IComparable<Quad>, IEquatable<Quad>
Constructors
| Edit this page View SourceQuad(INode, INode, INode, IRefNode?)
Construct a new Quad with the specified subject, predicate, object, and optionally graph.
Declaration
public Quad(INode subject, INode predicate, INode @object, IRefNode? graphName)
Parameters
Type | Name | Description |
---|---|---|
INode | subject | The subject node of the quad. |
INode | predicate | The predicate node of the quad. |
INode | object | The object node of the quad. |
IRefNode | graphName | The graph that the statement is in. A null value indicates the unnamed graph. |
Quad(Triple, IRefNode?)
Construct a new Quad with the specified triple contained in the specified graph.
Declaration
public Quad(Triple t, IRefNode? graph)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | The subject, predicate and object of the quad as a Triple. |
IRefNode | graph | The graph that the statement is in. A null value indicates the unnamed graph. |
Properties
| Edit this page View SourceGraph
Get the graph node of the quad.
Declaration
public IRefNode? Graph { get; }
Property Value
Type | Description |
---|---|
IRefNode |
Object
Get the object node of the quad.
Declaration
public INode Object { get; }
Property Value
Type | Description |
---|---|
INode |
Predicate
Get the predicate node of the quad.
Declaration
public INode Predicate { get; }
Property Value
Type | Description |
---|---|
INode |
Subject
Get the subject node of the quad.
Declaration
public INode Subject { get; }
Property Value
Type | Description |
---|---|
INode |
Methods
| Edit this page View SourceAsTriple()
Create and return a new Triple instance created with the Subject, Predicate, and Object of this quad.
Declaration
public Triple AsTriple()
Returns
Type | Description |
---|---|
Triple | A new Triple instance. |
CompareTo(Quad)
Declaration
public int CompareTo(Quad other)
Parameters
Type | Name | Description |
---|---|---|
Quad | other |
Returns
Type | Description |
---|---|
int |
Equals(Quad)
Declaration
public bool Equals(Quad other)
Parameters
Type | Name | Description |
---|---|---|
Quad | other |
Returns
Type | Description |
---|---|
bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |