Re: rdf:datatype semantics

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: rdf:datatype semantics

Neil Stansbury-2
Found the answer in:

Note: RDF URI references are compatible with the anyURI datatype as
defined by XML schema datatypes [XML-SCHEMA2], constrained to be an
absolute rather than a relative URI reference.

So they do look to be semantically equivalent which would make sense.

Which means the semantics would be preserved in converting the xml:

<my:prop xsi:type="xsd:anyURI">urn:a</my:prop>

To the RDF:

<my:prop rdf:resource="urn:a">urn:a</my:prop>


Neil Stansbury wrote:

> Semantically, what is the difference between the two dc:Source
> properties below?
> I know one is a literal and the other a resource, I'm just wondering if
> there would be any reason to not treat the literal as if it were a
> resource.
> <?xml version="1.0"?>
> <rdf:RDF xmlns:rdf=""
> xmlns:dc="">
> <rdf:Description rdf:about="urn:a">
>   <dc:Source rdf:resource="urn:b"/>
>   <dc:Source
> rdf:datatype="">urn:b</dc:Source>
> </rdf:Description>
> </rdf:RDF>
Mozilla-rdf mailing list
[hidden email]