DJ Adams

XML Scripting, data manipulation, and RDF

Can there be native support for XML as a data type?

I’ve just read Jon’s latest post on XML Scripting, which mentions Adam Bosworth’s thoughts about an XML scripting language that could natively support XML.

While the advent of XML scripting sounds fascinating, I’ve also been wondering about RDF enabling us to “gracefully integrate with the world of objects” and enhance the “self-describing nature of XML”. Yes, it’s my current area of interest (read: I’m vacuuming as much information as I can about it right now), and this by itself is likely to taint my vision somewhat. But reading what was quoted from Adam immediately made me think of some of RDF’s features (or should I say ‘nature’, I guess I’m not trying to sell it):

Now it’s clear that XML is not RDF. There’s the bootstrapping issue with RDF applications of which we’re all aware. There’s no magic wand, but there are ways (such as transformations to wring out RDF essence from ‘flat’ XML) to get going. And in the context where REST, web services, business data, and the focus on resources (URIs) intersect, RDF – as a technology for describing, sharing and linking business data – seems too significant to ignore.

Going back to Adam’s quote that sparked this post, I am curious about the ‘native support’ of XML as a data type; my limited imagination cannot see how that might happen without some sort of serialization/deserialisation (will a term like ‘serdes’ be this decade’s equivalent of ‘modem’?). I am ready and willing to be enlightened :-) The great thing about RDF is that there is already a bounty of software (storage mechanisms, model and query tools, serializers and deserialisers) that can work with RDF in many existing programming languages.

Anyway, plenty to ponder. Life is good.