Troubleshooting Neosemantics Errors

Non-empty Graphs

If you encounter an error informing you that:

Error Running Query
...
Caused by: n10s.graphconfig.GraphConfigProcedures$GraphConfigException:
The graph is non-empty. Config cannot be changed.

This is caused by attempting to amend the n10s config by calling either n10s.graphconfig.init or n10s.graphconfig.set while the graph still contains RDF data. Changing the configuration while there is data already in the graph may lead to data-loss.

Solution

The configuration can be changed on an empty graph as many times as necessary. However, in order to update the configuration you will need to delete the data from your graph the graph. To resolve this error, you can try the following:

Still stuck?

If you are still experiencing problems, feel free to create an issue in the Linked Data, RDF, Ontology category on the Neo4j Community Site .