public class RepairPlanner extends Object
Computes multiple plans to resolve one or more inconsistencies. A repair plan is a minimal sequence of
update operations
that will resolve all the inconsistencies when executed. Minimality ensures
that removing any operation from a plan will cause one of the inconsistencies to remain.
Update operations may remove existing statements from the database or add new statements. Addition operations are
typically parametrized and values should be
provided
before execution.
Addition of new values might yield new inconsistencies, e.g. if the parameter value is not valid, in which case the
planner can be rerun with new proofs.
This class can also be used to undo arbitrary inferences if the proofs given as input to the planner explain an inference.
Modifier and Type | Method and Description |
---|---|
static RepairPlanner |
forProofs(Iterable<Proof> theProofs)
Deprecated.
Creates a new planner that will repair the given inconsistencies.
|
static RepairPlanner |
forProofs(Proof... theProofs)
Deprecated.
Creates a new planner that will repair the given inconsistencies.
|
int |
getLimit()
Deprecated.
Returns the limit for the number of plans computed by this planner.
|
List<RepairPlanMetric> |
getMetrics()
Deprecated.
Returns the metrics used by this planner to sort plans.
|
Set<com.complexible.stardog.api.update.UpdateOperation> |
getProhibited()
Deprecated.
Returns the prohibited operations for the plans returned by this planner.
|
Set<com.complexible.stardog.api.update.UpdateOperation> |
getRequired()
Deprecated.
Returns the required operations for the plans returned by this planner.
|
RepairPlanner |
limit(int theLimit)
Deprecated.
Sets the limit for the number of plans computed by this planner.
|
RepairPlanner |
metrics(Iterable<RepairPlanMetric> theMetrics)
Deprecated.
Sets the metrics used by this planner to sort plans.
|
RepairPlanner |
metrics(RepairPlanMetric... theMetrics)
Deprecated.
Sets the metrics used by this planner to sort plans.
|
List<RepairPlan> |
plans()
Deprecated.
Computes and returns a list of unique repair plans sorted by their ascending cost values.
|
RepairPlanner |
prohibit(Collection<com.complexible.stardog.api.update.UpdateOperation> theProhibitedActions)
Deprecated.
Sets the prohibited operations for the plans returned by this planner.
|
RepairPlanner |
prohibit(com.complexible.stardog.api.update.UpdateOperation... theProhibitedActions)
Deprecated.
Sets the prohibited operations for the plans returned by this planner.
|
RepairPlanner |
require(Collection<com.complexible.stardog.api.update.UpdateOperation> theRequiredActions)
Deprecated.
Sets the required operations for the plans returned by this planner.
|
RepairPlanner |
require(com.complexible.stardog.api.update.UpdateOperation... theRequiredActions)
Deprecated.
Sets the required operations for the plans returned by this planner.
|
public static RepairPlanner forProofs(Iterable<Proof> theProofs)
public static RepairPlanner forProofs(Proof... theProofs)
public RepairPlanner limit(int theLimit)
public int getLimit()
public RepairPlanner require(Collection<com.complexible.stardog.api.update.UpdateOperation> theRequiredActions)
public RepairPlanner require(com.complexible.stardog.api.update.UpdateOperation... theRequiredActions)
public Set<com.complexible.stardog.api.update.UpdateOperation> getRequired()
public RepairPlanner prohibit(Collection<com.complexible.stardog.api.update.UpdateOperation> theProhibitedActions)
public RepairPlanner prohibit(com.complexible.stardog.api.update.UpdateOperation... theProhibitedActions)
public Set<com.complexible.stardog.api.update.UpdateOperation> getProhibited()
public RepairPlanner metrics(Iterable<RepairPlanMetric> theMetrics)
limit
is applied on sorted plans so
only the top K plans according to the given metrics will be returned. The order of the metrics is important as a
lexicographic ordering is used.RepairPlanMetrics.planComparator(List)
public RepairPlanner metrics(RepairPlanMetric... theMetrics)
public List<RepairPlanMetric> getMetrics()
public List<RepairPlan> plans()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.