Soprano  2.7.5
Public Member Functions
Soprano::Inference::NodePattern Class Reference

Smallest building block of an inference Rule. More...

#include <Soprano/Inference/NodePattern>

List of all members.

Public Member Functions

 NodePattern ()
 NodePattern (const Node &)
 NodePattern (const QString &varname)
 NodePattern (const NodePattern &)
 ~NodePattern ()
NodePatternoperator= (const NodePattern &)
bool isVariable () const
Node resource () const
QString variableName () const
bool match (const Node &node) const
QString createSparqlNodePattern (const BindingSet &bindings) const
bool isValid () const

Detailed Description

Smallest building block of an inference Rule.

There are two types of NodePattern:

Author:
Sebastian Trueg <trueg@kde.org>

Definition at line 49 of file nodepattern.h.


Constructor & Destructor Documentation


Member Function Documentation

NodePattern& Soprano::Inference::NodePattern::operator= ( const NodePattern )
Returns:
the associated resource of an invalid Node if this is a variable.
Returns:
The name of the variable or an empty string if this is not a variable.
bool Soprano::Inference::NodePattern::match ( const Node node) const

Match a Node against this pattern. Variables will match any Node while specific node patterns will only match that one particular Node.

Returns:
true if node mathes this pattern.
Returns:
true if the pattern is valid.
Since:
2.3

The documentation for this class was generated from the following file: