GithubHelp home page GithubHelp logo

neo4j-labs / neosemantics Goto Github PK

View Code? Open in Web Editor NEW
780.0 42.0 136.0 10.05 MB

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧

Home Page: https://neo4j.com/labs/neosemantics/

License: Apache License 2.0

Java 81.83% HTML 16.29% Cypher 1.88%
rdf neo4j semantics ontologies knowledge-graph shacl linked-data

neosemantics's People

Contributors

adam-cowley avatar arkanemre avatar conker84 avatar dependabot[bot] avatar fanavarro avatar ikwattro avatar jbarrasa avatar jexp avatar jonmcalder avatar lidiazuin avatar manonthegithub avatar mneedham avatar rnavarropiris avatar samuraraujo avatar tdesjardins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neosemantics's Issues

Fails to load RDF/XML

I tried importing my own rdf, and the French food rdf. Both give the error message
The required index on :Resource(uri) could not be found
Attached part of the file, for testing (remove the .txt extension)
I used the statement:
CALL semantics.importRDF("file:////home/marcel/Downloads/food.rdf" , "RDFXML", true, true , 9000)
(with various combinations of true and false flags)
food.rdf.txt

Only [semantics.runConsistencyChecks] available as procedure

I'm experimenting with importing an RDF file in to a local Neo4J instance using your tools, but for some reason when I build the jar and add to Neo4J the only procedure available is [semantics.runConsistencyChecks]

I'm using maven to build the package - am I missing a command? I'm a bit lost and would love to play around with your plugin.

Problem with literal with a language tag

For example we import data with language tags:

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix show: <http://example.org/vocab/show/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

show:218 show:localName "That Seventies Show"@en .                 # literal with a language tag
show:218 show:localName 'Cette Série des Années Soixante-dix'@fr . # literal delimited by single quote
show:218 show:localName "Cette Série des Années Septante"@fr-be .  # literal with a region subtag

https://www.w3.org/TR/turtle/#turtle-literals

The result of semantics.importRDF:

  • terminationStatus: OK
  • triplesLoaded: 3

But MATCH (P:Resource) RETURN P return only one node with lost of information about language labels:

{
    "http://example.org/vocab/show/localName":"Cette Série des Années Septante",
    "uri":"http://example.org/vocab/show/218"
} 

Neo4j 3.3.1 Desktop Not starting

Neo4j is not able to start the server. Seems the problem as in other similar issues regarding the plugin. Is the plugin available for v3.3.1 - if not how to download v3.2.0? See log code below:

