Search code examples
pythonrdfstanford-nlpgraphdb

Import text documents to graph database through RDF triples


I have a list of documents (summary text and full document link). I am using OpenIE on the summary text to get RDF triples.

How can I import the RDF triples and associated full document links in GraphDB for querying using SparkQL?


Solution

  • As OpenIE seems to "produce relation triples in a tab separated format", you could save it as a TSV file, which can be imported into GraphDB: "Import tabular data with OntoRefine"

    After importing the file, you can click on "RDF Mapping" in the top right corner.

    GraphDB offers a video tutorial showing how to use SPARQL for that:

    https://www.youtube.com/watch?v=BpWM1WBq2gk