|
Hi, I build the trunk (imported with SCM Maven). The buid and test are OK. I didn't add any modyfication. I tried my new .jar with MySQL : StoreDesc storeDesc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.MySQL) ; --> OK JDBC.loadDriverMySQL(); --> OK String jdbcURL = url ; SDBConnection conn = new SDBConnection(jdbcURL, user_db, pw_db) ; --> OK store = SDBFactory.connectStore(conn, storeDesc) ; --> OK store.getTableFormatter().create(); --> OK store.getTableFormatter().dropIndexes(); --> OK store.getTableFormatter().truncate(); --> OK // connect store to dataset Dataset dataset = SDBFactory.connectDataset(store); --> OK // prepare the model Model tmpModel = ModelFactory.createDefaultModel(); --> OK FileManager.get().readModel( tmpModel, fichier ); --> OK // add the model into the dataset dataset.getDefaultModel().add(tmpModel); --> PROBLEM Exception in thread "main" java.lang.NoSuchMethodError: com.hp.hpl.jena.sparql.core.Quad.isDefaultGraphGenerated(Lcom/hp/hpl/jena/graph/Node;)Z at com.hp.hpl.jena.sdb.graph.GraphSDB.createPrefixMapping(GraphSDB.java:100) at com.hp.hpl.jena.sparql.graph.GraphBase2.getPrefixMapping(GraphBase2.java:172) at com.hp.hpl.jena.rdf.model.impl.ModelCom.getPrefixMapping(ModelCom.java:769) at com.hp.hpl.jena.rdf.model.impl.ModelCom.withDefaultMappings(ModelCom.java:806) at com.hp.hpl.jena.rdf.model.impl.ModelCom.<init>(ModelCom.java:54) at com.hp.hpl.jena.rdf.model.impl.ModelCom.<init>(ModelCom.java:50) at com.hp.hpl.jena.rdf.model.ModelFactory.createModelForGraph(ModelFactory.java:146) at com.hp.hpl.jena.sparql.core.DatasetImpl.graph2model(DatasetImpl.java:112) at com.hp.hpl.jena.sparql.core.DatasetImpl.getDefaultModel(DatasetImpl.java:54) at utils.Ontology.chargeOnto(Ontology.java:79) If I use the sdb-1.3.4.jar, there's no problem. Do you have any idea ? Thank in advance, Xavier --
Xavier
Aimé –
Ingénieur de recherche
|
- Problem with trunk / maven of SDB xavier aimé
- Re: Problem with trunk / maven of SDB Andy Seaborne
- Re: Problem with trunk / maven of SDB xavier aimé
- Re: Problem with trunk / maven of SDB Andy Seaborne
- Re: Problem with trunk / maven of SDB xavier aimé
