Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-01-2021 03:30 AM
Hello, I am working on Neo4j, and I imported my ontology, but I didn't understand how Neo4j import the class owl:NamedIndividual or the other class other than owl:Class, because it gives me just one node label which is Resource, there aren't any way to import this owl:NamedIndividual as a separate Node with different label ?
this is a part of my ontology
<owl:NamedIndividual rdf:about="http://www.semanticweb.org/ss/ontologies/2018/6/DAO#SideCollision">
<rdf:type rdf:resource="http://www.semanticweb.org/ss/ontologies/2018/6/DAO#Hazard"/>
</owl:NamedIndividual>
and this what Neo4j gives me
12-12-2021 05:55 PM
Hi @siham.elfedali , I assume you're using the n10s.onto.import.*
procedure. Correct?
If that's the case, this method does not import NamedIndividuals as described in the manual.
If your ontology includes named individuals in a single file you'll have to use a combination of n10s.onto.import.*
and n10s.rdf.import.*
. You can find how to do it with the guide to import the FIBO ontology. You can play it by running the in your browser:
:play rdf/fibo.html
If the named individuals can be split into a separate file then the process can be simplified. You'll probably see what I man when you play the guide.
Hope this helps,
JB.
12-13-2021 12:56 AM
Hi @jesus.barrasa, yes I am using the n10s.onto.import.* procedure to import my ontology, As you suggested I tried to run the FIBO ontology example, but I got an error that the function **n10s.rdf.collect ** is Unknown function. What is the mistake that I did here ?
PS: I am using the version 4.2 of neo4j
12-13-2021 03:47 AM
You need Neosemantics 4.3.0.2
Can you upgrade?
If not it would be a bit trickier. Let me know and if not I'll provide instructions on how to do it.
But essentially it would involve splitting your ontology into two parts: the schema elements in one part and the named instances in the other.
JB
12-13-2021 06:05 AM
Hi @jesus.barrasa, now the function n10s.rdf.collect is working I am using the neo4j 4.3.4 and Neosemantics 4.3.0.2.
As I understand, in this way I will get duplication of node, because I will have the nodes that were imported using n10s.onto.import and the nodes imported using n10s.rdf.import
01-21-2022 06:11 PM
Where can i find info on "the schema elements in one part and the named instances in the other". I think, this will help to put good visualization. Do i need to add additional prefix.
regards,
PD
All the sessions of the conference are now available online