assembl.semantic.inference module

Inference library based on FuXi

class assembl.semantic.inference.GraphOverlay(base_graph, overlay=None)[source]

Bases: rdflib.graph.ReadOnlyGraphAggregate

add(triple)[source]

Add a triple or quad to the store.

if a triple is given it is added to the default context

addN(quads)[source]

Add a sequence of triples with context

commit()[source]

Commits active transactions

contexts(triple=None)[source]

Iterate over all contexts in the graph

If triple is specified, iterate over all contexts the triple is in.

destroy(configuration)[source]

Destroy the store identified by configuration if supported

remove(triple)[source]

Removes a triple or quads

if a triple is given it is removed from all contexts

a quad is removed from the given context only

rollback()[source]

Rollback active transactions

class assembl.semantic.inference.SimpleInferenceStore(ontology_root='/home/iloomdemo/demo_idealoom/assembl/semantic/ontology/')[source]

Bases: assembl.semantic.inference.InferenceStore

A simple inference engine that adds class closures