2017-12-08 10:12:52.824+0000 INFO ======== Neo4j 3.3.1 ======== 2017-12-08 10:12:52.937+0000 INFO Starting... 2017-12-08 10:12:58.306+0000 INFO Bolt enabled on 127.0.0.1:7687. 2017-12-08 10:12:58.388+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@13330ac6' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@13330ac6' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@13330ac6' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79) at org.neo4j.server.enterprise.CommercialEntryPoint.main(CommercialEntryPoint.java:22) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@13330ac6' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211) ... 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\Users\00Tarik\AppData\Roaming\Neo4j Desktop\Application\neo4jDatabases\database-5af8e6ac-636d-457c-a1b7-5a9f365bf857\installation-3.3.1\data\databases\graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211) at org.neo4j.kernel.enterprise.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36) at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:75) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@64c63c79' failed to initialize. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:427) at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207) ... 9 more Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/impl/util/JobScheduler at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetPublicMethods(Class.java:2902) at java.lang.Class.getMethods(Class.java:1615) at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:451) at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:339) at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:639) at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) at java.lang.reflect.WeakCache.get(WeakCache.java:127) at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719) at org.neo4j.kernel.impl.util.DependenciesProxy.dependencies(DependenciesProxy.java:55) at org.neo4j.kernel.extension.KernelExtensions.getKernelExtensionDependencies(KernelExtensions.java:125) at org.neo4j.kernel.extension.KernelExtensions.init(KernelExtensions.java:58) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406) ... 12 more Caused by: java.lang.ClassNotFoundException: org.neo4j.kernel.impl.util.JobScheduler at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 28 more 2017-12-08 10:12:58.397+0000 INFO Neo4j Server shutdown initiated by request 2017-12-08 10:14:44.136+0000 INFO ======== Neo4j 3.3.1 ======== 2017-12-08 10:14:44.247+0000 INFO Starting... 2017-12-08 10:14:46.613+0000 INFO Bolt enabled on 127.0.0.1:7687. 2017-12-08 10:14:46.663+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@37e4d7bb' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@37e4d7bb' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@37e4d7bb' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79) at org.neo4j.server.enterprise.CommercialEntryPoint.main(CommercialEntryPoint.java:22) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@37e4d7bb' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211) ... 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\Users\00Tarik\AppData\Roaming\Neo4j Desktop\Application\neo4jDatabases\database-5af8e6ac-636d-457c-a1b7-5a9f365bf857\installation-3.3.1\data\databases\graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211) at org.neo4j.kernel.enterprise.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36) at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:75) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions@3f67593e' failed to initialize. Please see the attached cause exception "org.neo4j.kernel.impl.util.JobScheduler". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:427) at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207) ... 9 more Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/impl/util/JobScheduler at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetPublicMethods(Class.java:2902) at java.lang.Class.getMethods(Class.java:1615) at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:451) at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:339) at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:639) at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) at java.lang.reflect.WeakCache.get(WeakCache.java:127) at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719) at org.neo4j.kernel.impl.util.DependenciesProxy.dependencies(DependenciesProxy.java:55) at org.neo4j.kernel.extension.KernelExtensions.getKernelExtensionDependencies(KernelExtensions.java:125) at org.neo4j.kernel.extension.KernelExtensions.init(KernelExtensions.java:58) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406) ... 12 more Caused by: java.lang.ClassNotFoundException: org.neo4j.kernel.impl.util.JobScheduler at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 28 more 2017-12-08 10:14:46.667+0000 INFO Neo4j Server shutdown initiated by request WARNING: This command does not appear to be running with administrative rights. Some commands may fail e.g. Start/Stop 2017-12-08 10:25:48.071+0000 INFO ======== Neo4j 3.3.1 ======== 2017-12-08 10:25:48.140+0000 INFO Starting... 2017-12-08 10:25:49.903+0000 INFO Bolt enabled on 127.0.0.1:7687. 2017-12-08 10:25:49.929+0000 INFO Initiating metrics... 2017-12-08 10:25:57.848+0000 INFO Started. 2017-12-08 10:25:58.171+0000 INFO Mounted REST API at: /db/manage 2017-12-08 10:26:00.119+0000 INFO Remote interface available at http://localhost:7474/ WARNING: This command does not appear to be running with administrative rights. Some commands may fail e.g. Start/Stop 2017-12-08 10:33:01.412+0000 INFO ======== Neo4j 3.3.1 ======== 2017-12-08 10:33:01.469+0000 INFO Starting... 2017-12-08 10:33:03.343+0000 INFO Bolt enabled on 127.0.0.1:7687. 2017-12-08 10:33:03.378+0000 INFO Initiating metrics... 2017-12-08 10:33:10.539+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2a4cb8ae' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2a4cb8ae' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2a4cb8ae' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79) at org.neo4j.server.enterprise.CommercialEntryPoint.main(CommercialEntryPoint.java:22) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@2a4cb8ae' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211) ... 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\Users\00Tarik\AppData\Roaming\Neo4j Desktop\Application\neo4jDatabases\database-5af8e6ac-636d-457c-a1b7-5a9f365bf857\installation-3.3.1\data\databases\graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211) at org.neo4j.kernel.enterprise.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36) at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:75) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@5ac646b3' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot inherit from final class". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207) ... 9 more Caused by: java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) at java.lang.ClassLoader.loadClass(ClassLoader.java:411) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:141) at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:118) at org.neo4j.collection.PrefetchingRawIterator.peek(PrefetchingRawIterator.java:50) at org.neo4j.collection.PrefetchingRawIterator.hasNext(PrefetchingRawIterator.java:36) at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:91) at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:82) at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:275) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445) ... 11 more 2017-12-08 10:33:10.579+0000 INFO Neo4j Server shutdown initiated by request

Problem running sample from article

I too had issue getting the plug in to install, but I finally did. I tried a sample from article http://connected-data.london/2016/06/09/importing-rdf-data-neo4j/

I had to add another required parameter and got this to at least run:
CALL semantics.importRDF("http://fr.openfoodfacts.org/data/fr.openfoodfactws.org.product.rdf","RDF/XML5000",true,true,500)

The response is:
terminationStatus triplesLoaded namespaces extraInfo
KO 0 (empty) The required index on :Resource(uri) could not be found

What is wrong?

Compile error in LiteOntologyImporter

Hi,

I get a compile error on line 161 of "public class LiteOntologyImporter" .
Error:
(The method getName() is undefined for the type RDFFormat)
the line in question:
if (parser.getName().equals(format))
I havent had time to look into this....

kind regards,
Black

plugin does not import ttl file

I succeeded to install this plugin and checked it works correctly.

But, When I downloaded YAGO data (.ttl format) and then tried to import the file,

but, it cannot import it.

Some contents of the file as follows:

image

And, neosemantics shows as follows when i try to import it:

image

Could not parse JSONLD

Hi,

I use your stored procedure to import a JSON/JSON-LD file into Neo4j.
I get a error message: "Could not parse JSONLD"

However, I do check in the documentation that JSON-LD is supported by your tool.

How can I fix it please ?
Thanks in advance,
Best regards,

Neo.ClientError.Procedure.ProcedureCallFailed while importing N-Triples file into neo4j

Hello,
Here is my query to import N-Triples into my neo4j database,

CALL semantics.importRDF("file:///home/ak/Downloads/20170201.as-rel2.txt.33node.n3","N-Triples", { shortenUrls: true, typesToLabels: true, commitSize: 9000 }).

I am getting the below error while running it,

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure semantics.importRDF: Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String.

The above query was working few days before and suddenly it throws this error. I don't understand where there is a mistake. I tried to downgrade the .jar release but no luck.

Please help me.

Starting Neo4j failed

Hi when i try to start neo4j (v 3.0.6) with the fat jar generated by maven i get the following error:

2017-01-22 21:40:16.150+0000 INFO  Starting...
2017-01-22 21:40:17.102+0000 INFO  Bolt enabled on localhost:7687.
2017-01-22 21:40:23.501+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7a2331f0' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7a2331f0' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7a2331f0' was successfully initialized, but failed to start. Please see attached cause exception.
	at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
	at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:215)
	at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
	at org.neo4j.server.BlockingBootstrapper.start(BlockingBootstrapper.java:43)
	at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:67)
	at org.neo4j.server.CommunityEntryPoint.start(CommunityEntryPoint.java:38)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7a2331f0' was successfully initialized, but failed to start. Please see attached cause exception.
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
	at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
	at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:187)
	... 4 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.CommunityFacadeFactory, C:\Users\a.santurbano\Desktop\neo4j-community-3.0.6\data\databases\zeppelin
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
	at org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40)
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
	at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:55)
	at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
	... 6 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@54af8e71' was successfully initialized, but failed to start. Please see attached cause exception.
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
	at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
	at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
	... 11 more
Caused by: java.lang.IncompatibleClassChangeError: Implementing class
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:132)
	at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:110)
	at org.neo4j.collection.PrefetchingRawIterator.peek(PrefetchingRawIterator.java:50)
	at org.neo4j.collection.PrefetchingRawIterator.hasNext(PrefetchingRawIterator.java:36)
	at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:85)
	at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:77)
	at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:125)
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
	... 13 more

No others jar are included in the plugins dir.
Where am i wrong?

About dealing with an exception

When I invoke the procedure 'semantics.importRDF' it reports:
org.neo4j.driver.v1.exceptions.ClientException: Failed to invoke procedure semantics.importRDF: Caused by: org.openrdf.rio.UnsupportedRDFormatException: Did not recognise RDF format object Turtle (mimeTypes=text/turtle, application/x-turtle; ext=ttl)

Neo4j Not starting

Hello, When I want to start the server, I get this error:

C:\neo4j-enterprise-3.1.3\bin>neo4j
Usage: neo4j { console | start | stop | restart | status | install-service | uninstall-service } < -Verbose >

C:\neo4j-enterprise-3.1.3\bin>neo4j console
2017-04-06 19:46:20.699+0000 INFO  ======== Neo4j 3.1.3 ========
2017-04-06 19:46:20.902+0000 INFO  Starting...
2017-04-06 19:46:21.496+0000 INFO  Bolt enabled on localhost:7687.
2017-04-06 19:46:21.512+0000 INFO  Initiating metrics...
2017-04-06 19:46:25.492+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:230)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:68)
        at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@66204af3' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:202)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\neo4j-enterprise-3.1.3\data\databases\graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:199)
        at org.neo4j.graphdb.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36)
        at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:91)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'apoc.ApocKernelExtensionFactory$1@e77f58c' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:195)
        ... 9 more
Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/api/proc/Mode
        at apoc.schema.AssertSchemaProcedure.signature(AssertSchemaProcedure.java:152)
        at org.neo4j.kernel.impl.proc.ProcedureRegistry.register(ProcedureRegistry.java:53)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:103)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:76)
        at apoc.ApocKernelExtensionFactory$1.start(ApocKernelExtensionFactory.java:49)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 14 more
Caused by: java.lang.ClassNotFoundException: org.neo4j.kernel.api.proc.Mode
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 20 more

C:\neo4j-enterprise-3.1.3\bin>

How to Get Detailed Error?

I tried to import our ontology serialized in Turtle format. It ended with KO terminationStatus with extraInfo "Users". I searched the code-base, extraInfo suppose to show exception message. But in this case, it only shows "Users". How can I get some hint to fix the issue?

compiling code

Can you add some hints to the README how to install the procedure ?

Import is fine. Export gives "UndefinedError: Payload does not seem to be valid (JSON) data"

NEO4J: 3.4.6 Community version
neosemantics plugin: neosemantics-3.4.0.1.jar
OS: Win10

Hello! Install went fine: I moved the downloaded file "neosemantics-3.4.0.1.jar" to the "plugins" folder of neo4j installation, and re-started the server.

During restart ( ./neo4j console , after navigating to the bin folder in the installation location, from the Windows Power Shell), the console said:

INFO Mounted unmanaged extension [semantics.extension] at [/rdf]
2018-09-05 23:43:32.250+0000 WARN The following warnings have been detected with resource and/or provider classes:
WARNING: A HTTP GET method, public javax.ws.rs.core.Response semantics.extension.RDFEndpoint.exportOnto(org.neo4j.graphdb.GraphDatabaseService,java.lang.String), should not consume any entity.

The INFO part sounds good... unclear if the WARNING matters...

Inside the Neo4j Browser, all seemed good at first:

  1. :GET /rdf/ping replies {"ping":"here!"}

  2. call dbms.procedures() shows a long list of names, including "semantics.importRDF" and various other "semantics.XYZ" procedures

  3. Import of RDF seems perfect:
    call semantics.previewRDF("https://raw.githubusercontent.com/motools/musicontology/master/examples/clapton_perf/clapton.n3","Turtle", {})
    as expected creates a graph that seems to match the RDF file available from that location

So far so good....... BUT the Cypher endpoint does NOT work :(

Here's a Cypher query that works - it returns a node: MATCH (n:Person {name:"Juls"}) RETURN n

However, when I issue:
:POST /rdf/cypher "MATCH (n:Person {name:"Juls"}) RETURN n"

I get:

UndefinedError
UndefinedError: Payload does not seem to be valid (JSON) data

All my other attempts of obtaining RDF fail, too. For example:

:GET /rdf/describe/id?nodeid=35

(where 35 is the ID of an actual node) gives:

FetchURLError
FetchURLError: Could not fetch URL: "500 Server Error". This could be due to the remote server policy. See your web browsers error console for more information.

Screen shots attached.
neo4j semantic plugin bug1
neo4j semantic plugin bug2

The console is now giving many error messages (here's the first part):

2018-09-06 00:10:50.720+0000 INFO mimetipe in request: /
2018-09-06 00:10:50.720+0000 INFO Unrecognized serialization in accept header param. Defaulting to JSON-LD serialization
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-09-06 00:10:50.727+0000 WARN /rdf/describe/id com/fasterxml/jackson/databind/JsonMappingException
java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonMappingException
at org.eclipse.rdf4j.rio.jsonld.JSONLDWriterFactory.getWriter(JSONLDWriterFactory.java:31)
at org.eclipse.rdf4j.rio.Rio.createWriter(Rio.java:137)
at semantics.extension.RDFEndpoint$4.write(RDFEndpoint.java:388)
at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71)
at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57)

I'm attaching the debug.log file (trimmed to show everything from the restart on).

Your help will be appreciated; the company where I work is considering using Neo4j, but RDF export is absolutely needed. THANKS!
debug.log

Display issue in neo4j-browser for RDF imported with shortenUrls:false

When RDF was imported with full URI's as node labels, the node representation could not be properly customized in neo4j browser.

To reproduce, import the following ontology:

CALL semantics.importRDF("https://protege.stanford.edu/ontologies/pizza/pizza.owl","RDF/XML", { shortenUrls: false, typesToLabels: true, commitSize: 9000 })

and then run the following cypher query:

MATCH p=()-[r:`http://www.w3.org/2000/01/rdf-schema#subClassOf`]->() RETURN p LIMIT 25

All the nodes were in default grey color. From the UI, changing node color for http://www.w3.org/2002/07/owl#Class or http://www.w3.org/2002/07/owl#Class had no effect. It was also not possible to choose uri as node caption. The nodes could be colorized by using a graphstyle.grass file, but the color did not match the specification in grass.

image

None of the problems is present when shortenUrls is enabled.

Version: Neo4j-Community-3.2.7

best strategy to handle named graphs in Neo4J

Do you have any suggestions what would be the best (most efficient) strategy to simulate named graphs in Neo4J? I was thinking to simply add a new property to all nodes and relations called 'graphName'. Is there a way to add this in the import time?

Best way to import multiple files?

I have some 30 odd datasets to import.
The obvious way is to write a script to sequentially import each, one after the other.

Any way to do it parallely or at once?

Thanks

plugin does not install/work

Hi all, I am new to RDF and neo4j but interested in both techniques and possible data exchange. I'm working local with neo4j 3.1.1 community edition on Windows 10.

Today, I tried to install the plugin in different ways (the instructions are to brief for me). I used maven for building the project, but this only works if I force maven to skip testing; otherwise it says me that there is a 'built failure' because of one failed test: liteOntoImportSchemaOrg(semantics.LiteOntologyImporterTest): expected:<2> but was:<592>

When maven is done, I get two jars (neosemantics-1.0-SNAPSHOT.jar and original-neosemantics-1.0-SNAPSHOT.jar). Then I dropped both jars in the Program Files\Neo4j CE 3.1.1\plugins folder and modified the neo4j.conf file, by just copying 'dbms.unmanaged_extension_classes=semantics.extension=/rdf'. When I open neo4j and call dbms.procedures(), I don't see the documented procedures such as semantics.importRDF, etc.

Then I also noticed that neo4j creates a plugins folder for each neo4j database folder in Documents\Neo4j\databaseName. When I copy both jars here and try to open the neo4j database, I get the following alert: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@636e7c3a' was successfully initialized, but failed to start. Please see attached cause exception.. I can't open this neo4j database. This is the neo4j.log:

Error saving DB location
java.nio.file.AccessDeniedException: .dblocation
2017-02-14 18:11:26.594+0000 INFO  [o.n.s.CommunityNeoServer] No SSL certificate found, generating a self-signed certificate..
2017-02-14 18:11:27.040+0000 INFO  [o.n.s.d.LifecycleManagingDatabase] Starting...
2017-02-14 18:11:28.202+0000 INFO  [o.n.b.v.r.WorkerFactory] Bolt enabled on localhost:7687.
2017-02-14 18:11:31.307+0000 INFO  [o.n.s.d.LifecycleManagingDatabase] Started.
2017-02-14 18:11:31.409+0000 INFO  [o.n.s.m.ThirdPartyJAXRSModule] Mounted unmanaged extension [semantics.extension] at [/rdf]
feb 14, 2017 7:11:31 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  semantics.extension
feb 14, 2017 7:11:31 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class semantics.extension.SemanticsSCOExpansionEndpoint
  class semantics.extension.RDFEndpoint
