Exceptions
knowledgecomplex.exceptions — Public exception types.
These are the only knowledgecomplex types that cross the API boundary on failure.
ValidationError
Bases: Exception
Raised when a SHACL validation check fails on write.
Attributes:
| Name | Type | Description |
|---|---|---|
report |
str
|
Human-readable SHACL validation report text. |
Source code in knowledgecomplex/exceptions.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
UnknownQueryError
Bases: Exception
Raised when KnowledgeComplex.query() is called with an unregistered template name.
Source code in knowledgecomplex/exceptions.py
26 27 28 29 30 | |
SchemaError
Bases: Exception
Raised when a SchemaBuilder method is called with invalid arguments, e.g. referencing an undefined type.
Source code in knowledgecomplex/exceptions.py
33 34 35 36 37 38 | |