cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Overriding graph model elements

da-zar
Node

Hi,

I am trying to import an ontology using custom label names for classes like in this example form the documentation:

CALL n10s.onto.import.fetch("https://github.com/neo4j-labs/neosemantics/raw/3.5/docs/rdf/vw.owl","Turtle", {
  classLabel : 'Category',
  objectPropertyLabel: 'Rel',
  dataTypePropertyLabel: 'Prop'
});

Unfortunately the passed parameters are not taken into account and the labels of the imported data are still the default ones. When I change the classLabel in the n10s.graphconfig.init procedure then it works. But I would like to import several ontologies with different classLabels. Any idea what might be the cause of this problem? I would be very thankful for any feedback
I am using the latest neo4j docker image from dockerhub.

1 REPLY 1

Hi, sorry for the delay in responding to your question.
On 4.0 the configuration was moved to the Graph Config so you will need to set them up as follows

CALL n10s.graphconfig.init( { classLabel : 'Category', 
                             objectPropertyLabel: 'Rel', 
                             dataTypePropertyLabel: 'Prop' })

CALL n10s.onto.import.fetch("https://github.com/neo4j-labs/neosemantics/raw/3.5/docs/rdf/vw.owl","Turtle")


Thanks for bringing this to our attention. The examples in chapter 6 of the manual have not been updated Working to fix that asap.

Here's the link to the reference in the manual.

Cheers,

JB