Skip to content

exceptions

Exceptions for general usage by the Turtle Canon tool.

FailedCreatingOntology

Bases: TurtleCanonException

RDFlib failed to add one or more triples to a new rdflib.Graph object.

Source code in turtle_canon/utils/exceptions.py
30
31
class FailedCreatingOntology(TurtleCanonException):
    """RDFlib failed to add one or more triples to a new `rdflib.Graph` object."""

FailedExportToFile

Bases: TurtleCanonException

Failed to export an ontology to file.

Source code in turtle_canon/utils/exceptions.py
14
15
class FailedExportToFile(TurtleCanonException):
    """Failed to export an ontology to file."""

FailedParsingFile

Bases: TurtleCanonException

RDFlib failed parsing a Turtle file.

Source code in turtle_canon/utils/exceptions.py
26
27
class FailedParsingFile(TurtleCanonException):
    """RDFlib failed parsing a Turtle file."""

FailedReadingFile

Bases: TurtleCanonException

Failed to read the content of a Turtle file using UTF-8 encoding.

Source code in turtle_canon/utils/exceptions.py
18
19
class FailedReadingFile(TurtleCanonException):
    """Failed to read the content of a Turtle file using UTF-8 encoding."""

InconsistencyError

Bases: TurtleCanonException

An inconsistency was found.

Source code in turtle_canon/utils/exceptions.py
22
23
class InconsistencyError(TurtleCanonException):
    """An inconsistency was found."""

TurtleCanonException

Bases: Exception

Base Exception for the Turtle Canon tool.

Source code in turtle_canon/utils/exceptions.py
6
7
class TurtleCanonException(Exception):
    """Base Exception for the Turtle Canon tool."""

TurtleFileNotFound

Bases: TurtleCanonException

A Turtle file cannot be found.

Source code in turtle_canon/utils/exceptions.py
10
11
class TurtleFileNotFound(TurtleCanonException):
    """A Turtle file cannot be found."""