Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-29-2020 11:35 AM
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.
08-13-2020 03:55 AM
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
All the sessions of the conference are now available online