RDFClosure.RestrictedDatatype.RestrictedDatatypeCore

Package RDFClosure :: Module RestrictedDatatype :: Class RestrictedDatatypeCore |
[hide private]
[frames] | no frames]

# Class RestrictedDatatypeCore

source code

Known Subclasses:
  - RestrictedDatatype

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.

Instance Methods | [hide private]
__init__(self, type_uri, base_type) | source code
boolean |
checkValue(self, value) Check whether the (python) value abides to the constraints defined by the current facets. | source code

Instance Variables | [hide private]
| 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

Method Details | [hide private]

### checkValue(self, value) | source code
Check whether the (python) value abides to the constraints defined by the current facets. Parameters: `value` - the value to be checked Returns: boolean