[Jslib] Re: objects as properties in the magic format

Eric Plaster plaster@talkware.net
Tue, 29 May 2001 10:57:25 -0500


--------------936BDE566D9A0877B576F2C7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Ya, when I wrote this class it was to implement a tree algorithm (i.e. adding
seq, nodes and node attributes).  That is the way the class if focused.  There
is obviously more to rdf that that, and we need to work on rdf.js to make it an
easy to use interface that can manipulate any rdf and handle all rdf
information.

I appologize for not giving you more to go on.  You'll probably have to grab
the datasource directly (that's why I made an accessor to it) and manipulate
the datasource the old fasioned way :)

-eric

"Martin T. Kutschker" wrote:

> Kevin Watt <wattk@seattleu.edu> schrieb in im Newsbeitrag:
> public.mozdev.jslib/ONELJGJNDELKCFIPGILGOEBJCLAA.wattk@seattleu.edu...
> > Thanks Masi,
> >
> > How would I go about using the standard setAttribute(node, name, value)
> > format with a resource property?  I can't figure out how to pass it a node
> > object.
>
> node always refers to the node's name (ie about property), never to any
> object.
>
> > I tried gRDF.setAttribute(node, "resource", "#Author"), but it created:
> >   <RDF:Description about="urn:books:thisbook:chapter2:jumpingBird">
> >     <SIMPLE:resource>#Author</SIMPLE:resource>
> >   </RDF:Description>
> > Which obviously isn't right.  Any tips?
>
> Not right now. Though, you could try and access the datasource directly
> (gRDF.dsource) and work with it. The rdf class probably needs some
> revamping. Suggestions and improvements are welcome.
>
> > The other information was just to hopefully clarify what I was hoping to
> do.
> > The example I used just allows two nodes to have an attribute named
> > 'property' that both pointed at the same node.
>
> I think I understand now.
>
> Masi

--
----
Eric Plaster                    Universal Talkware Corp
Senior Software Engineer        (612)843-6711
plaster@talkware.net            http://www.talkware.net



--------------936BDE566D9A0877B576F2C7
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<br>Ya, when I wrote this class it was to implement a tree algorithm (i.e.
adding seq, nodes and node attributes).&nbsp; That is the way the class
if focused.&nbsp; There is obviously more to rdf that that, and we need
to work on rdf.js to make it an easy to use interface that can manipulate
any rdf and handle all rdf information.
<p>I appologize for not giving you more to go on.&nbsp; You'll probably
have to grab the datasource directly (that's why I made an accessor to
it) and manipulate the datasource the old fasioned way :)
<p>-eric
<p>"Martin T. Kutschker" wrote:
<blockquote TYPE=CITE>Kevin Watt &lt;wattk@seattleu.edu> schrieb in im
Newsbeitrag:
<br>public.mozdev.jslib/ONELJGJNDELKCFIPGILGOEBJCLAA.wattk@seattleu.edu...
<br>> Thanks Masi,
<br>>
<br>> How would I go about using the standard setAttribute(node, name,
value)
<br>> format with a resource property?&nbsp; I can't figure out how to
pass it a node
<br>> object.
<p>node always refers to the node's name (ie about property), never to
any
<br>object.
<p>> I tried gRDF.setAttribute(node, "resource", "#Author"), but it created:
<br>>&nbsp;&nbsp; &lt;RDF:Description about="<a href="urn:books:thisbook:chapter2:jumpingBird">urn:books:thisbook:chapter2:jumpingBird</a>">
<br>>&nbsp;&nbsp;&nbsp;&nbsp; &lt;SIMPLE:resource>#Author&lt;/SIMPLE:resource>
<br>>&nbsp;&nbsp; &lt;/RDF:Description>
<br>> Which obviously isn't right.&nbsp; Any tips?
<p>Not right now. Though, you could try and access the datasource directly
<br>(gRDF.dsource) and work with it. The rdf class probably needs some
<br>revamping. Suggestions and improvements are welcome.
<p>> The other information was just to hopefully clarify what I was hoping
to
<br>do.
<br>> The example I used just allows two nodes to have an attribute named
<br>> 'property' that both pointed at the same node.
<p>I think I understand now.
<p>Masi</blockquote>

<pre>--&nbsp;
----
Eric Plaster&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Universal Talkware Corp
Senior Software Engineer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (612)843-6711
plaster@talkware.net&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.talkware.net">http://www.talkware.net</A></pre>
&nbsp;</html>

--------------936BDE566D9A0877B576F2C7--