# How to import the OWL classes as a Node

**URL:** <https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303>\
**Category:** Linked Data, RDF, Ontology\
**Tags:** import\
**Created:** [December 1, 2021, 11:30am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303 "2021-12-01T11:30:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![siham.elfedali](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/siham.elfedali/32/3932_2.png) [@siham.elfedali](https://community.neo4j.com/u/siham.elfedali)\
**Post date:** [December 1, 2021, 11:30am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/1 "2021-12-01T11:30:12Z")

</div>

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

```auto
<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  
 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/c/1/c12aa94bdc1078cad52fdc1d8873893cbe665bbb.png)

---

<div class="post-metadata">

**Author:** ![jesus\_barrasa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jesus_barrasa/32/27513_2.png) [@jesus\_barrasa](https://community.neo4j.com/u/jesus_barrasa)\
**Post date:** [December 13, 2021, 1:55am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/2 "2021-12-13T01:55:50Z")

</div>

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](https://neo4j.com/labs/neosemantics/4.0/importing-ontologies/).  
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:

```auto
: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.

---

<div class="post-metadata">

**Author:** ![siham.elfedali](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/siham.elfedali/32/3932_2.png) [@siham.elfedali](https://community.neo4j.com/u/siham.elfedali)\
**Post date:** [December 13, 2021, 8:56am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/3 "2021-12-13T08:56:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jesus\_barrasa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jesus_barrasa/32/27513_2.png) [@jesus\_barrasa](https://community.neo4j.com/u/jesus_barrasa)\
**Post date:** [December 13, 2021, 11:47am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/4 "2021-12-13T11:47:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![siham.elfedali](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/siham.elfedali/32/3932_2.png) [@siham.elfedali](https://community.neo4j.com/u/siham.elfedali)\
**Post date:** [December 13, 2021, 2:05pm UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/5 "2021-12-13T14:05:01Z")

</div>

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**

---

<div class="post-metadata">

**Author:** ![paritosh\_deshmu](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/paritosh_deshmu/32/22641_2.png) [@paritosh\_deshmu](https://community.neo4j.com/u/paritosh_deshmu)\
**Post date:** [January 22, 2022, 2:11am UTC](https://community.neo4j.com/t/how-to-import-the-owl-classes-as-a-node/48303/6 "2022-01-22T02:11:14Z")

</div>

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
