How can I load the entire hierarchical FIBO. Currently when I use semantics.importRDF() procedure to load, it loads only the specific ttl/RDF file and not the hierarchical dependent ones.
Is there a way to load the ontology recursively traversing through the links.
Hi @bhawmik, there has been a feature request for a while on recursively importing nested owl:import. We're working on it and hope to include it in future releases.
In the meantime you have two options: You can iterate over the different parts of the FIBO ontology and run an import on each of them. This would be a simple script in cypher with the following structure:
Or alternatively, you could use the FIBO quickstart that can be downloaded from the FIBO/OWL page which is a single file version of all the FIBO subparts.
I followed your second approach to get FIBO model but when I import I am not able to get class names. graph properly.
I did the following steps
1)call n10s.graphconfig.init()
2)CREATE CONSTRAINT n10s_unique_uri ON (r:Resource)
ASSERT r.uri IS UNIQUE;
3) CALL n10s.rdf.import.fetch("https://spec.edmcouncil.org/fibo/ontology/master/2020Q2/prod.fibo-quickstart.ttl", "Turtle");
I am getting the output
You probably are, by the look of your screen capture. It looks like you have successfully imported 84781 triples into Neo4j
You will probably have classes prefixed with owl. Try to run this query to get them:
match (c:owl__Class) return c
But depending on how you intend to use it later on, you might find more useful the approach described in this guide (run it from your browser):