Monday, August 14, 2006

Getting JRDF back to 500K

JRDF does not required the use Spring in production code for anything but the user interface. You can remove Spring (about 2.5MB of the JRDF SPARQL GUI) and still be able to create a graph using:

LongIndex[] longIndexes = {new LongIndexMem(), new LongIndexMem(), new LongIndexMem()};
GraphFactory factory = new GraphFactoryImpl(longIndexes, new NodePoolMemImpl());

In 0.4.1 an RDF parser is easier to create than before, all that's requires is:

Parser parser = new GraphRdfXmlParser(graph);

JRDF 0.4.1 will still be a stand-alone jar file that can be used outside of Spring.
Post a Comment