[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-rdf
Subject: Re: Creating nodes in my namespace?
From: Neil Deakin <ndeakin () sympatico ! ca>
Date: 2003-10-02 3:18:12
[Download RAW message or body]
Gavin Doughtie wrote:
> First, that worked brilliantly. Thank you.
>
> I now have a more subtle question -- why doesn't the code below remove
> the "labelTarget" from the graph? The "addTarget" works fine, but the
> "removeTarget" above it does not. (gActiveDataSource is an rdfds
> RDFDataSource):
>
> function labelUpdate(value)
> {
> var labelTarget = kNamespaceURIBase + "#label";
> var propertiesTarget = kNamespaceURIBase + "#properties";
> var propNode = gActiveDataSource.getNode(gActiveStep + ":properties");
> var properties = propNode.getTarget(propertiesTarget);
> properties.removeTarget(propertiesTarget, labelTarget); // <-- does
> not remove the target
> properties.addTarget(labelTarget, value); // <-- correctly adds the
> target, however
> }
>
You probably mean
propNode.removeTarget(labelTarget, properties);
/ Neil
_______________________________________________
Mozilla-rdf mailing list
Mozilla-rdf@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-rdf
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic