Tuesday, October 06, 2009

CDK Molecules in RDF

Yesterday, I finally got around to starting a branch on adding RDF support to the CDK; in particular, write the CDK data model ontology in OWL and serialization to and from RDF using the ontology. The framework is now set up, but I have yet to formalize all bits and pieces of the CDK data model in classes and properties. Just as a preview, here is what a very basic bit of CDK model in RDF looks like (N3 format):
@prefix cdk:     <> .

      a       cdk:Atom ;
      cdk:symbol "C" .

      a       cdk:Molecule ;
      cdk:hasAtom  .
Still rather verbose, but very flexible. I have even been thinking of an XHTML+RDFa writer...