[Mulgara-general] mulgara with jrdf
Valeriano Sandrucci
vsand74 at hotmail.com
Thu Jun 21 08:53:24 CDT 2007
Hi,
I created a project which use the following libraries:
- jrdf-0.4.1.1.jar
- mulgara-1.0.0.jar (downloaded from: http://mulgara.org/download.html)
- descriptor-1.0.0.jar
- driver-1.0.0.jar
- itql-1.0.0.jar
And I wrote the following code:
public void testCreateEmptyModel() throws Exception {
String hostname = InetAddress.getLocalHost().getCanonicalHostName();
URI serverURI = new URI("rmi", hostname, "/server1", null);
SessionFactory sessionFactory = SessionFactoryFinder.newSessionFactory(serverURI, true );
JRDFSession session = (JRDFSession)sessionFactory.newJRDFSession();
//create a new Mulgara Model
URI modelURI = new URI("rmi", hostname, "/server1", "exampleGraph" );
URI modelType = new URI("http://mulgara.org/mulgara#Model");
session.createModel(modelURI, modelType);
Graph g = AbstractGraphFactory.createGraph( session, modelURI );
assertNotNull( g );
}
But AbstractGraphFactory was not found. Where did I go wrong?
Thanks,
vsand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mulgara.org/pipermail/mulgara-general/attachments/20070621/a77aac73/attachment.html
More information about the Mulgara-general
mailing list