soprano
Soprano::NRLModel Class Reference
#include <Soprano/NRLModel>
Inheritance diagram for Soprano::NRLModel:

Detailed Description
Model filter that enforces NRL cardinality rules.The NRLModel enforces NRL cardinality rules. That means predicates with a cardinality of maximum 1 are always udpated while statements that define predicates with a maximum cardinality bigger than 1 are rejected once the maximum is reached (future versions might remove an earlier defined statement based on the time the old statements were added).
Thus, at the moment NRLModel is mostly usable for handling properties with a maximum cardinality of 1.
- See also:
- Vocabulary::NRL
Definition at line 47 of file nrlmodel.h.
Public Member Functions | |
| Error::ErrorCode | addStatement (const Statement &s) |
| bool | ignoreContext () const |
| NRLModel (Model *parent) | |
| NRLModel () | |
| void | setIgnoreContext (bool b) |
| ~NRLModel () | |
Constructor & Destructor Documentation
| Soprano::NRLModel::NRLModel | ( | ) |
| Soprano::NRLModel::NRLModel | ( | Model * | parent | ) |
| Soprano::NRLModel::~NRLModel | ( | ) |
Member Function Documentation
| Error::ErrorCode Soprano::NRLModel::addStatement | ( | const Statement & | s | ) | [virtual] |
Add a statement.
- Parameters:
-
s The statement containing the property to be set. If the predicate has NRL cardinality restrictions existing statements will be updated. Otherwise this method has the same effect as Model::addStatement().
- Returns:
- Error::ErrorNone on success.
Reimplemented from Soprano::FilterModel.
| bool Soprano::NRLModel::ignoreContext | ( | ) | const |
| void Soprano::NRLModel::setIgnoreContext | ( | bool | b | ) |
When enforcing the NRL cardinality rules NRLModel can either ignore the context of statements or treat different contexts as separate sets, each resetting the cardinality.
- Parameters:
-
b If true(the default) NRLModel does ignore the context when enforcing rules. Iffalsethe NRL rules can be violated across contexts.
- See also:
- ignoreContext()
The documentation for this class was generated from the following file:
KDE 4.2 API Reference