hydra.xml.schema module
A partial XML Schema model, focusing on datatypes. All simple datatypes (i.e. xsd:anySimpleType and below) are included. See: https://www.w3.org/TR/xmlschema-2 Note: for most of the XML Schema datatype definitions included here, the associated Hydra type is simply
the string type. Exceptions are made for xsd:boolean and most of the numeric types, where there is a clearly corresponding Hydra literal type.
- class hydra.xml.schema.AnySimpleType(value: T)
Bases:
Node[str]The XSD anySimpleType, the base type of all simple (non-list, non-union-composed) XML Schema datatypes.
- TYPE_ = Name(value='hydra.xml.schema.AnySimpleType')
- class hydra.xml.schema.AnyType(value: T)
Bases:
Node[str]The XSD anyType, the root of the XML Schema type hierarchy.
- TYPE_ = Name(value='hydra.xml.schema.AnyType')
- class hydra.xml.schema.AnyURI(value: T)
Bases:
Node[str]The XSD anyURI datatype: a URI reference.
- TYPE_ = Name(value='hydra.xml.schema.AnyURI')
- class hydra.xml.schema.Base64Binary(value: T)
Bases:
Node[str]The XSD base64Binary datatype: arbitrary binary data encoded as base64.
- TYPE_ = Name(value='hydra.xml.schema.Base64Binary')
- class hydra.xml.schema.Boolean(value: T)
Bases:
Node[bool]The XSD boolean datatype: true or false.
- TYPE_ = Name(value='hydra.xml.schema.Boolean')
- class hydra.xml.schema.Byte(value: T)
Bases:
Node[int]The XSD byte datatype: an 8-bit signed integer.
- TYPE_ = Name(value='hydra.xml.schema.Byte')
- class hydra.xml.schema.ConstrainingFacet(value: T)
Bases:
Node[None]An XML Schema constraining facet, restricting the value space of a datatype.
- TYPE_ = Name(value='hydra.xml.schema.ConstrainingFacet')
- class hydra.xml.schema.Datatype(*values)
Bases:
EnumThe name of a built-in XML Schema datatype.
- ANY_SIMPLE_TYPE = Name(value='anySimpleType')
- ANY_TYPE = Name(value='anyType')
- ANY_U_R_I = Name(value='anyURI')
- BASE64_BINARY = Name(value='base64Binary')
- BOOLEAN = Name(value='boolean')
- BYTE = Name(value='byte')
- DATE = Name(value='date')
- DATE_TIME = Name(value='dateTime')
- DECIMAL = Name(value='decimal')
- DOUBLE = Name(value='double')
- DURATION = Name(value='duration')
- E_N_T_I_T_I_E_S = Name(value='ENTITIES')
- E_N_T_I_T_Y = Name(value='ENTITY')
- FLOAT = Name(value='float')
- G_DAY = Name(value='gDay')
- G_MONTH = Name(value='gMonth')
- G_MONTH_DAY = Name(value='gMonthDay')
- G_YEAR = Name(value='gYear')
- G_YEAR_MONTH = Name(value='gYearMonth')
- HEX_BINARY = Name(value='hexBinary')
- INT = Name(value='int')
- INTEGER = Name(value='integer')
- I_D = Name(value='ID')
- I_D_R_E_F = Name(value='IDREF')
- I_D_R_E_F_S = Name(value='IDREFS')
- LANGUAGE = Name(value='language')
- LONG = Name(value='long')
- NAME = Name(value='name')
- NEGATIVE_INTEGER = Name(value='negativeInteger')
- NON_NEGATIVE_INTEGER = Name(value='nonNegativeInteger')
- NON_POSITIVE_INTEGER = Name(value='nonPositiveInteger')
- NORMALIZED_STRING = Name(value='normalizedString')
- N_M_T_O_K_E_N = Name(value='NMTOKEN')
- N_O_T_A_T_I_O_N = Name(value='NOTATION')
- POSITIVE_INTEGER = Name(value='positiveInteger')
- Q_NAME = Name(value='qName')
- SHORT = Name(value='short')
- STRING = Name(value='string')
- TIME = Name(value='time')
- TOKEN = Name(value='token')
- TYPE_ = Name(value='hydra.xml.schema.Datatype')
- UNSIGNED_BYTE = Name(value='unsignedByte')
- UNSIGNED_INT = Name(value='unsignedInt')
- UNSIGNED_LONG = Name(value='unsignedLong')
- UNSIGNED_SHORT = Name(value='unsignedShort')
- class hydra.xml.schema.Date(value: T)
Bases:
Node[str]The XSD date datatype: a calendar date, optionally with a timezone.
- TYPE_ = Name(value='hydra.xml.schema.Date')
- class hydra.xml.schema.DateTime(value: T)
Bases:
Node[str]The XSD dateTime datatype: a date and time, optionally with a timezone.
- TYPE_ = Name(value='hydra.xml.schema.DateTime')
- class hydra.xml.schema.Decimal(value: T)
Bases:
Node[str]The XSD decimal datatype: an arbitrary-precision signed decimal number.
- TYPE_ = Name(value='hydra.xml.schema.Decimal')
- class hydra.xml.schema.Double(value: T)
Bases:
Node[float]The XSD double datatype: an IEEE 754 double-precision floating-point number.
- TYPE_ = Name(value='hydra.xml.schema.Double')
- class hydra.xml.schema.Duration(value: T)
Bases:
Node[str]The XSD duration datatype: a duration of time.
- TYPE_ = Name(value='hydra.xml.schema.Duration')
- class hydra.xml.schema.ENTITIES(value: T)
Bases:
Node[str]The XSD ENTITIES datatype: a whitespace-separated list of unparsed entity names.
- TYPE_ = Name(value='hydra.xml.schema.ENTITIES')
- class hydra.xml.schema.ENTITY(value: T)
Bases:
Node[str]The XSD ENTITY datatype: the name of an unparsed entity.
- TYPE_ = Name(value='hydra.xml.schema.ENTITY')
- class hydra.xml.schema.Float(value: T)
Bases:
Node[float]The XSD float datatype: an IEEE 754 single-precision floating-point number.
- TYPE_ = Name(value='hydra.xml.schema.Float')
- class hydra.xml.schema.GDay(value: T)
Bases:
Node[str]The XSD gDay datatype: a day of the month, recurring.
- TYPE_ = Name(value='hydra.xml.schema.GDay')
- class hydra.xml.schema.GMonth(value: T)
Bases:
Node[str]The XSD gMonth datatype: a month of the year, recurring.
- TYPE_ = Name(value='hydra.xml.schema.GMonth')
- class hydra.xml.schema.GMonthDay(value: T)
Bases:
Node[str]The XSD gMonthDay datatype: a day of a specific month, recurring yearly.
- TYPE_ = Name(value='hydra.xml.schema.GMonthDay')
- class hydra.xml.schema.GYear(value: T)
Bases:
Node[str]The XSD gYear datatype: a calendar year.
- TYPE_ = Name(value='hydra.xml.schema.GYear')
- class hydra.xml.schema.GYearMonth(value: T)
Bases:
Node[str]The XSD gYearMonth datatype: a specific month of a specific year.
- TYPE_ = Name(value='hydra.xml.schema.GYearMonth')
- class hydra.xml.schema.HexBinary(value: T)
Bases:
Node[str]The XSD hexBinary datatype: arbitrary binary data encoded as hexadecimal.
- TYPE_ = Name(value='hydra.xml.schema.HexBinary')
- class hydra.xml.schema.ID(value: T)
Bases:
Node[str]The XSD ID datatype: an XML identifier attribute value, unique within a document.
- TYPE_ = Name(value='hydra.xml.schema.ID')
- class hydra.xml.schema.IDREF(value: T)
Bases:
Node[str]The XSD IDREF datatype: a reference to an XML ID attribute value.
- TYPE_ = Name(value='hydra.xml.schema.IDREF')
- class hydra.xml.schema.IDREFS(value: T)
Bases:
Node[str]The XSD IDREFS datatype: a whitespace-separated list of IDREF values.
- TYPE_ = Name(value='hydra.xml.schema.IDREFS')
- class hydra.xml.schema.Int(value: T)
Bases:
Node[int]The XSD int datatype: a 32-bit signed integer.
- TYPE_ = Name(value='hydra.xml.schema.Int')
- class hydra.xml.schema.Integer(value: T)
Bases:
Node[int]The XSD integer datatype: an arbitrary-precision signed integer.
- TYPE_ = Name(value='hydra.xml.schema.Integer')
- class hydra.xml.schema.Language(value: T)
Bases:
Node[str]The XSD language datatype: an RFC 3066 language tag.
- TYPE_ = Name(value='hydra.xml.schema.Language')
- class hydra.xml.schema.Long(value: T)
Bases:
Node[int]The XSD long datatype: a 64-bit signed integer.
- TYPE_ = Name(value='hydra.xml.schema.Long')
- class hydra.xml.schema.NMTOKEN(value: T)
Bases:
Node[str]The XSD NMTOKEN datatype: an XML name token.
- TYPE_ = Name(value='hydra.xml.schema.NMTOKEN')
- class hydra.xml.schema.NOTATION(value: T)
Bases:
Node[str]The XSD NOTATION datatype: the name of a notation declared in the document’s DTD.
- TYPE_ = Name(value='hydra.xml.schema.NOTATION')
- class hydra.xml.schema.Name(value: T)
Bases:
Node[str]The XSD Name datatype: an XML Name (a token that may not start with a digit).
- TYPE_ = Name(value='hydra.xml.schema.Name')
- class hydra.xml.schema.NegativeInteger(value: T)
Bases:
Node[int]The XSD negativeInteger datatype: an arbitrary-precision integer less than zero.
- TYPE_ = Name(value='hydra.xml.schema.NegativeInteger')
- class hydra.xml.schema.NonNegativeInteger(value: T)
Bases:
Node[int]The XSD nonNegativeInteger datatype: an arbitrary-precision integer greater than or equal to zero.
- TYPE_ = Name(value='hydra.xml.schema.NonNegativeInteger')
- class hydra.xml.schema.NonPositiveInteger(value: T)
Bases:
Node[int]The XSD nonPositiveInteger datatype: an arbitrary-precision integer less than or equal to zero.
- TYPE_ = Name(value='hydra.xml.schema.NonPositiveInteger')
- class hydra.xml.schema.NormalizedString(value: T)
Bases:
Node[str]The XSD normalizedString datatype: a string with no carriage return, line feed, or tab characters.
- TYPE_ = Name(value='hydra.xml.schema.NormalizedString')
- class hydra.xml.schema.PositiveInteger(value: T)
Bases:
Node[int]The XSD positiveInteger datatype: an arbitrary-precision integer greater than zero.
- TYPE_ = Name(value='hydra.xml.schema.PositiveInteger')
- class hydra.xml.schema.QName(value: T)
Bases:
Node[str]The XSD QName datatype: a namespace-qualified XML name.
- TYPE_ = Name(value='hydra.xml.schema.QName')
- class hydra.xml.schema.Short(value: T)
Bases:
Node[int]The XSD short datatype: a 16-bit signed integer.
- TYPE_ = Name(value='hydra.xml.schema.Short')
- class hydra.xml.schema.String(value: T)
Bases:
Node[str]The XSD string datatype: a character string.
- TYPE_ = Name(value='hydra.xml.schema.String')
- class hydra.xml.schema.Time(value: T)
Bases:
Node[str]The XSD time datatype: a time of day, optionally with a timezone.
- TYPE_ = Name(value='hydra.xml.schema.Time')
- class hydra.xml.schema.Token(value: T)
Bases:
Node[str]The XSD token datatype: a normalized string with no leading, trailing, or consecutive internal whitespace.
- TYPE_ = Name(value='hydra.xml.schema.Token')
- class hydra.xml.schema.UnsignedByte(value: T)
Bases:
Node[int]The XSD unsignedByte datatype: an 8-bit unsigned integer.
- TYPE_ = Name(value='hydra.xml.schema.UnsignedByte')
- class hydra.xml.schema.UnsignedInt(value: T)
Bases:
Node[int]The XSD unsignedInt datatype: a 32-bit unsigned integer.
- TYPE_ = Name(value='hydra.xml.schema.UnsignedInt')