neosemantics icon indicating copy to clipboard operation
neosemantics copied to clipboard

Neo4j 4.0.1 fails to import ontologies

Open StrangeTcy opened this issue 5 years ago • 1 comments

On Ubuntu 18.04 with neo4j 4.0.1 and neosemantics 3.5.0.4 (latest release at the time of this writing) I try to reproduce the results from quickgraph #9, but running the

CALL semantics.importOntology( "http://www.nsmntx.org/2019/10/clothingMaterials", "Turtle", { keepLangTag: true, handleMultival: 'ARRAY'})

query results in an error:

Failed to invoke procedure semantics.importOntology: Caused by: java.lang.NoSuchMethodError: 'org.neo4j.graphdb.schema.Schema org.neo4j.graphdb.GraphDatabaseService.schema()'

At the same time, a simple call semantics.importOntology() gets an expected error about no arguments being provided. ETA: it's the same for semantics.importRDF() and, so, quickgraph #10

My guess is that neosemantics 3.5 can't find some method in neo4j 4.0 due to some renaming, but probably that's not the cause of this.

StrangeTcy avatar Mar 16 '20 13:03 StrangeTcy

Yes, the 3.5.x releases of neosemantics were not compatible with Neo4j 4.0. Hopefully you'll be able to make it work with the 4.0.x release. The syntax will change a bit, as described in the migration guide, but it should be pretty straightforward: CALL n10s.graphconfig.init({ keepLangTag: true, handleMultival: 'ARRAY'}); CALL n10s.onto.import.fetch("http://www.nsmntx.org/2019/10/clothingMaterials", "Turtle");

Please comment if you find any issue.

Cheers,

JB.

jbarrasa avatar May 18 '20 02:05 jbarrasa