feb 14, 2017 7:11:31 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
feb 14, 2017 7:11:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
feb 14, 2017 7:11:32 PM com.sun.jersey.spi.inject.Errors processErrorMessages
WARNING: The following warnings have been detected with resource and/or provider classes:
  WARNING: A HTTP GET method, public javax.ws.rs.core.Response semantics.extension.RDFEndpoint.exportOnto(org.neo4j.graphdb.GraphDatabaseService,java.lang.String), should not consume any entity.
  WARNING: A sub-resource method, public javax.ws.rs.core.Response semantics.extension.SemanticsSCOExpansionEndpoint.semanticypher(org.neo4j.graphdb.GraphDatabaseService,java.lang.String), with URI template, "/", is treated as a resource method
feb 14, 2017 7:11:32 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
feb 14, 2017 7:11:32 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
feb 14, 2017 7:11:32 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
2017-02-14 18:11:32.512+0000 INFO  [o.n.s.CommunityNeoServer] Remote interface available at http://localhost:7474/
2017-02-14 18:11:34.156+0000 INFO  [o.n.s.d.LifecycleManagingDatabase] Stopping...
2017-02-14 18:11:34.511+0000 INFO  [o.n.s.d.LifecycleManagingDatabase] Stopped.
2017-02-14 18:12:02.927+0000 INFO  [o.n.s.d.LifecycleManagingDatabase] Starting...
2017-02-14 18:12:03.257+0000 INFO  [o.n.b.v.r.WorkerFactory] Bolt enabled on localhost:7687.

Any pointers are appreciated.

mathib

Unable to load Turtle data

I'm trying to load the article categories from DBPedia.

The file exists, but I get this:
image

What am I doing wrong? I've inspected the file, and it appears to be valid:

> # started 2016-05-23T03:32:03Z
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Climate_forcing> .
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Climatology> .
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Electromagnetic_radiation> .
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Radiometry> .
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Scattering,_absorption_and_radiative_transfer_(optics)> .
> <http://dbpedia.org/resource/Albedo> <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Radiation> .

BUILD FAILURE

Hola @jbarrasa , I've just tried to compile your interesting code for test but unfortunately I have the following error in Mac OS : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project neosemantics: Fatal error compiling: invalid target release: 1.8. Any hint or am I doing something wrong here? TIA

Issue running demo example

When the demo instructions from your blog are followed, and the query
CALL semantics.importRDF("file:///home/sbachlet/Downloads/en.openfoodfacts.org.products.rdf","RDF/XML", {shortenUrls: false, commitSize: 25000})
is run is get the error
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.

Cannot start with neosemantics plugin added - database killed

Hi,

This looks like a very useful plugin - I am looking forward to using it.

I have installed Neo4j 3.3.5 on macos 10.13.4, and I installed APOC. I tried to add the neosematics plugin, by:

  • downloading neosemantics-3.3.0.2.jar and moving it to the plugins directory
  • adding two lines to the bottom of neo4j.conf
    dbms.unmanaged_extension_classes=semantics.extension=/rdf
    dbms.security.procedures.whitelist=semantics.*

(Without the second line I did get errors:
WARN [o.n.k.i.p.Procedures] The procedure 'semantics.runConsistencyChecks' is not on the whitelist and won't be loaded.
WARN [o.n.k.i.p.Procedures] The procedure 'semantics.importRDF' is not on the whitelist and won't be loaded.
WARN [o.n.k.i.p.Procedures] The procedure 'semantics.previewRDF' is not on the whitelist and won't be loaded.
WARN [o.n.k.i.p.Procedures] The procedure 'semantics.previewRDFSnippet' is not on the whitelist and won't be loaded.
WARN [o.n.k.i.p.Procedures] The procedure 'semantics.liteOntoImport' is not on the whitelist and won't be loaded.)

I get the following errors in neo4j.log:
ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@552b15f6' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@552b15f6' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;".

Any help is appreciated.

Thanks

Colin Goldberg

plugin does not install and work

image

I have built neosemantics from the git successfully.

But, when I move the .jar file to neo4j-community-3.1.3/plugin and modified the config file (config/neo4j.conf) as you mentioned, and then start neo4j,

I got above log information and neo4j failed.

Latest code does not deploy smoothly

I get an exception on neo4j restart to take neosemantics jar into account

Caused by: org.neo4j.kernel.api.exceptions.ProcedureException: Procedures must return a Stream
of records, where a record is a concrete class
that you define and not a Stream<?>.
at org.neo4j.kernel.impl.proc.OutputMappers.mapper(OutputMappers.java:162)
at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectivePr
ocedureCompiler.java:106)
at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compile(ReflectiveProcedureCo
mpiler.java:84)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java
:88)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoad
er.java:77)
at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:125)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
... 12 more
nohup: les entrées sont ignorées

Therefore, call dbms.procedures() only shows semantics.runConsistencyChecks
Using neo 3.0.6, Java8 on linux64

Did not recognise RDF format object Turtle

It's okay if load the data using the following query:

CALL semantics.importRDF("https://raw.githubusercontent.com/jbarrasa/neosemantics/master/src/test/resources/jeu-de-donnees-des-jeux-de-donnees-open-data-paris.rdf","RDF/XML", false, 500)

But get the error using the following query:

CALL semantics.importRDF("https://raw.githubusercontent.com/jbarrasa/neosemantics/master/src/test/resources/opentox-example.ttl","Turtle", false, 500)

Failed to invoke proceduresemantics.importRDF: Caused by: org.openrdf.rio.UnsupportedRDFormatException: Did not recognise RDF format object Turtle (mimeTypes=text/turtle, application/x-turtle; ext=ttl)

