Re: rdf:datatype semantics
Axel Hecht <[email protected]> Thu, 28 Jul 2005 12:07:52 +0200
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
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> > Sematically, the first is a arc with a resource target, the second one is an arc with a typed literal target, http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-datatyped-literals. Note that mozilla doesn't supports neither rdf:datatype nor typed literals. Axel