Show / Hide Table of Contents

Class TripleStoreTripleIndex

Provides an implementation of the ITripleIndex interface over a subset of the graphs contained in a ITripleStore.

Inheritance
object
TripleStoreTripleIndex
Implements
ITripleIndex
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class TripleStoreTripleIndex : ITripleIndex

Constructors

| Edit this page View Source

TripleStoreTripleIndex(ITripleStore, bool)

Create a triple index over the default graph of the specified store.

Declaration
public TripleStoreTripleIndex(ITripleStore store, bool unionDefaultGraph)
Parameters
Type Name Description
ITripleStore store

The store to expose as a triple index.

bool unionDefaultGraph

Whether the default graph is the union of all graphs in the store (true) or just the unnamed graph (false).

| Edit this page View Source

TripleStoreTripleIndex(ITripleStore, IRefNode)

Create a triple index over the specified graph of the specified store.

Declaration
public TripleStoreTripleIndex(ITripleStore store, IRefNode defaultGraph)
Parameters
Type Name Description
ITripleStore store

The store to expose as a triple index.

IRefNode defaultGraph

The name of the graph to expose in the index.

Exceptions
Type Condition
ArgumentException

Raised if defaultGraph is not the name of any existing graph in store.

Methods

| Edit this page View Source

GetQuoted(Uri)

Selects all quoted triples which have a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetQuoted(Uri uri)
Parameters
Type Name Description
Uri uri

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuoted(INode)

Selects all quoted triples which contain the given Node.

Declaration
public IEnumerable<Triple> GetQuoted(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithObject(Uri)

Selects all quoted triples where the Object is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetQuotedWithObject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithObject(INode)

Selects all quoted triples where the Object is a given Node.

Declaration
public IEnumerable<Triple> GetQuotedWithObject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithPredicate(Uri)

Selects all quoted triples where the Predicate is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetQuotedWithPredicate(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithPredicate(INode)

Selects all quoted triples where the Predicate is a given Node.

Declaration
public IEnumerable<Triple> GetQuotedWithPredicate(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithPredicateObject(INode, INode)

Selects all quoted triples with the given Predicate and Object.

Declaration
public IEnumerable<Triple> GetQuotedWithPredicateObject(INode pred, INode obj)
Parameters
Type Name Description
INode pred

Predicate.

INode obj

Object.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithSubject(Uri)

Selects all quoted triples where the Subject is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetQuotedWithSubject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithSubject(INode)

Selects all quoted triples where the Subject is a given Node.

Declaration
public IEnumerable<Triple> GetQuotedWithSubject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithSubjectObject(INode, INode)

Selects all quoted triples with the given Subject and Object.

Declaration
public IEnumerable<Triple> GetQuotedWithSubjectObject(INode subj, INode obj)
Parameters
Type Name Description
INode subj

Subject.

INode obj

Object.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetQuotedWithSubjectPredicate(INode, INode)

Selects all quoted triples with the given Subject and Predicate.

Declaration
public IEnumerable<Triple> GetQuotedWithSubjectPredicate(INode subj, INode pred)
Parameters
Type Name Description
INode subj

Subject.

INode pred

Predicate.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(Uri)

Selects all Triples which have a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetTriples(Uri uri)
Parameters
Type Name Description
Uri uri

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriples(INode)

Selects all Triples which contain the given Node.

Declaration
public IEnumerable<Triple> GetTriples(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(Uri)

Selects all Triples where the Object is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetTriplesWithObject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithObject(INode)

Selects all Triples where the Object is a given Node.

Declaration
public IEnumerable<Triple> GetTriplesWithObject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(Uri)

Selects all Triples where the Predicate is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetTriplesWithPredicate(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicate(INode)

Selects all Triples where the Predicate is a given Node.

Declaration
public IEnumerable<Triple> GetTriplesWithPredicate(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithPredicateObject(INode, INode)

Selects all Triples with the given Predicate and Object.

Declaration
public IEnumerable<Triple> GetTriplesWithPredicateObject(INode pred, INode obj)
Parameters
Type Name Description
INode pred

Predicate.

INode obj

Object.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(Uri)

Selects all Triples where the Subject is a Uri Node with the given Uri.

Declaration
public IEnumerable<Triple> GetTriplesWithSubject(Uri u)
Parameters
Type Name Description
Uri u

Uri.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubject(INode)

Selects all Triples where the Subject is a given Node.

Declaration
public IEnumerable<Triple> GetTriplesWithSubject(INode n)
Parameters
Type Name Description
INode n

Node.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubjectObject(INode, INode)

Selects all Triples with the given Subject and Object.

Declaration
public IEnumerable<Triple> GetTriplesWithSubjectObject(INode subj, INode obj)
Parameters
Type Name Description
INode subj

Subject.

INode obj

Object.

Returns
Type Description
IEnumerable<Triple>
| Edit this page View Source

GetTriplesWithSubjectPredicate(INode, INode)

Selects all Triples with the given Subject and Predicate.

Declaration
public IEnumerable<Triple> GetTriplesWithSubjectPredicate(INode subj, INode pred)
Parameters
Type Name Description
INode subj

Subject.

INode pred

Predicate.

Returns
Type Description
IEnumerable<Triple>

Implements

ITripleIndex

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • TripleStoreTripleIndex(ITripleStore, bool)
    • TripleStoreTripleIndex(ITripleStore, IRefNode)
  • Methods
    • GetQuoted(Uri)
    • GetQuoted(INode)
    • GetQuotedWithObject(Uri)
    • GetQuotedWithObject(INode)
    • GetQuotedWithPredicate(Uri)
    • GetQuotedWithPredicate(INode)
    • GetQuotedWithPredicateObject(INode, INode)
    • GetQuotedWithSubject(Uri)
    • GetQuotedWithSubject(INode)
    • GetQuotedWithSubjectObject(INode, INode)
    • GetQuotedWithSubjectPredicate(INode, INode)
    • GetTriples(Uri)
    • GetTriples(INode)
    • GetTriplesWithObject(Uri)
    • GetTriplesWithObject(INode)
    • GetTriplesWithPredicate(Uri)
    • GetTriplesWithPredicate(INode)
    • GetTriplesWithPredicateObject(INode, INode)
    • GetTriplesWithSubject(Uri)
    • GetTriplesWithSubject(INode)
    • GetTriplesWithSubjectObject(INode, INode)
    • GetTriplesWithSubjectPredicate(INode, INode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX