neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
820 stars 143 forks source link

Not able to import the below ttl file using neosemantics plugin configured for neo4j installed in aws ec2 #260

Closed sanjitkhasnobis closed 2 years ago

sanjitkhasnobis commented 2 years ago

Hi Team, I am not able to import the below ttl file using neosemantics plugin configured at for neo4j in aws ec2.

CALL n10s.onto.import.fetch("https://github.com/Accenture/OSDU-Ontology/tree/main/ttl/OSDU.ttl","Turtle"); IRI included an unencoded space: '32' [line 8]

When tried the RDF/XML option. CALL n10s.onto.import.fetch("https://github.com/Accenture/OSDU-Ontology/tree/main/ttl/OSDU.ttl","RDF/XML");

error is - "unqualified attribute 'lang' not allowed [line 9, column 123]"

I also tried to suppress validation and process.

CALL n10s.rdf.import.fetch("https://github.com/Accenture/OSDU-Ontology/tree/main/ttl/OSDU.ttl","Turtle", { verifyUriSyntax: false }) "Expected '.', found '<' [line 11]

I have successfully installed plugin though.

Any help will be highly appreciated.

Best Regards, Sanjit

jbarrasa commented 2 years ago

Hi, by using this url you're trying to load the "human friendly" HTML page that you see in GitHub. And the RDF parser does not like that :) Use the "raw" URL (link on top right corner of your file) which will return actual RDF. In your example it's this one: "https://raw.githubusercontent.com/Accenture/OSDU-Ontology/main/ttl/OSDU.ttl"

Hope this helps.

JB.