A custom error handler that doesn't throw an exception on fatal parse errors.
A custom error handler that doesn't throw an exception on fatal parse errors. This allows for simply skipping those triples instead of aborting the whole parse process.
Created by nilesh on 01/06/2016.
Adds methods, rdf
, ntriples
and turtle
, to DataFrameReader that allows to read N-Triples and Turtle
files.
Adds methods, ntriples
and turtle
, to DataFrameWriter that allows to write N-Triples files.
Adds methods, rdf(lang: Lang)
, ntriples
, nquads
, and turtle
, to SparkSession that allows to read
N-Triples, N-Quads and Turtle files.
Created by nilesh Build an RDD of (s,p,o) coordinates, with integer IDs starting from 0 for representing URIs Needed for training ML models on knowledge graphs TODO docs
Adds methods, ntriples
and turtle
, to org.apache.spark.SparkContext that allows to write N-Triples and Turtle files.
An N-Triples reader.
An N-Triples reader. One triple per line is assumed.
Converts a list Jena Node objects to a Spark SQL Row.
Converts a list Jena Node objects to a Spark SQL Row.
the nodes
the row
Converts a Jena Triple to a Spark SQL Row with three columns.
Converts a Jena Triple to a Spark SQL Row with three columns.
the triple
the row
Wrap up implicit classes/methods to read/write RDF data from N-Triples or Turtle files into either DataFrame or RDD.