Sean mentioned the idea of using YAML for MapServer configuration files instead of XML. I wholeheartedly agree. The most important thing for a configuration file is that it is easily readable and editable. YAML’s simpler syntax and conciseness is a big win in this case.
After reading his article, a brilliant idea occurred to me (well, at least I thought it was brilliant!) – use YAML to serialize RDF. RDF’s graph data model maps poorly onto XML’s hierarchical model, making RDF’s XML serialization format more complicated than RDF itself. This complexity has been the subject of endless debates and has led to a number of alternative syntaxes over the years, such as Notationm3, Turtle, RPV, etc. Yet none of them have have been widely adopted.
XML’s main advantages, compared to other serialization formats, are its extensibility, strong internationalization support and strong tool support.
Just like with XML, you can serialize custom vocabularies using YAML. However, YAML lacks a schema language. But if you’re using RDF and require a schema, then clearly you will use RDF schema. RDF schema reuses the RDF XML serialization format, so I would take the same approach with YAML and use it to both encode RDF and RDF schemas.
As far as implementations, the only example I could find was a Perl module
that hasn’t bee updated since 2003. Now that some of the hype around XML has died own, and YAML has established itself as a legitimate format, it seems like a good time to revisit this idea.