Copyright © 2012 the Contributors to the Cloud Computing 1.0 Specification, published by the Cloud Computing Community Group under the W3C Community Final Specification Agreement (FSA). A human-readable summary is available.
This specification was published by the Cloud Computing Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Final Specification Agreement (FSA) other conditions apply. Learn more about W3C Community and Business Groups.
This specification details a mapping between the Information Items [INFOSET] in a cloud storage element and a set of Web Storage items [STORAGE] key/value pairs. (In this specification, the term "storage element" refers to the former, while the term "storage item" refers to the latter)
In this mapping, the XML content [XML] of a node's top-level "storage" element constitutes the content (excluding nested "storage" sub-elements) of a web storage item having the key: "<root>"
Each nested "storage" element corresponds to a storage item having a key formed from the path [XPATH] (relative to the storage root) in which the element is located, the content of which is formed from the content (also excluding "storage" sub-elements) of the element
Where this storage element has a "storage" attribute, the generated storage item has a name formed from the content of the attribute, whose value is formed from the data resulting from resolving its IRI, encoded in an encoding the MIME encoding [MIME] of which is given in a storage item whose name is formed from concatenating the string ":format" to the value of the attribute (used where the resolved data is non-XML)
Example
The example below consists of an XML encoding of an example "storage" element, followed by the set of corresponding storage items, expressed in a JSON-like [JSON] representation (assuming, in the example, that the IRI "http//www.example.com#data" resolves to the string "abc" having the MIME type "def/ghi")
<storage>
<a />
<b />
<c>
<storage>
<d />
</storage>
<storage storage=
"http://www.example.com#data" />
</c>
</storage>
{
"<root>": "<a /><b /><c></c>",
"c": "<d />",
"http://www.example.com#data": "abc",
"http://www.example.com#data:format": "def/ghi"
}