Linking instances / individuals to my ontology graph

Hi everyone,

I am currently working with OWL ontologies created on Protege. I've been trying to import them on Neo4J using the following query :
<call n10s.rdf.import.fetch("file:///fileAdress/fileName","Turtle", {typesToLabels: false})>
My ontology has Individuals for each class, but when I import it, it generates two different graphs in the same Neo4J Browser view : one with the classes and a separate one with the instances. I would like the instances to be physically linked to the nodes/classes they belong to. Would you know how to do that?
The {typesToLabels: false} parameter doesn't seem to work.

Thanks so much for your help

Hi, have you tried the handleRDFTypes param at init time?

CALL n10s.graphconfig.init({handleRDFTypes: "LABELS_AND_NODES"})

1 Like

Hi lupo_michele,
Thanks for your reply, I'll try it right away. Should I keep the {typetolabels] parameter to 'False' when importing the ontology?

Hello again lupo_michele

Just tried it with the {typetolabels} parameter set to 'False', it works perfectly, thanks again so much!

1 Like