# class StatementPattern

###

Module | soprano
Namespace | Soprano::Inference
Class | StatementPattern
Inherits |

\class StatementPattern statementpattern.h Soprano/Inference/StatementPattern

Building block of an inference Rule.

A StatementPattern consists of three NodePattern that can either be variables or already bound ndoes.

StatementPattern is used to define preconditions and effects in Rule.

Author Sebastian Trueg <trueg@kde.org>

### methods

- StatementPattern ( )

  returns ctor

- StatementPattern (a0, a1, a2)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Inference.NodePattern |
  a1 | Soprano.Inference.NodePattern |
  a2 | Soprano.Inference.NodePattern |

- StatementPattern (a0)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Inference.StatementPattern |

- createSparqlGraphPattern (bindings)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  bindings | Soprano.BindingSet |

- match (a0)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  a0 | Soprano.Statement |

- objectPattern ( )

  returns Soprano.Inference.NodePattern

- predicatePattern ( )

  returns Soprano.Inference.NodePattern

- subjectPattern ( )

  returns Soprano.Inference.NodePattern