Jena is a freely-available Java API for processing RDF
See the article Using the Jena API to process RDF or the project home page on SourceForge at jena.sourceforge.net.