NodePattern Class Reference
from PyKDE4.soprano import *
Namespace: Soprano.Inference
Detailed Description
\class NodePattern nodepattern.h Soprano/Inference/NodePattern
Smallest building block of an inference Rule.
There are two types of NodePattern:
 Simple nodes that wrap around an instance or Node 
and only match against that particular node.
 Variable nodes that match against every Node and 
have a name.
- Author:
-  Sebastian Trueg <trueg@kde.org> 
Method Documentation
- Returns:
-  true if the pattern is valid.
- Since:
-  2.3
 
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:
-  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.