public class TMUtility extends Object
Note: When loading a new data set into the database, the "focusStore" should contain the statements that were read from the data source, e.g., some RDF/XML file and the "buffer" should be configured to write on the "database".
Modifier and Type | Field and Description |
---|---|
static TMUtility |
DEBUG
Alternative instance constructs programs with sequential steps for easier
debugging.
|
static TMUtility |
INSTANCE
Default instance constructs programs with parallel steps.
|
Constructor and Description |
---|
TMUtility(boolean parallel) |
Modifier and Type | Method and Description |
---|---|
Program |
mapForTruthMaintenance(IStep step,
String focusStore) |
Program |
mapProgramForTruthMaintenance(IProgram program,
String focusStore)
Map a
IProgram for truth maintenance. |
Program |
mapRuleForTruthMaintenance(IRule rule,
String focusStore)
Truth maintenance for RDF needs to compute the entailments as if
the statements in a temporary triple store (known as the focusStore) were
already part of the database (for insert) or as if they had already been
removed (for delete).
|
public static final transient TMUtility INSTANCE
public static final transient TMUtility DEBUG
public TMUtility(boolean parallel)
parallel
- When true
, the new IRule
s will be
added to a program that executes its steps in parallel.public Program mapRuleForTruthMaintenance(IRule rule, String focusStore)
rule
- The original rule. The IPredicate
s in this
Rule
should identify the IRelation
for the
database for which truth maintenance will be performed.focusStore
- The temporary database containing the statements to be added
to (or removed from) the database during truth maintenance.IProgram
constructed as specified above. When they are
executed, all of the resulting rules should write on the same
buffer. This has the same effect as a UNION over the entailments
of the individual rules.public Program mapProgramForTruthMaintenance(IProgram program, String focusStore)
IProgram
for truth maintenance.program
- The program.focusStore
- The focus store.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.