Markus, yes, this all makes sense to me,
and it seems like a sensible optimization. Let’s discuss on today’s
call.
=Drummond
From:
[mailto:] On Behalf Of Markus Sabadello
Sent: Friday, February 13, 2009
11:19 PM
To: OASIS - XDI TC
Subject: [xdi] new XDI operation
$set ?
Hi,
Sometimes I find myself in situations in which I want to either add or update a
statement in an XDI graph.
E.g. I want to put the following statement into a graph
=markus
+name
"Markus Sabadello"
Today $add and $mod behave like this:
If I use $add, and the statement exists already in the graph, I get an error.
If I use $mod, and the statement doesn't exist in the graph, I get an error.
Right?
I'd like to have an operation ($set) that always works, i.e. that behaves like
$add if the statement doesn't exists, and like $mod if the statement exists.
So I could just do
=markus
$set
/
=markus
+name
"Markus
Sabadello"
And I wouldn't have to worry if it exists already or not.
Does that make sense?
Markus