Neo4j, EE, 3.0.1

Neo4j 3.1.1 fails to start

On a freshly installed Neo4j 3.1.1 (via debian.neo4j package) on Ubuntu Trusty, restarting neo4j after building and installing the plugin fails:

2017-02-10 12:05:59.647+0000 INFO  Starting...
2017-02-10 12:06:00.354+0000 INFO  Bolt enabled on localhost:7687.
2017-02-10 12:06:01.400+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@771a6450' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@771a6450' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@771a6450' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:227)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:68)
        at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@771a6450' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:199)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases/graph.db
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:193)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:124)
        at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:57)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'apoc.ApocKernelExtensionFactory$1@3e2e3142' was successfully initialized, but failed to start. Please see attached cause exception.
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:86)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
        at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:189)
        ... 9 more
Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.api.proc.ProcedureSignature$Builder.mode(Lorg/neo4j/kernel/api/proc/ProcedureSignature$Mode;)Lorg/neo4j/kernel/api/proc/ProcedureSignature$Builder;
        at apoc.schema.AssertSchemaProcedure.signature(AssertSchemaProcedure.java:152)
        at org.neo4j.kernel.impl.proc.ProcedureRegistry.register(ProcedureRegistry.java:53)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:103)
        at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:76)
        at apoc.ApocKernelExtensionFactory$1.start(ApocKernelExtensionFactory.java:46)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
        ... 14 more

Found multiple nodes with label...while only one was expected.

I am trying to import one of my RDF datasets to Neo4J using this plugin. However, the import procedure gives me the following error:

Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke proceduresemantics.importRDF: Caused by: org.neo4j.graphdb.MultipleFoundException: Found multiple nodes with label: 'Resource', property name: 'uri' and property value: 'https://rdf.mydomain.eu/annotation_8_79_1522761126' while only one was expected.

I think it happens when I add duplicate subjects. I assumed if the URIs are the same, NeoSemantics will automatically merge the nodes but it doesn't seem to work! Can you help me with that error?

I use the following command to import:

CALL semantics.importRDF("http://mydomain/000003.ttl", "Turtle",{shortenUrls: true, typesToLabels: true, commitSize: 25000})

How to maximise importer performance ?

I have access to a high performance machine, 32 core, 128GB ram.
Any tips on how to maximise performance?

Are there any heuristics I could use to set the commitSize and the nodeCacheSize?
Would allocating more memory to the JVM running the neo4j server process help?

I am importing the entire DBpedia dataset (144gb) so speedy imports would really help.

Thanks!

Neo4j 3.1.2 doesn't start after adding semantic plugin

Hi,

I am trying to add neosemantic plugin to neo4j. I built the neosemantic project and placed the jar in plugins directory. But after adding plugin and adding line in configuration file, neo4j 3.1.2 doesn't start. I am using enterprise edition.

The error is
2017-03-16 10:35:08.348+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@39b457b2' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@39b457b2' was successfully initialized, but failed to start. Please see attached cause exception. org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@39b457b2' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:227) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91) at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:68) at org.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:32) Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@39b457b2' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:199) ... 3 more Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /home/mahek/Desktop/Neo4j/neo4j-enterprise-3.1.2/data/databases/graph.db at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:199) at org.neo4j.graphdb.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:36) at org.neo4j.server.enterprise.EnterpriseNeoServer.lambda$static$1(EnterpriseNeoServer.java:91) at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433) ... 5 more Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'apoc.ApocKernelExtensionFactory$1@24e72d2e' was successfully initialized, but failed to start. Please see attached cause exception. at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.extension.KernelExtensions.start(KernelExtensions.java:86) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433) at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107) at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:195) ... 9 more Caused by: java.lang.NoClassDefFoundError: org/neo4j/kernel/api/proc/Mode at apoc.schema.AssertSchemaProcedure.signature(AssertSchemaProcedure.java:152) at org.neo4j.kernel.impl.proc.ProcedureRegistry.register(ProcedureRegistry.java:53) at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:105) at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:78) at apoc.ApocKernelExtensionFactory$1.start(ApocKernelExtensionFactory.java:49) at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433) ... 14 more Caused by: java.lang.ClassNotFoundException: org.neo4j.kernel.api.proc.Mode at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 20 more

namespaces {}?

I am trying to determine how to get more details about the cause of a failure to import an RDF file.

I attempted to import the file available at https://ebiquity.umbc.edu/get/a/resource/361.rdf

The file successfully loads in Protege 5.20. When I used the procedure CALL semantics.importRDF("Cloud-Security-and-Compliance-Onotology-UMBC-361.rdf","RDF/XML", {shortenUrls: false, typesToLabels: true })

The result was termination status "OK, 0 triples loaded, namespaces { }, extrainfo "". Started streaming 1 records after 22 ms and completed after 22 ms.

I installed by copying the file https://github.com/jbarrasa/neosemantics/releases/download/3.4.0.1/neosemantics-3.4.0.1.jar and following the instructions at https://github.com/jbarrasa/neosemantics.

The installation is on neo4j version 3.4.4, the community edition. I found no log information generated by the failed call to semantics.importRDF.

problem running neosemantics plugin

Dear Developers,

I am new at Neo4j, and I need to import RDF triples to Neo4j, as I've got from the description, mentioned plugin is devoted to this issue.

Reproduce steps:

