W3C home > Mailing lists > Public > www-rdf-interest@w3.org > March 2001

Re: Attributes and Namespaces.

From: Janne Saarela <janne.saarela@profium.com>
Date: Thu, 29 Mar 2001 09:08:42 +0200
Message-ID: <3AC2DF7A.DA8B3DDF@profium.com>
To: Aaron Swartz <aswartz@swartzfam.com>
CC: "Hart, Lewis" <lhart@grci.com>, RDF Interest <www-rdf-interest@w3.org>
> > <rdf:Description about="http://www.w3.org">
> >        Publisher="World Wide Web Consortium"
> >        Title="W3C Home Page"
> >        Date="1998-10-03T02:27"/>
> 
> Yes, it does. In the second example, no triples should result.
> 
> > If not, why not?
> 
> I don't know the exact reasoning, but I've gathered that there were
> applications that required this to work this way. Perhaps someone with more
> history than I can explain what those were.

Common practice appears to be to associate unqualified attributes
with the namespace of the element where they appear.

In the previous example, about, Publisher, Title, and Date
would all be associated with the RDF namespace.

RDF M&S spec says [1]:

"The formal namespace name for the properties and classes defined in
this
specification is http://www.w3.org/1999/02/22-rdf-syntax-ns#. When an
RDF processor encounters an XML element or attribute name that is
declared
to be from a namespace whose name begins with the string
"http://www.w3.org/TR/REC-rdf-syntax" and the processor does not
recognize
the semantics of that name then the processor is required to skip (i.e.,
generate no tuples for) the entire XML element, including its content,
whose name is unrecognized or that has an attribute whose name is
unrecognized."

Thus, Publisher, Title, and Date are skipped.

BTW1, this paragraph uses "http://www.w3.org/TR/REC-rdf-syntax" prefix
instead of "http://www.w3.org/1999/02/22-rdf-syntax-ns#". I believe this
is
an error and should be fixed.

BTW2, has someone picked up the data type URIs from the formal XML
Schema
specification [2]? I would love to use them as 'range' values in
RDF schemas and do data type validation for literal values in the
data model.

Regards,
Janne

[1] http://www.w3.org/TR/REC-rdf-syntax/#reservedURI
[2] http://www.w3.org/TR/xmlschema-formal/
--
Janne Saarela <janne.saarela@profium.com>
Profium (former Pro Solutions), Tekniikantie 12, FIN-02150 Espoo
Tel. +358 (0)9 25 172 172 Fax. +358 (0)9 25 172 200
Mob. +358 (0)40 508 4767
Internet: http://www.profium.com
Received on Thursday, 29 March 2001 01:06:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:48 GMT