W3C home > Mailing lists > Public > public-rif-wg@w3.org > September 2008

Lexing RIF PS

From: Hassan Ait-Kaci <hak@ilog.com>
Date: Mon, 22 Sep 2008 06:25:22 -0700
Message-ID: <9FC9C6B2EA71ED4B826F55AC7C8B9AAB01F3369E@mvmbx01.ilog.biz>
To: <axel@polleres.net>
Cc: "RIF WG" <public-rif-wg@w3.org>
Hi Axel,

Still in the process of deciphering the intricacies of what
constitutes a RIF BLD/DTB lexical unit, I have a question for you
regarding how you describe the RIF symbol spaces, and specifically
the use of the Base directive to expand on relative IRI's.

In http://www.w3.org/TR/2008/WD-rif-dtb-20080730/#Relative_IRIs,
you describe how the Base directive (at most one per RIF document)
can be used to declare a base IRI for resolving relative IRI's
in RIF. You wrote:

> 2.1.3 Relative IRIs
> Relative IRIs in RIF documents are resolved with respect to the base
> IRI. Relative IRIs are combined with base IRIs as per Uniform
> Resource Identifier (URI): Generic Syntax [RFC-3986] using only the
> basic algorithm in Section 5.2.

You go on giving the following examples :

> For instance, the constant <./xyz> or "./xyz"^^rif:iri are both
> valid abbreviations for the constant "http://www.example.org/xyz"^^rif:iri
> in a RIF document in presentation syntax that has the single base
> directive Base( http://www.example.org ) in its preamble.

Basically, the above entails that the internal structure of IRI's
must be parsed out of all RIF PS string constants and identifiers
that happen to be legal IRI's.  At least this is what I understand
from the avove and reference you cite [RFC 3986, Berners-Lee, et al.,
January 2005, Standards Track, Page 25, (URI Generic Syntax)], which

> 4.1.  URI Reference
>    URI-reference is used to denote the most common usage of a resource
>    identifier.
>       URI-reference = URI / relative-ref
>    A URI-reference is either a URI or a relative reference.  If the
>    URI-reference's prefix does not match the syntax of a scheme followed
>    by its colon separator, then the URI-reference is a relative
>    reference.
>    A URI-reference is typically parsed first into the five URI
>    components, in order to determine what components are present and
>    whether the reference is relative.

This, unfortunately again, requires that any lexical analyzer for the
RIF PS include complete IRI parser - which I am not willing to invest
any effort in at this nor any near future time.

Hassan At-Kaci  *  ILOG, Inc. - Product Division R&D
Received on Monday, 22 September 2008 13:29:31 UTC

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