W3C home > Mailing lists > Public > public-rww@w3.org > November 2012

Re: [WAC] regexps in WebAccessControl

From: Alexandre Bertails <bertails@w3.org>
Date: Sun, 18 Nov 2012 20:31:40 -0500
Message-ID: <50A98BFC.70809@w3.org>
To: nathan@webr3.org
CC: Henry Story <henry.story@bblfish.net>, Ruben Verborgh <ruben.verborgh@ugent.be>, Read-Write-Web <public-rww@w3.org>
On 11/18/2012 04:06 PM, Nathan wrote:
> Henry Story wrote:
>>   []  wac:accessToClass [ wac:regex "http://joe.example/blog/.*" ];

For file matching patterns, I'd suggest not to reinvent the wheel and
use something that has existed for a long time: ant patterns [1]. It's
already defined, and the regex can be easily parsed and then compiled
down to any language specific regex.

Alexandre.

[1] http://ant.apache.org/manual/dirtasks.html#patterns

>
> What would [ wac:regex "http://joe.example/blog/.*" ] mean?
>
> Using OWL 2 we can create a datatype definition, using a datatype
> restriction, on strings and the like - but that doesn't (anywhere near)
> cover what's required here.
>
> I'm unsure how we'd actually create a Class of things based on the
> lexical form of a URI though, or even, whether it's a good idea to do so
> - we are basically saying that if a URI has a lexical form which matches
> the regular expression x, then that URI denotes something which is of
> the class y. This feels wrong.
>
> Cheers,
>
> Nathan
>
>
Received on Monday, 19 November 2012 01:31:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 19 November 2012 01:31:41 GMT