← Prev in month
← Prev in thread
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
← Prev in month
← Prev in thread