SemWeb.SelectFilter

SemWeb : SemWeb Namespace
SelectFilter Struct

This structure provides the arguments to the more powerful Select overload.

public struct SelectFilter : IEnumerable

#### Remarks

For examples, see SemWeb.SelectableSource.Select(SemWeb.SelectFilter,SemWeb.StatementSink).

## Members

See Also: Inherited members from ValueType.

### Constructors

SelectFilter (Statement) Creates a new SelectFilter which selects for statements matching the template.
SelectFilter (Entity[], Entity[], Resource[], Entity[]) Creates a SelectFilter to select for matching statements.

### Fields

All static | SelectFilter . A SelectFilter than selects for all statements.
Limit | int . Maximum number of statements to return.
LiteralFilters | LiteralFilter[]. An array of filters that the object value of statements must match.
Metas | Entity[]. The filter for the meta value of statements.
Objects | Resource[]. The filter for the object value of statements.
Predicates | Entity[]. The filter for the predicate value of statements.
Subjects | Entity[]. The filter for the subject value of statements.

### Methods

static | FromGraph (Statement[]) : SelectFilter[] To be added.
| GetEnumerator () : IEnumerator To be added.

### Operators

Equality (SelectFilter, SelectFilter) Tests two SelectFilters for equality.
Inequality (SelectFilter, SelectFilter) Tests two SelectFilters for inequality.

## Member Details

### SelectFilter Constructor

public SelectFilter (Statement statement)

Creates a new SelectFilter which selects for statements matching the template.

#### Parameters

statement
  The statement template to select for.

#### Remarks

None.

### SelectFilter Constructor

public SelectFilter (Entity[] subjects, Entity[] predicates, Resource[] objects, Entity[] metas)

Creates a SelectFilter to select for matching statements.

#### Parameters

subjects
  `null` to match any entity, or an array of entities any of which match the filter.
predicates
  `null` to match any entity, or an array of entities any of which match the filter.
objects
  `null` to match any resource, or an array of resources any of which match the filter.
metas
  `null` to match any entity, or an array of entities any of which match the filter.

#### Remarks

None.

### Subjects Field

public Entity[] Subjects

The filter for the subject value of statements.

#### Remarks

`null` to match any entity, or an array of entities any of which match the filter.

### Predicates Field

public Entity[] Predicates

The filter for the predicate value of statements.

#### Remarks

`null` to match any entity, or an array of entities any of which match the filter.

### Objects Field

public Resource[] Objects

The filter for the object value of statements.

#### Remarks

`null` to match any resource, or an array of resources any of which match the filter.

### Metas Field

public Entity[] Metas

The filter for the meta value of statements.

#### Remarks

`null` to match any entity, or an array of entities any of which match the filter.

### LiteralFilters Field

public LiteralFilter[] LiteralFilters

An array of filters that the object value of statements must match.

#### Remarks

An array of filters that the object value of any matching statements must match.

### Limit Field

public int Limit

Maximum number of statements to return.

#### Remarks

Stores are free to ignore the limit provided.

### All Field

public static SelectFilter All

A SelectFilter than selects for all statements.

#### Remarks

This is equivalent to SemWeb.Statement.All.

### FromGraph Method

public static SelectFilter[] FromGraph (Statement[] graph)

To be added.

#### Parameters

graph
  To be added.

#### Returns

To be added.

#### Remarks

To be added.

### GetEnumerator Method

public IEnumerator GetEnumerator ()

To be added.

#### Returns

To be added.

#### Remarks

To be added.

### op_Equality Method

public static bool == (SelectFilter a, SelectFilter b)

Tests two SelectFilters for equality.

#### Parameters

a
  A SelectFilter.
b
  A SelectFilter.

#### Returns

True if the two SelectFilters have equivalent values for all fields.

#### Remarks

None.

### op_Inequality Method

public static bool != (SelectFilter a, SelectFilter b)

Tests two SelectFilters for inequality.

#### Parameters

a
  A SelectFilter.
b
  A SelectFilter.

#### Returns

False if the two SelectFilters have equivalent values for all fields.

#### Remarks

None.