Hi Augusto,
Le vendredi 24 janvier 2014 à 21:31 +0100, Augusto Ciuffoletti a écrit :
> Time ago someone proposed to use XML as a tool to describe OCCI. As aIt exists some JSON schema (http://json-schema.org/ ) with, if I
> result we now have the XML description of high order concepts (kinds),
> and an XSD that binds the way in which such higher order concepts are
> described. This is certainly a result.
>
>
> But XML might be useful also to describe low order concepts, i.e.
> resources, which is a different (though tightly related) issue. We
> have an example today in the "erocci" discussion. The fact of having a
> clean higher order description based on XML/XSD wired in the engine
> does not help us in clarifying an otherwise straightforward detail
> about the way resources are described. This is because the JSON
> rendering is certainly useful for practical reasons, but there is no
> XSD for JSON (at least to my knowledge).
>
undestand correctly, some validators and parsers, but I've never used
them. I suppose the JSON spec should include a schema of the kind.
I have not emaphasized on that yet, but the occi.xsd schema contains
>
> My idea is that having an XSD also for resources (that describes the
> syntax for resources, not for kinds) would be beneficial: it can be
> probably derived from the JSON document, but once defined it can be
> used to automate the validation of XML resource descriptions, and for
> all those descriptive languages for which an XML mapping exists (JSON
> included).
>
also description of resources and kinds. Nevertheless, it is not yet
implemented completly in erocci, as I'm focusing on JSON rendering
first. Any comments welcome.
For the contributions ;) , just have a look at occi_parser_xml.erl and
occi_renderer_xml.erl
Cheers,
Jean
> _______________________________________________
>
> Comments?
>
> --
> Augusto Ciuffoletti
> Dipartimento di Informatica
> Università di Pisa
> 56100 - Pisa (Italy)
> occi-wg mailing list
> occi-wg@ogf.org
> https://www.ogf.org/mailman/listinfo/occi-wg
--
Jean Parpaillon
Open Source Consultant
Phone: +33 6 30 10 92 86
im: jean.parpaillon@gmail.com
skype: jean.parpaillon
linkedin: http://www.linkedin.com/in/jeanparpaillon/en
_______________________________________________
occi-wg mailing list
occi-wg@ogf.org
https://www.ogf.org/mailman/listinfo/occi-wg