cancel
Showing results for 
Search instead for 
Did you mean: 

Is support of RDF*/SPARQL* planned?

vlasta
Node

Hello,

I'm trying to import into neo4j 4.2.5 YAGO RDF knowledge base (Downloads/yago 4 | Yago Project). All files .nt worked very well, but there's also a file yago-wd-annotated-facts.ntx.gz which is in RDF* format (contains nested triplets as this format supports properties on relationships).

<<	<http://yago-knowledge.org/resource/Libtiff>	<http://schema.org/copyrightHolder>	<http://yago-knowledge.org/resource/Silicon_Graphics>	>>	<http://schema.org/endDate>	"1997"^^<http://www.w3.org/2001/XMLSchema#gYear>	.

Is there a way to import this, or even better - is it going to be supported by neosemantics?

2 REPLIES 2

Hi @vlasta , thanks for your interest.
RDF* is supported by Neosemantics since v 4.1 (Sep 2020)
All you need to do is use "Turtle*" as serialisation format.
You can run a quick test on the fragment in your example by using the preview feature. Here's how:

call n10s.rdf.preview.inline('<<	<http://yago-knowledge.org/resource/Libtiff>	<http://schema.org/copyrightHolder>	<http://yago-knowledge.org/resource/Silicon_Graphics>	>>	<http://schema.org/endDate>	"1997"^^<http://www.w3.org/2001/XMLSchema#gYear>	.',"Turtle*")

And this shows the two nodes connected with the property in the relationship:

You can find more about RDF* and other features included in 4.1 on this live session.

Hope this helps.

JB.

Hi @jesus.barrasa, fantastic, thank you very much!
Maybe a small suggestion - the documentation does not mention Turtle* in the "Parameters" section, might be worth updating.

Thanks!
Vlasta

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.