# class RuleSet

###

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

\class RuleSet inferenceruleset.h Soprano/Inference/RuleSet

A set of inference rules.

RuleSet represents a set of inference rules. Each Rule has a unique name.

Author Sebastian Trueg <trueg@kde.org>

### methods

- RuleSet ( )

  returns ctor

  Create an empty RuleSet.

- RuleSet (a0)

  returns ctor

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

  Copy constructor.

- allRules ( )

  returns QList<Soprano::Inference::Rule>

- at (index)

  returns Soprano.Inference.Rule

  Argument | Type | Default
  --- | --- | ---
  index | int |

- clear ( )

  returns Nothing

- count ( )

  returns int

  Number of rules in the set. Returns The number of rules.

- insert (name, rule)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  rule | Soprano.Inference.Rule |

  Add a Rule to the set.

  name - The name the new rule is supposed to be stored under.

  rule - The new rule to store in the set.

- operator [] (index)

  returns Soprano.Inference.Rule

  Argument | Type | Default
  --- | --- | ---
  index | int |

- operator [] (name)

  returns Soprano.Inference.Rule

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- rule (name)

  returns Soprano.Inference.Rule

  Argument | Type | Default
  --- | --- | ---
  name | QString |

- ruleNames ( )

  returns QStringList

- standardRuleSet (a0)

  returns Soprano.Inference.RuleSet
  static

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

  Read a standard %Soprano rulset.

  See also RuleParser