A statement, comprising a subject, predicate, and object.
|
RDF requires that subjects and predicates be entities (non-literals).
The SemWeb.Statement.Meta property optionally contains an entity that has meta-information about the statement. The use of the Meta property is left up to application writers.
The subject, predicate, and object fields should not normally be null. They must not be null in a call to SemWeb.Store.Add(SemWeb.Statement). They may be null when used in a call to SemWeb.Store.Select.
See Also: Inherited members from ValueType.
Creates a new Statement. |
Creates a new Statement with a meta entity. |
All
static
|
Statement . A statement whose fields are all null. |
DefaultMeta
static
|
Entity . The entity used for the SemWeb.Statement.Meta field of statements when a Meta value is not given by the caller. |
Meta
|
Entity . The meta field for the statement. |
Object
|
Resource . The object of the statement. |
Predicate
|
Entity . The predicate of the statement. |
Subject
|
Entity . The subject of the statement. |
AnyNull [read-only] | bool . Gets whether any of the Subject, Predicate, Object, or Meta fields are null. |
CompareTo
(Statement) Compares two statements. |
|
Invert
() Returns a new statement with the same predicate but with subject and object reversed. |
|
Matches
(Statement) To be added. |
|
Replace
(Hashtable) Replaces instances of resources in the statement with other resources. |
|
Replace
(Resource, Resource) Replaces occurrences of a resource with another resource. |
Creates a new Statement.
No arguments to this constructor may be null if this statement will be used in a call to the Add method of SemWeb.Store or SemWeb.StatementSink. Any of the arguments may be null if the statement will be used as a template for calls to a Contains or Select method.
The value of the SemWeb.Statement.Meta is set to SemWeb.Statement.DefaultMeta.
Creates a new Statement with a meta entity.
Returns a new statement with the same predicate but with subject and object reversed.
Tests two statements for equality.
Tests two statements for inequality.
The entity used for the SemWeb.Statement.Meta field of statements when a Meta value is not given by the caller.
A statement whose fields are all null.
This statement is provided as a convience to easily select all statements in a source by a call to Select.
The following expression writes out all statements in a store.
C# Example |
using (StatementSink sink = new N3Writer(Console.Out)) { store.Select(Statement.All); } |
Gets whether any of the Subject, Predicate, Object, or Meta fields are null.
Replaces occurrences of a resource with another resource.
The subject of the statement.
The predicate of the statement.
The object of the statement.
The meta field for the statement.
Replaces instances of resources in the statement with other resources.
To be added.
Compares two statements.