Re: rdf:datatype semantics
Neil Stansbury <[email protected]> Sat, 07 Jan 2006 23:13:23 +0000
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Found the answer in: http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-URI-reference [quote] 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. [/quote] 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> N 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="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:dc="http://purl.org/dc/elements/1.1/"> > > <rdf:Description rdf:about="urn:a"> > <dc:Source rdf:resource="urn:b"/> > <dc:Source > rdf:datatype="http://www.w3.org/TR/xmlschema-2/#anyURI">urn:b</dc:Source> > </rdf:Description> > > </rdf:RDF> >