Can one get typed literals by applying an XML Schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">XML Schema for RDF Address Records
</xsd:documentation>
</xsd:annotation>
<xsd:element name="Address" type="AddressType"/>
<xsd:complexType name="AddressType">
<xsd:sequence>
<xsd:element name="street" type="xsd:string"/>
<xsd:element name="city" type="xsd:string"/>
<xsd:element name="province" type="xsd:string"/>
<xsd:element name="postCode" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
to RDF/XML instance data:
<rdf:RDF xmlns:rdf="@@@">
<Address xmlns="@@@">
<street>some street</street>
<city>some city</city>
<province>some province</province>
<postalCode>some postalCode</postalCode>
</xsd:schema>
</rdf:RDF>
before parsing it? (Apart from implementations, is the parser allowed
to use the type annotations in the PSVI?
--
-eric
office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
Shonan Fujisawa Campus, Keio University,
5322 Endo, Fujisawa, Kanagawa 252-8520
JAPAN
+1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell: +81.90.6533.3882
(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.