HP has an API called Jena for manipulating RDF in Java. I'm definitely going to check this out.