cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

N10s update multivalPropList on a non-empty graph

alex3
Node Clone

Hi, I am using neosemantics (n10s) to import various ontologies into my graph.

One issue I have encountered is that I want some properties to be treated as lists (which is solved by setting "handleMultival": "ARRAY" in the config, then setting a "multivalPropList" to specify which properties should be lists).

The problem with this is that the global config cannot be changed once set. So in future when I would like to add more ontologies, how am I to specify new properties which should be multi-valued for it? Would appreciate any help on this!

2 REPLIES 2

Hi @alex3 

You can modify the GraphConfig by using the force parameter. Something like this:

 
call n10s.graphconfig.set({ multivalPropList: ["http://neo4j.com/voc#prop1","http://neo4j.com/voc#prop2"] , force: true})
 
But make sure that the changes are not breaking ones. That's the reason why by default the config is fixed.

 

sorry for the very long delay, thank you for this!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online