xdi message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: new XDI operation $set ?
- From: Markus Sabadello <markus.sabadello@xdi.org>
- To: OASIS - XDI TC <xdi@lists.oasis-open.org>
- Date: Sat, 14 Feb 2009 08:19:10 +0100
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
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]