Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-04-2021 05:44 AM
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?
05-04-2021 09:16 AM
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.
05-05-2021 12:22 AM
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
All the sessions of the conference are now available online