Show / Hide Table of Contents

Class Quad

Inheritance
object
Quad
Implements
IComparable<Quad>
IEquatable<Quad>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public sealed class Quad : IComparable<Quad>, IEquatable<Quad>

Constructors

| Edit this page View Source

Quad(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.

| Edit this page View Source

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 Source

Graph

Get the graph node of the quad.

Declaration
public IRefNode? Graph { get; }
Property Value
Type Description
IRefNode
| Edit this page View Source

Object

Get the object node of the quad.

Declaration
public INode Object { get; }
Property Value
Type Description
INode
| Edit this page View Source

Predicate

Get the predicate node of the quad.

Declaration
public INode Predicate { get; }
Property Value
Type Description
INode
| Edit this page View Source

Subject

Get the subject node of the quad.

Declaration
public INode Subject { get; }
Property Value
Type Description
INode

Methods

| Edit this page View Source

AsTriple()

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.

| Edit this page View Source

CompareTo(Quad)

Declaration
public int CompareTo(Quad other)
Parameters
Type Name Description
Quad other
Returns
Type Description
int
| Edit this page View Source

Equals(Quad)

Declaration
public bool Equals(Quad other)
Parameters
Type Name Description
Quad other
Returns
Type Description
bool
| Edit this page View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IComparable<T>
IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Quad(INode, INode, INode, IRefNode?)
    • Quad(Triple, IRefNode?)
  • Properties
    • Graph
    • Object
    • Predicate
    • Subject
  • Methods
    • AsTriple()
    • CompareTo(Quad)
    • Equals(Quad)
    • GetHashCode()
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX