cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Linking instances / individuals to my ontology graph

contzero
Node Link

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

1 ACCEPTED SOLUTION

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

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

View solution in original post

3 REPLIES 3

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

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

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!