W3C home > Mailing lists > Public > public-rif-wg@w3.org > December 2010

[RIF dev prep] RE: Relative IRIs and literals

From: Boley, Harold <Harold.Boley@nrc-cnrc.gc.ca>
Date: Fri, 31 Dec 2010 02:25:22 -0800
To: "'public-rif-wg@w3.org'" <public-rif-wg@w3.org>
Message-ID: <AD9009DD1B046F4ABBB3E3541D9323FE06AA8B034D@NRCCENMB3.nrc.ca>
Sandro and All,

Here is a starter for preparing the answers to Paul Gearon's questions,
which he could have tagged as "Relative IRIs and rdf:PlainLiterals":

Maybe the mapping described in "RIF in RDF" should implement
the XML-Base assumption mentioned below.

Regarding the rdf:PlainLiteral issue, perhaps one of the taskforce
members could have a look (e.g., in the context of the new RDF WG:


PS: See also the answer preparation for Thomas Krekeler's question:

> I notice in example 8 that there are some relative IRIs (<John> and
> <Fred>). I'm presuming that the presentation syntax is fine to set the
> base for these values, but I notice that the XML treats these as text,
> meaning that they show up as the relative value. I suppose that
> software reading the XML can record the xml:base on the document, and
> make the change manually, but that seems to be a strange way to do it.
> Is this intentional?

Referring to http://www.w3.org/TR/rif-bld/#XML_for_the_Rule_Language,
the RIF-BLD spec says:

"A Base directive in the presentation syntax becomes an xml:base attribute [XML-Base<http://www.w3.org/TR/rif-bld/#ref-xml-base>] in the XML Document tag. The base IRI specified as the value of that attribute applies to content of the RIF/XML element that deals with rif:iri constants, namely to relative-IRI content of the <Const type="&rif;iri"> element."

So, following the XML-Base spec, the context of

<Document xml:base="...">. . .</Document>
is assumed to indicate 'expansion' of all relative IRIs to absolute ones.
Received on Friday, 31 December 2010 10:25:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:47:59 UTC