net.sansa_stack.inference.flink.forwardchaining
Applies forward chaining to the given RDF graph and returns a new RDF graph that contains all additional triples based on the underlying set of rules.
Applies forward chaining to the given RDF graph and returns a new RDF graph that contains all additional triples based on the underlying set of rules.
the RDF graph
the materialized RDF graph
Applies forward chaining to the given set of RDF triples and returns a new set of RDF triples that contains all additional triples based on the underlying set of rules.
Applies forward chaining to the given set of RDF triples and returns a new set of RDF triples that contains all additional triples based on the underlying set of rules.
the RDF triples
the materialized RDF triples
Computes the transitive closure for a DataSet of tuples
Computes the transitive closure for a DataSet of tuples
the DataSet of tuples
a tuples containing the transitive closure of the tuples
Computes the transitive closure on a DataSet of triples.
Computes the transitive closure on a DataSet of triples. Note, that the assumption is that all triples do have the same predicate.
the DataSet of triples
a DataSet containing the transitive closure of the triples
Computes the transitive closure on a set of triples, i.e.
Computes the transitive closure on a set of triples, i.e. it is computed in-memory by the driver. Note, that the assumption is that all triples do have the same predicate.
the set of triples
a set containing the transitive closure of the triples
Computes the transitive closure on a DataSet of triples.
Computes the transitive closure on a DataSet of triples. Note, that the assumption is that all triples do have the same predicate. This implementation uses the Flink iterate operator (see https://ci.apache.org/projects/flink/flink-docs-master/dev/batch/iterations.html")
the DataSet of triples
a DataSet containing the transitive closure of the triples
Computes the transitive closure on a DataSet of triples.
Computes the transitive closure on a DataSet of triples. Note, that the assumption is that all triples do have the same predicate. If no predicate is given, we take any triple from the dataset and use its predicate. We highly recommend to provide the predicate in order to avoid unnecessary operations.
This implementation uses the Flink iterate operator (see https://ci.apache.org/projects/flink/flink-docs-master/dev/batch/iterations.html")
the DataSet of triples
the optional predicate
a DataSet containing the transitive closure of the triples
Extracts all triples that match the given subject, predicate and object if defined.
Extracts all triples that match the given subject, predicate and object if defined.
the DataSet of triples
the subject
the predicate
the object
the DataSet of triples that match
Extracts all triples for the given predicate.
Extracts all triples for the given predicate.
the DataSet of triples
the predicate
the DataSet of triples that contain the predicate
Extracts all triples for the given predicate.
Extracts all triples for the given predicate.
the triples
the predicate
the set of triples that contain the predicate
A forward chaining based reasoner.