neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
816 stars 142 forks source link

importRDF won't work in Neo4j Enterprise 3.1.2 (Educational) #55

Open jimjonesbr opened 6 years ago

jimjonesbr commented 6 years ago

I've been struggling to import my N-Triples file into neo4j using the neosemantics plugin. When I try to import my RDF file ...

CALL semantics.importRDF("file:///home/jones/wmss/data/statements.nt","N-Triples",{shortenUrls: true});

... I get the following error message:

Failed to invoke procedure semantics.importRDF: Caused by: java.lang.RuntimeException: Error executing in separate transaction: java.lang.UnsupportedOperationException: Creating new transactions and/or spawning threads are not supported operations in store procedures.

I've tried everything I could find in the web and had no success, including the following changes in the neo4j.conf:

dbms.memory.heap.initial_size=15g
dbms.memory.heap.max_size=20g
dbms.unmanaged_extension_classes=semantics.extension=/rdf
dbms.connectors.default_listen_address=0.0.0.0
dbms.security.procedures.whitelist=semantics.*

Ubuntu Server 16.04 LTS Neo4j Enterprise 3.1.2 (Educational License) Neosemantics: neosemantics-3.4.0.1.jar

What am I missing here? Any suggestion will be much appreciated. Thanks!

Note: Using the community / desktop editions the import works just fine.

jbarrasa commented 6 years ago

Hi Jim, thanks for trying out neosemantics and sorry for the late reply.

I believe you're having a version compatibility issue: neosemantics-3.4.0.1 is built for Neo4j 3.4.x Can you upgrade your neo4j instance to a more recent version?

The earliest version of neosemantics is 3.2.0.1 built for Neo4j 3.2.x (check the releases page https://github.com/jbarrasa/neosemantics/releases) Might be worth a try on your 3.1 if upgrading is not an option?

I hope this helps.

JB.

jimjonesbr commented 6 years ago

Hi there! Thanks for the answer, unfortunately it reached me on my vacations: that's why the late answer.

I wish I could upgrade the version of my Neo4j Enterprise. Unfortunately, the Educational License just covers the Enterprise Server 3.1.2. I definitely could get rid of this version and install a newer one, but our research group cannot afford the newest enterprise.

Which version of neosemantics would be compatible with Neo4j 3.1.2?

Greetings from the University of Münster, Jim

jbarrasa commented 6 years ago

Hi Jim, I've not tried it but I guess, all we'd need to do is build it against 3.1 and that should do the job. However, and before we do any of that, the version lock on your license does not make sense to me. You should be able to upgrade to the latest version of our software within your Educational License. Let's take this offline. Can you email me on jesus at 'the graph database that we love' dot com. Thanks, JB