I followed all the steps:

  1. installed the .jar file, put into "plugin" folder;
  2. added the line to conf (not commented);
  3. stopped-started server;
  4. checked, if all procedures are added (success)
  5. checked if extension is mounted :GET /rdf/ping (failed)
  6. Then, if I try to:
    CALL semantics.importRDF("file:///Users/Me/Downloads/opentox-example.turtle","Turtle", {shortenURLs: false, typesToLabels:true, commitSize:9000})
    I get:
    "The required index on :Resource(uri) could not be found"

Expected behavior

The rdf triples from the document need to be displayed and the uri should be recognized.

Current behavior

Could not fetch URL: "Failed to fetch". This could be due to the remote server policy. See your web browsers error console for more information.

System

Windows8
Neo4j Desktop 1.0.14
Neo4j Browser version: 3.1.4

NB:
As I mentioned I am new to Neo4j and I would be grateful, if you can provide me with any help. Thank you in advance!

RDFImportTest error

Dear neosemantics team, (NOTE: I'm using Neo4J CE 3.2.3, and Neo4J Browser 3.0.5)
1)
I'm trying to build the jar files running the source code unziped by mean of mvn clean package but it retrieves this error:
imagen

And I'm unable to get the jar files on this way.
2)
In addition wWhen I copy paste the provided jar file into the plugin folder at Neo4J and run the server it does not find the semantic procedures (I created the config folder with the neo4j.config file following the instructions). Could

Serializing with custom RDF vocabularies

Currently, when importing OWL data, one can use shortenUrls == true and create custom namespaces like this:

// create the prefix mapping
CREATE (rdf:NamespacePrefixDefinition {
http://www.example.com/ontology/1.0.0#`: 'ex',
http://www.w3.org/1999/02/22-rdf-syntax-ns#`: 'rdfs'})

But when serializing back to RDF it seems that the only vocabularies that are used are neovoc and neoind. This results in:

@prefix neovoc: <neo4j://vocabulary#> .
neovoc:log_statusCode "401"^^<http://www.w3.org/2001/XMLSchema#long> ;

instead of

@prefix log <http://example/> .
log:statusCode "401"^^<http://www.w3.org/2001/XMLSchema#long> ;

Wouldn't it be better if the rdf:NamespacePrefixDefinition is also used when serializing back to RDF? This way we can create better, richer, rdf data.

3.3.2 doesn't work

i used the released jar of neosemantics-3.3.0.2.jar, and I install it follow the introduction.
After starting neo4j, i got error likes this:
There is no procedure with the name semantics.importRDF registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

how to fix it?

OpenPermID RDF import problem

Hi Jesus

I'm a newbie at graph database, and I was trying to follow the example presented in your blog and I actually used a newer file available on Thomson Reuters OpenPermID. Here is the script I tried in Neo4j browser:

CALL semantics.importRDF("file:///C:/Users/u6069094/Downloads/OpenPermID-bulk-organization-20180506_071051.ntriples.gz","N-Triples", {})

image
I even tried the http link for the file and it didn't work either, gave me the same error:

CALL semantics.importRDF("https://permid.org/sfiles/bulkDownload/OpenPermID-bulk-organization-20180506_071051.ntriples.gz?access-token=9XcaOjVbGGV6jLTt5InFKF8usmh4Bu2f","N-Triples", {})

I would be grateful if you could provide me with any help.
Thanks in advance!

There is no procedure with the name `semantics.importRDF` registered for this database instance. Please ensure you’ve spelled the procedure name correctly and that the procedure is properly deployed.

Hi Jesus,

I am trying to use your translator but getting the same problems with Timo above
‘There is no procedure with the name semantics.importRDF registered for this database instance. Please ensure you’ve spelled the procedure name correctly and that the procedure is properly deployed.’

The steps I followed are below:

  1. Downloaded source code
  2. Generated the corresponding jar files with ‘mvn package’
  3. Added the generated jars according to pom file in the plugin folder of Neo4J
    on the plugins file in the C:/Program Files/Neon4J.. /plugins folder
  4. Called the procedure over the web interface on Firefox browser
    ''CALL semantics.importRDF("http://fr.openfoodfacts.org/data/fr.openfoodfacts.org.products.rdf","RDF/XML",false,5000)''

I am thinking whether there might be jars missing as some of them were not downloaded with the mvn package according to the pom descriprion so I had to manually download these. This is the list of jars copied down to my Neon plugins folder.

neosemantics-1.0-SNAPSHOT.rar
junit-4.11.jar
sesame-rio-turtle-4.1.1
sesame-rio-ntriples-4.1.1.jar.jar
sesame-rio-trig-4.1.1.jar
sesame-rio-rdfxml-4.1.1.jar
sesame-rio-jsonld-4.1.1.jar
neo4j-3.0.1.jar
apoc-1.0.0.jar

Anything you could think of I may be doing wrong in the procedure?

Many thanks,
Veta

Failed to load semantics.RDFImport$StatementLoader

Hi all, any idea how to solve this issue?

2016-10-11 08:40:21.756+0000 INFO [o.n.k.i.DiagnosticsManager] [classpath + loader.0] file:/home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar
2016-10-11 08:40:27.321+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport$StatementLoader from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/helpers/RDFHandlerBase
2016-10-11 08:40:27.322+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException
2016-10-11 08:40:27.353+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.LiteOntologyImporter from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/model/Value
2016-10-11 08:47:44.257+0000 INFO [o.n.k.i.DiagnosticsManager] [classpath + loader.0] file:/home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar
2016-10-11 08:47:45.602+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport$StatementLoader from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/helpers/RDFHandlerBase
2016-10-11 08:47:45.602+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException
2016-10-11 08:47:45.627+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.LiteOntologyImporter from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/model/Value
2016-10-11 09:57:47.759+0000 INFO [o.n.k.i.DiagnosticsManager] [classpath + loader.0] file:/home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar
2016-10-11 09:57:49.298+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport$StatementLoader from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/helpers/RDFHandlerBase
2016-10-11 09:57:49.299+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException
2016-10-11 09:57:49.301+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.LiteOntologyImporter from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException
2016-10-11 10:00:47.266+0000 INFO [o.n.k.i.DiagnosticsManager] [classpath + loader.0] file:/home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar
2016-10-11 10:00:48.564+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport$StatementLoader from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/helpers/RDFHandlerBase
2016-10-11 10:00:48.564+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.RDFImport from plugin jar /home/samur/tools/neo4j-community-3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException
2016-10-11 10:00:48.566+0000 WARN [o.n.k.i.p.Procedures] Failed to load semantics.LiteOntologyImporter from plugin jar /home/samur/tools/neo4j-community- 3.0.6/plugins/neosemantics-1.0-SNAPSHOT.jar: org/openrdf/rio/RDFHandlerException

Cannot run both neosemantics and apoc as plugins

Hi,
I'm using neosemantics as a nice tool to import RDF based provenance graph data to neo4j. Additionally, I wanted to use apoc. Unfortunately, it seems that neo4j cannot be started with both neosemantics and apoc installed in the plugins directory:

neo4j community version 3.3.2
neosemantics 3.2.1.1
apoc release 3.3.0.1 (tested with provided binary and locally built jar)

Linux machine

It runs with neosemantics installed alone, and with apoc installed alone, but not concurrently. Do you have an idea? Here is the error log ...

2018-02-16 15:22:23.904+0000 INFO Starting...
2018-02-16 15:22:26.719+0000 INFO Bolt enabled on 0.0.0.0:7015.
2018-02-16 15:22:35.374+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7715d43c' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7715d43c' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7715d43c' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;".
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:219)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@7715d43c' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /usr/local/neo4j/neo4j-community-3.3.2/data/databases/graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:126)
at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:58)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@4d21b505' was successfully initialized, but failed to start. Please see the attached cause exception "class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:207)
... 9 more
Caused by: java.lang.VerifyError: class com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating overrides final method getDeclaringClass.()Ljava/lang/Class;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:141)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader$1.fetchNextOrNull(ProcedureJarLoader.java:118)
at org.neo4j.collection.PrefetchingRawIterator.peek(PrefetchingRawIterator.java:50)
at org.neo4j.collection.PrefetchingRawIterator.hasNext(PrefetchingRawIterator.java:36)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:91)
at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:82)
at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:275)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
... 11 more
2018-02-16 15:22:35.378+0000 INFO Neo4j Server shutdown initiated by request

