MJavad-Taheri
MJavad-Taheri

Reputation: 19

Problem in loading .owl file into Neo4j Desktop

I am using python owlready2 library to make and manage .owl file of an ontology I'm working on using python. I want to give the .owl file of my project to Neo4j Desktop and create graph DBMS out of it. I used this command in Neo4j browser:

CALL n10s.onto.import.fetch("file:///D:/codes/Res_TimeLine/TimeLineOnto.owl", "RDF/XML");

Although there are many triples made in TimeLineOnto.owl and could be accessed by SPARQL query, no triples are added to Neo4j graph DBMS. using Neosemantics plugin returned same result and no triples added. At first glance, seems that problem is related to way of addressing in windows or because of .owl format. but using "" instead of "/" in address path of the file and changing file type to .xml do not help either.

I have tried these:

Thanks in advance for any advice

Upvotes: -1

Views: 321

Answers (2)

user15863090
user15863090

Reputation: 21

Ensure your .owl file is not in OWL/XML format which is not supported by n10s. Try to export it in one of the supported serialization formats: RDF/XML, Turtle, JSON-LD, N-Triples...

Upvotes: 0

Thomas
Thomas

Reputation: 1020

The filepath looks slightly off from the docs. enter image description here

I would go through that page and try the import with their RDF data, using the path conventions and make sure it works before trying your ontology. Also double check that the format in your function call matches your ontology format.

Upvotes: 0

Related Questions