| Did you know ... | Search Documentation: |
| xsdp_types.pl -- XML-Schema primitive types |
This modules provides support for the primitive XML-Schema (XSD) datatypes. It defines the type hierarchy which allows for reasoning over types as well as xsdp_convert/3 to convert XML content to a natural Prolog representation of the XSD type.
Based on the W3C definitions at
The current implementation is incomplete and only there to test the API and its integration with rdf:dataType=Type handling in the RDF parser.
The extra 'p' in the module prefix (xsdp_*) is used to allow for a module xsd_*, providing full user-defined XSD types on top of this module.
xsdp_type(?Type)
xsdp_uri_type(?URI, ?Type)
xsdp_subtype_of(?Type, ?Super)
xsdp_numeric_uri(?URI, -PromoteURI) is nondetinteger, float, double
and decimal.
xsdp_convert(+Type, +Content, -Value)