Class RestrictedDatatypeCore
source code
- Known Subclasses:
-
An 'abstract' superclass for datatype restrictions. The instance
variables listed here are used in general, without the specificities of
the concrete restricted datatype.
This module defines the RestrictedDatatype class that corresponds to the
datatypes and their restrictions defined in the OWL 2 standard. Other
modules may subclass this class to define new datatypes with
restrictions.
|
|
boolean
|
checkValue(self,
value)
Check whether the (python) value abides to the constraints defined by
the current facets. |
source code
|
|
|
base_type
URI of the datatype that is restricted
|
|
toPython
function to convert a Literal of the specified type to a Python
value.
|
|
type_uri
the URI for this datatype
|
Check whether the (python) value abides to the constraints defined by
the current facets.
- Parameters:
value - the value to be checked
- Returns: boolean
|