Reading the oBIX spec on the train (wondered what that pod was) and wondering whether there are any examples floating around of obixMod et al?
brianMon 1 Nov 2010
The spec obviously has lots of examples, but oBIX is just another way to serialize object trees. Like JSON is is better for programming data structures because it doesn't treat everything like a string: you have ints, bools, lists, etc. But it goes beyond JSON to include date/time types, typing information, and REST based hyperlink references.
Perhaps the coolest aspect of oBIX is that "schemas" are defined using prototype inheritance which works great for XML. For example the schema (or in oBIX the contract) for Person might be:
msl Mon 1 Nov 2010
Reading the oBIX spec on the train (wondered what that pod was) and wondering whether there are any examples floating around of obixMod et al?
brian Mon 1 Nov 2010
The spec obviously has lots of examples, but oBIX is just another way to serialize object trees. Like JSON is is better for programming data structures because it doesn't treat everything like a string: you have ints, bools, lists, etc. But it goes beyond JSON to include date/time types, typing information, and REST based hyperlink references.
Here is a simple example:
Perhaps the coolest aspect of oBIX is that "schemas" are defined using prototype inheritance which works great for XML. For example the schema (or in oBIX the contract) for Person might be: