[Jslib] Re: RDF redesign

Martin T. Kutschker Martin.T.Kutschker@blackbox.net
Wed, 7 Nov 2001 11:13:46 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0030_01C1677D.44786B80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

  Eric Plaster <plaster@urbanrage.com> schrieb in im Newsbeitrag: =
public.mozdev.jslib/3BD88800.3090502@urbanrage.com...

  Ok, I said that I was going to work on this back in Aug, but got =
distracted by a lay off.  So I'm going to start work on it again (see my =
posting here on 8/8).  I'll be checking in stuff into libraries/rdf =
(which currently doesn't exist) so I shouldn't be getting in anyones =
way.

  If anyone has any suggestions, shoot them my way.  My goals:

    a.. Full compatability with all rdfs (no magic)=20
Magic is a tricky thing :-) Though I think it could still come in handy. =
Perhaps we could use special classes with magic or magic modes. Anyway, =
I had an idea for magic:

RDF(...., "urn:base", "marker")

Marker is eg "data" or "root, but may be empty. Magic only comes into =
effect if a node starts with a colon:

"urn:base:somechild" -> "urn:base:somechild"=20
":somechilde" -> "urn:base:somechild"
"urn:otherbase" -> "urn:otherbase"

I know we have seen now, that we don't have to have a single "root " for =
a given datasource but working from a root within the graph (using =
"magic") might still come in handy. Perhaps the "root magic" should move =
away from the constructor to somewhere else (to some analogy of =
container utils?),

Masi

------=_NextPart_000_0030_01C1677D.44786B80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>Eric Plaster &lt;<A=20
  href=3D"mailto:plaster@urbanrage.com">plaster@urbanrage.com</A>&gt; =
schrieb in=20
  im Newsbeitrag: <A=20
  =
href=3D"mailto:public.mozdev.jslib/3BD88800.3090502@urbanrage.com">public=
.mozdev.jslib/3BD88800.3090502@urbanrage.com</A>...</DIV><BR>Ok,=20
  I said that I was going to work on this back in Aug, but got =
distracted by a=20
  lay off. &nbsp;So I'm going to start work on it again (see my posting =
here on=20
  8/8). &nbsp;I'll be checking in stuff into libraries/rdf (which =
currently=20
  doesn't exist) so I shouldn't be getting in anyones way.<BR><BR>If =
anyone has=20
  any suggestions, shoot them my way. &nbsp;My goals:<BR>
  <UL>
    <LI>Full compatability with all rdfs (no magic) =
</LI></UL></BLOCKQUOTE>
<DIV dir=3Dltr>Magic is a tricky thing :-) Though I think it could still =
come in=20
handy. Perhaps we could use special classes with magic or magic modes. =
Anyway, I=20
had an idea for magic:</DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr>RDF(...., "urn:base", "marker")</DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr>Marker is eg "data" or "root, but may be empty. Magic =
only comes=20
into effect if a node starts with a colon:</DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr>"urn:base:somechild" -&gt; "urn:base:somechild" </DIV>
<DIV dir=3Dltr>":somechilde" -&gt; "urn:base:somechild"</DIV>
<DIV dir=3Dltr>"urn:otherbase" -&gt; "urn:otherbase"</DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr>I know we have seen now, that we don't have to have a =
single "root=20
" for a given datasource but working from a root within the graph (using =

"magic") might still come in handy. Perhaps the "root magic" =
should&nbsp;move=20
away from the constructor to somewhere else (to some analogy of =
container=20
utils?),</DIV>
<DIV dir=3Dltr>&nbsp;</DIV>
<DIV dir=3Dltr>Masi</DIV></BODY></HTML>

------=_NextPart_000_0030_01C1677D.44786B80--