https://github.com/orientechnologies/orientdb/issues/4220

Hi

OrientDB rc3 is using openrdf 2.6

Loading RDF with a reduced file containing one single line like
http://dbpedia.org/resource/Futurama_(TV_series)
http://www.w3.org/1999/02/22-rdf-syntax-ns#typehttp://www.w3.org/2004/02/skos/core#Concept
.

And having put each URL in a structure spo,

The code
sc.addStatement(
    vf.createURI(spo.s), 
    vf.createURI(spo.p), 
    vf.createURI(spo.o), 
    importgraphurl );
sc.commit();

generates the exception below (because of the parenthesis in the url).

I opened an issue because I think, this and other "specialities" like
"Commas in URL, Semicolon in URL" in URL should be handled properly -
without exceptions.
Is there any workaround for me in order to get triples containing
parenthesis/commas/semicolon in URL loaded?

URL encoding is here not the solution -> it generates another kind of
exception.

Thanks
Regards
Fabio


com.orientechnologies.orient.core.index.OIndexException: Error during
insertion of key in index
at
com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:141)
at
com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:52)
at
com.orientechnologies.orient.core.index.OIndexAbstract.putInSnapshot(OIndexAbstract.java:871)
at
com.orientechnologies.orient.core.index.OIndexAbstract.applyIndexTxEntry(OIndexAbstract.java:1051)
at
com.orientechnologies.orient.core.index.OIndexAbstract.addTxOperation(OIndexAbstract.java:685)
at
com.orientechnologies.orient.core.tx.OTransactionOptimistic$CommitIndexesCallback.run(OTransactionOptimistic.java:99)
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:927)
at
com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:491)
at
com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:148)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2412)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2382)
at
com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.commit(OrientTransactionalGraph.java:161)
at
com.tinkerpop.blueprints.oupls.sail.GraphSailConnection.commitInternal(GraphSailConnection.java:74)
at
org.openrdf.sail.helpers.SailConnectionBase.commit(SailConnectionBase.java:305)
at com.semweb.load.OrientDBLoader.load_nt_file(OrientDBLoader.java:357)
at com.semweb.load.OrientDBLoader.traverse_dir(OrientDBLoader.java:517)
at com.semweb.load.OrientDBLoader.main(OrientDBLoader.java:177)
Caused by:
com.orientechnologies.orient.core.index.sbtree.local.OSBTreeException:
Error during index update with key #10
<https://github.com/orientechnologies/orientdb/issues/10>:20178499 and
value true
at
com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.put(OSBTreeBonsaiLocal.java:308)
at
com.orientechnologies.orient.core.db.record.ridbag.sbtree.OIndexRIDContainerSBTree.add(OIndexRIDContainerSBTree.java:137)
at
com.orientechnologies.orient.core.db.record.ridbag.sbtree.OIndexRIDContainerSBTree.add(OIndexRIDContainerSBTree.java:47)
at
com.orientechnologies.orient.core.db.record.ridbag.sbtree.OIndexRIDContainer.add(OIndexRIDContainer.java:146)
at
com.orientechnologies.orient.core.db.record.ridbag.sbtree.OIndexRIDContainer.add(OIndexRIDContainer.java:44)
at
com.orientechnologies.orient.core.index.OIndexMultiValues.put(OIndexMultiValues.java:133)
... 16 more
Caused by: java.lang.NullPointerException
at
com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation.releasePage(OAtomicOperation.java:151)
at
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.releasePage(ODurableComponent.java:128)
at
com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.findBucket(OSBTreeBonsaiLocal.java:1241)
at
com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.put(OSBTreeBonsaiLocal.java:262)
... 21 more


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to