Murray Altheim wrote:
[...]
In the above scheme we can obtain the base URL, the collection hierarchy
and object identifier all without regex, just parsing the '/' delimiters
via indexOf(). If we use the '?' as the delimiter between the absolute
identifier of the intellectual entity (IE, to use the term we're using
here locally), then everything after that is parseable either by going
one '/' forward or backward, and everything else is a parameter available
via the HTTPServletRequest.

I didn't finish a thought (how unusual!).

The idea was that there's a subject, predicate and object embedded in
that URL, with the '?' acting as a delimiter or boundary of sorts:

  http://www.acme.org/wiki/  pages/  PageName/  get/ ['?' optional params]
or
  http://www.acme.org/wiki/  pages/  PageName/ '?' action=get

abstracted as:

  subject/  predicate/ [optional "adjectives"]
or
  subject/ '?' predicate [optional "adjectives"]

which means parsing comes down to traveling one '/' from either the end
of the URL or from '?', if the latter exists. In either case I don't
think we need regex.

Murray

...........................................................................
Murray Altheim <murray07 at altheim.com>                           ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

      Boundless wind and moon - the eye within eyes,
      Inexhaustible heaven and earth - the light beyond light,
      The willow dark, the flower bright - ten thousand houses,
      Knock at any door - there's one who will respond.
                                      -- The Blue Cliff Record

Reply via email to