Click or drag to resize

Triple Class

Class for representing RDF Triples in memory.
Inheritance Hierarchy
SystemObject
  VDS.RDFTriple

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
[SerializableAttribute]
public sealed class Triple : IComparable<Triple>, 
	ISerializable, IXmlSerializable

The Triple type exposes the following members.

Constructors
  NameDescription
Public methodTriple(INode, INode, INode)
Constructs a Triple from Nodes that belong to the same Graph/Node Factory.
Public methodTriple(INode, INode, INode, Uri)
Creates a Triple and associates it with the given Graph URI permanently (though not with a specific Graph as such).
Public methodTriple(INode, INode, INode, IGraph)
Constructs a Triple from Nodes that belong to the same Graph/Node Factory and associates this Triple with the given Graph (doesn't assert the Triple).
Public methodTriple(INode, INode, INode, ITripleContext)
Constructs a Triple from Nodes that belong to the same Graph/Node Factory with some Context.
Public methodTriple(INode, INode, INode, ITripleContext, Uri)
Constructs a Triple from Nodes that belong to the same Graph/Node Factory with some Context.
Top
Properties
  NameDescription
Public propertyContext
Gets the Context Information for this Triple.
Public propertyGraph
Gets the Graph this Triple was created for.
Public propertyGraphUri
Gets the Uri of the Graph this Triple was created for.
Public propertyIsGroundTriple
Gets whether the Triple is a Ground Triple.
Public propertyNodes
Gets an enumeration of the Nodes in the Triple.
Public propertyObject
Gets the Object of the Triple.
Public propertyPredicate
Gets the Predicate of the Triple.
Public propertySubject
Gets the Subject of the Triple.
Top
Methods
  NameDescription
Public methodCompareTo
Implementation of CompareTo for Triples which allows Triples to be sorted.
Public methodEquals
Implementation of Equality for Triples.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Implementation of Hash Codes for Triples.
(Overrides ObjectGetHashCode.)
Public methodGetObjectData
Gets the data for serialization.
Public methodGetSchema
Gets the schema for XML serialization.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasObject
Indicates whether the Triple has the given Node as the Object.
Public methodHasPredicate
Indicates whether the Triple has the given Node as the Predicate.
Public methodHasSubject
Indicates whether the Triple has the given Node as the Subject.
Public methodInvolves(Uri)
Checks whether the Triple involves a given Uri.
Public methodInvolves(INode)
Checks whether the Triple involves a given Node.
Public methodReadXml
Reads the data for XML deserialization.
Public methodToString
Gets a String representation of a Triple in the form 'Subject , Predicate , Object'.
(Overrides ObjectToString.)
Public methodToString(Boolean)
Gets a String representation of a Triple in the form 'Subject , Predicate , Object' with optional compression of URIs to QNames.
Public methodToString(ITripleFormatter)
Gets the String representation of a Triple using the given Triple Formatter.
Public methodWriteXml
Writes the data for XML serialization.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyTriple(IGraph)Overloaded.
Copies a Triple to the target Graph.
(Defined by Extensions.)
Public Extension MethodCopyTriple(IGraph, Boolean)Overloaded.
Copies a Triple to the target Graph.
(Defined by Extensions.)
Public Extension MethodMapTriple
Copies a Triple from one Graph mapping Nodes as appropriate.
(Defined by Extensions.)
Top
See Also