Thanks, André

How to export Query Response in .rdf format from Neo?

Hi @jbarrasa ,

I want to export the query response in .rdf format. I have created few nodes and relations among them. Now I need to export the Match Query result in .rdf format. I have successfully installed neosemantics-3.2.0.1-beta.jar and have copied the dbms.unmanaged_extension_classes=semantics.extension=/rdf in the neo4j.conf file at the bottom with # prefix (If I won't put the # prefix, it is unable to start the server). I restarted the server and ran the call dbms.procedures() this query in neo. I could see the listed procedures in the result.

Now if I query the below statement, I gets the result, this result I want the export in rdf format.

MATCH p=(n:Maths)-[r:HAS_TOPIC]->() RETURN p LIMIT 25

I tried running this query

:POST /rdf/cypher/ "MATCH p=(n:Maths)-[r:HAS_TOPIC]->() RETURN p LIMIT 25"

I got this error Payload does not seem to be valid (JSON) data. Please help me on this.

Thanks

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

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.

problem getting typed literals

Method getObjectValue in DirectStatementLoader is wrong. Legacy from previous cypher based version. Datatypes should be dealt with in a consistent way.

This is also related to multilingual string values.

after compile can't start server.

Build from maven says it was successful however when I copy the jar files to the plugin directory the server wont start. I just copied the files from 10 mins ago.

Logs show:

2016-11-15 01:54:05.837+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3785d83d' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3785d83d' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3785d83d' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:227)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:68)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3785d83d' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:199)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, /Users/william/Desktop/neo4j-community-3.1.0-M13-beta3/data/databases/graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:193)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:124)
at org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:57)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@2841f4d2' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:443)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:189)
... 9 more
Caused by: org.neo4j.kernel.api.exceptions.ProcedureException: Unable to register procedure, because the name db.awaitIndex is already in use.
at org.neo4j.kernel.impl.proc.ProcedureRegistry.register(ProcedureRegistry.java:81)
at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:103)
at org.neo4j.kernel.impl.proc.Procedures.register(Procedures.java:76)
at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:209)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:433)
... 11 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.