Class SubTreeIndexedTripleCollection
An indexed triple collection that uses our VDS.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class SubTreeIndexedTripleCollection : AbstractIndexedTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Remarks
A variation on Tree
Properties
| Improve this Doc View Sourcethis[Triple]
Gets the specific instance of a Triple in the collection.
Declaration
public override Triple this[Triple t] { get; }
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Property Value
Type | Description |
---|---|
Triple |
Overrides
Remarks
A variation on Tree
ObjectNodes
Gets all the nodes which are objects of asserted triples in the triple collection.
Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
PredicateNodes
Gets all the nodes which are predicates of asserted triples in the triple collection.
Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedObjectNodes
Gets all the nodes which are subjects of quoted triples in the triple collection.
Declaration
public override IEnumerable<INode> QuotedObjectNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedPredicateNodes
Gets all the nodes which are predicates of quoted triples in the triple collection.
Declaration
public override IEnumerable<INode> QuotedPredicateNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedSubjectNodes
Gets all the nodes which are objects of quoted triples in the triple collection.
Declaration
public override IEnumerable<INode> QuotedSubjectNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
SubjectNodes
Gets all the nodes which are subjects of asserted triples in the triple collection.
Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
Methods
| Improve this Doc View SourceDispose()
Disposes of the collection.
Declaration
public override void Dispose()
Overrides
Remarks
A variation on Tree
IndexAsserted(Triple)
Indexes a Triple.
Declaration
protected override void IndexAsserted(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Overrides
Remarks
A variation on Tree
IndexQuoted(Triple)
Override in derived classes to add a quoted triple to the index.
Declaration
protected override void IndexQuoted(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple to add. |
Overrides
Remarks
A variation on Tree
QuotedWithObject(INode)
Gets all the quoted triples with the given Object.
Declaration
public override IEnumerable<Triple> QuotedWithObject(INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | obj | Object to lookup. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedWithPredicate(INode)
Gets all the quoted triples with the given Predicate.
Declaration
public override IEnumerable<Triple> QuotedWithPredicate(INode pred)
Parameters
Type | Name | Description |
---|---|---|
INode | pred | Predicate to lookup. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedWithPredicateObject(INode, INode)
Gets all the quoted triples with the given Predicate Object pair.
Declaration
public override IEnumerable<Triple> QuotedWithPredicateObject(INode pred, INode obj)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedWithSubject(INode)
Gets all quoted triples with the given subject.
Declaration
public override IEnumerable<Triple> QuotedWithSubject(INode subj)
Parameters
Type | Name | Description |
---|---|---|
INode | subj | Subject to lookup. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedWithSubjectObject(INode, INode)
Gets all the quoted triples with the given Subject Object pair.
Declaration
public override IEnumerable<Triple> QuotedWithSubjectObject(INode subj, INode obj)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
QuotedWithSubjectPredicate(INode, INode)
Gets all the quoted triples with the given Subject Predicate pair.
Declaration
public override IEnumerable<Triple> QuotedWithSubjectPredicate(INode subj, INode pred)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
UnindexAsserted(Triple)
Unindexes a triple.
Declaration
protected override void UnindexAsserted(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Overrides
Remarks
A variation on Tree
UnindexQuoted(Triple)
Override in derived classes to remove a quoted triple from the index.
Declaration
protected override void UnindexQuoted(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t |
Overrides
Remarks
A variation on Tree
WithObject(INode)
Gets all the triples with a given object.
Declaration
public override IEnumerable<Triple> WithObject(INode obj)
Parameters
Type | Name | Description |
---|---|---|
INode | obj | Object. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
WithPredicate(INode)
Gets all the triples with a given predicate.
Declaration
public override IEnumerable<Triple> WithPredicate(INode pred)
Parameters
Type | Name | Description |
---|---|---|
INode | pred | Predicate. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
WithPredicateObject(INode, INode)
Gets all the triples with a given predicate and object.
Declaration
public override IEnumerable<Triple> WithPredicateObject(INode pred, INode obj)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
WithSubject(INode)
Gets all the triples with a given subject.
Declaration
public override IEnumerable<Triple> WithSubject(INode subj)
Parameters
Type | Name | Description |
---|---|---|
INode | subj | Subject. |
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
WithSubjectObject(INode, INode)
Gets all the triples with a given subject and object.
Declaration
public override IEnumerable<Triple> WithSubjectObject(INode subj, INode obj)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree
WithSubjectPredicate(INode, INode)
Gets all the triples with a given subject and predicate.
Declaration
public override IEnumerable<Triple> WithSubjectPredicate(INode subj, INode pred)
Parameters
Returns
Type | Description |
---|---|
System. |
Overrides
Remarks
A variation on Tree