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.

Looking for Assistance in Importing an Ontology

andy_hegedus
Graph Fellow

Hi,

I am interesting in importing this ontology as well as some of the domain specific ontologies.

https://github.com/emmo-repo/EMMO

I am a bit lost in how to use Neosemeantics to handle the import.

Is there some guidance available/assistance for the newbies in this area?

Andy

1 ACCEPTED SOLUTION
4 REPLIES 4

for import of  ontology you need to use CALL n10s.onto.import.fetch("https://github.com/BIG-MAP/BattINFO/blob/master/battery.ttl","Turtle").

Prior to import,

  1. Configure neosemantic plugin setting
  2.  CALL n10s.graphconfig.set for configuring parameters to handle properties.

Hi,

Here is what I tried following the Neosematics intro tutorial.

New Database.

CREATE CONSTRAINT n10s_unique_uri ON (r:Resource)
ASSERT r.uri IS UNIQUE
 
CALL n10s.graphconfig.init({
handleVocabUris: 'MAP'
})
 
CALL n10s.rdf.preview.fetch("https://github.com/emmo-repo/EMMO/blob/master/emmo.ttl","Turtle")
 
The last line returns an error:
Failed to invoke procedure `n10s.rdf.preview.fetch`: Caused by: n10s.RDFImportException: IRI included an unencoded space: '32' [line 8]
 Not sure where to go from here.  I have reason to believe the .ttl file is well crafted given the provenance of the authors.
Any Guidance.
Andy

 

 

Instead of this https://github.com/emmo-repo/EMMO/blob/master/emmo.ttl,  Use raw file link  "https://raw.githubusercontent.com/emmo-repo/EMMO/master/emmo.ttl" to access directly turtle

 

 

 

paritosh_deshmu_0-1673752377946.png

 

andy_hegedus
Graph Fellow

Thank you very much.

Success!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online