jgrzebyta / triple-loader

Framework and CL tools for hight throughput manipulation on RDF statements (triples and quads).
GNU Lesser General Public License v3.0
10 stars 0 forks source link

After rdf4j upgrade add method does not work #13

Closed jgrzebyta closed 8 years ago

jgrzebyta commented 8 years ago

After update RDF4J version to 2.0.1method add does not work in connection made from SailRepository.

After command boot run-test -t load-data-test there are logs:

#{"src" "tests"}
Run test: load-data-test
27:19.349 [off-pool-0] DEBUG t.repository -- Storage path:  /tmp/rdf4j-loader-dfDShXiuW.3139730048091281303683
27:19.374 [off-pool-0] TRACE triple.loader -- File data: tests/beet.rdf [exists: true, readable: true]
27:19.374 [off-pool-0] TRACE triple.loader -- data type: RDF/XML (mimeTypes=application/rdf+xml, application/xml, text/xml; ext=rdf, rdfs, owl, xml)
27:19.374 [off-pool-0] TRACE triple.loader -- repository instance: org.eclipse.rdf4j.sail.lucene.LuceneSail@6176270d
27:19.374 [off-pool-0] DEBUG triple.loader -- Initialize repository
27:19.432 [off-pool-0] INFO  o.e.r.s.l.LuceneIndex -- creating new Lucene index in directory MMapDirectory@/tmp/rdf4j-loader-dfDShXiuW.3139730048091281303683/lucenedir lockFactory=org.apache.lucene.store.NativeFSLockFactory@2b4c6439
27:19.629 [off-pool-0] TRACE triple.loader -- connection instance:  #object[org.eclipse.rdf4j.repository.sail.SailRepositoryConnection 0x1b95af0 org.eclipse.rdf4j.sail.lucene.LuceneSailConnection@178700d3]
27:19.629 [off-pool-0] DEBUG triple.loader -- Repository:  /tmp/rdf4j-loader-dfDShXiuW.3139730048091281303683
27:19.636 [off-pool-0] DEBUG triple.loader -- RDF handler: null
27:19.639 [off-pool-0] TRACE triple.loader -- Isolation level:  nil
27:19.640 [off-pool-0] DEBUG triple.loader -- is repository active:  true
27:19.640 [off-pool-0] DEBUG triple.loader -- Using .add method
27:19.643 [off-pool-0] DEBUG triple.loader -- finish...

But no triples were loaded:

FAIL in (load-data-test) (loader_test.clj:45)
expected: (= expected statement-total)
  actual: (not (= 68 0))
jgrzebyta commented 8 years ago

RDF4J unit tests against SailRepositoryConnection#add methods were passed.