org.d2rq.nodes
Interface NodeSetFilter


public interface NodeSetFilter

Defines constraints to a set of RDF Nodes. TODO: NodeSetFilter doesn't handle ColumnFunctions or TranslationTables yet

Author:
Richard Cyganiak

Method Summary
 void limitTo(Node node)
          Limits this node set to one particular node.
 void limitToBlankNodes()
          Limits this node set to blank nodes.
 void limitToEmptySet()
          Limits the node set to the empty set.
 void limitToLiterals(String language, RDFDatatype datatype)
          Limits this node set to literals having a particular language tag and datatype.
 void limitToURIs()
          Limits this node set to URI nodes.
 void limitValues(String constant)
          Limits this node set to the node that has a particular constant value.
 void limitValuesToBlankNodeID(BlankNodeIDValueMaker id)
          Limits this node set to nodes whose value matches the values produced by a blank node ID.
 void limitValuesToColumn(ColumnName column)
          Limits this node set to those whose value matches a value in a particular database table column.
 void limitValuesToExpression(Expression expression)
          Limits this node set to nodes whose value matches the given SQL expression.
 void limitValuesToPattern(TemplateValueMaker pattern)
          Limits this node set to nodes whose value matches the values produced by a pattern.
 void setUsesTranslator(Translator translator)
          Registers the use of a translator to create values in this node set.
 

Method Detail

limitToEmptySet

void limitToEmptySet()
Limits the node set to the empty set.


limitTo

void limitTo(Node node)
Limits this node set to one particular node.

Parameters:
node - A fixed singleton node

limitToURIs

void limitToURIs()
Limits this node set to URI nodes.


limitToBlankNodes

void limitToBlankNodes()
Limits this node set to blank nodes.


limitToLiterals

void limitToLiterals(String language,
                     RDFDatatype datatype)
Limits this node set to literals having a particular language tag and datatype.

Parameters:
language - The language tag of all nodes in the set, or null for plain or datatype literals
datatype - The datatype of all nodes in the set, or null for plain literals

limitValues

void limitValues(String constant)
Limits this node set to the node that has a particular constant value.

Parameters:
constant - The value of the node in this set

limitValuesToColumn

void limitValuesToColumn(ColumnName column)
Limits this node set to those whose value matches a value in a particular database table column.

Parameters:
column - The column containing possible values

limitValuesToPattern

void limitValuesToPattern(TemplateValueMaker pattern)
Limits this node set to nodes whose value matches the values produced by a pattern.

Parameters:
pattern - The pattern producing possible values

limitValuesToBlankNodeID

void limitValuesToBlankNodeID(BlankNodeIDValueMaker id)
Limits this node set to nodes whose value matches the values produced by a blank node ID.

Parameters:
id - The blank node ID producing possible values

limitValuesToExpression

void limitValuesToExpression(Expression expression)
Limits this node set to nodes whose value matches the given SQL expression.

Parameters:
expression - The SQL expression that generates possible values

setUsesTranslator

void setUsesTranslator(Translator translator)
Registers the use of a translator to create values in this node set.

Parameters:
translator - A translator used to create values in this node set