public class InstantiatedHeadMiningAssistant extends DefaultMiningAssistant
hardQueriesallowConstants, avoidUnboundTypeAtoms, bodyExcludedRelations, bodyTargetRelations, confidenceMetric, countAlwaysOnSubject, enabledConfidenceUpperBounds, enabledFunctionalityHeuristic, enablePerfectRules, enableQueryRewriting, enforceConstants, exploitMaxLengthOption, headCardinalities, headExcludedRelations, kb, kbSchema, maxDepth, minPcaConfidence, minStdConfidence, recursivityLimit, subPropertyString, totalObjectCount, totalSubjectCount, typeString, verbose| Constructor and Description |
|---|
InstantiatedHeadMiningAssistant(KB dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateConfidenceMetrics(Rule candidate)
Simplified version that calculates only standard confidence.
|
void |
getDanglingAtoms(Rule query,
double minCardinality,
java.util.Collection<Rule> output)
Returns all candidates obtained by adding a new triple pattern to the query
|
java.lang.String |
getDescription()
Brief description of the MiningAssistant capabilities.
|
void |
getInitialAtoms(double minSupportThreshold,
java.util.Collection<Rule> output)
Returns a list of one-atom queries using the relations from the KB
|
void |
getInitialAtomsFromSeeds(java.util.Collection<ByteString> relations,
double minCardinality,
java.util.Collection<Rule> output)
Returns a list of one-atom queries using the head relations provided in the collection relations.
|
boolean |
testConfidenceThresholds(Rule candidate)
It checks whether a rule satisfies the confidence thresholds and the
sky-line heuristic: the strategy that avoids outputting rules that do not
improve the confidence w.r.t their parents.
|
computeBodySize, computeCardinality, computePcaBodySize, computePCAConfidence, computeStandardConfidence, containsHardCase, getClosingAtoms, getDanglingAtoms, getInstantiatedAtoms, getTotalCount, main, rewriteProjectionQuerybuildInitialQueries, calculateConfidenceApproximationFor3Atoms, calculateConfidenceApproximationForGeneralCase, calculateConfidenceBoundsAndApproximations, canAddInstantiatedAtoms, findCountingVariable, getBodyExcludedRelations, getBodyTargetRelations, getConfidenceMetric, getFactsCount, getHeadCardinality, getHeadExcludedRelations, getInstantiatedAtoms, getKb, getKbSchema, getMaxDepth, getMinConfidence, getPcaConfidenceThreshold, getRecursivityLimit, getRelationCardinality, getRelationCardinality, getSubClasses, getTotalCount, getTotalObjectCount, getTotalSubjectCount, isAvoidUnboundTypeAtoms, isEnabledConfidenceUpperBounds, isEnabledFunctionalityHeuristic, isEnablePerfectRules, isEnableQueryRewriting, isEnforceConstants, isExploitMaxLengthOption, isVerbose, registerHeadRelation, setAllowConstants, setAvoidUnboundTypeAtoms, setBodyExcludedRelations, setConfidenceMetric, setCountAlwaysOnSubject, setEnabledConfidenceUpperBounds, setEnabledFunctionalityHeuristic, setEnablePerfectRules, setEnableQueryRewriting, setEnforceConstants, setExploitMaxLengthOption, setHeadExcludedRelations, setKbSchema, setMaxDepth, setPcaConfidenceThreshold, setRecursivityLimit, setStdConfidenceThreshold, setTargetBodyRelations, setVerbose, testLengthpublic InstantiatedHeadMiningAssistant(KB dataSource)
public java.lang.String getDescription()
MiningAssistantgetDescription in class DefaultMiningAssistantpublic void getInitialAtomsFromSeeds(java.util.Collection<ByteString> relations, double minCardinality, java.util.Collection<Rule> output)
MiningAssistantgetInitialAtomsFromSeeds in class DefaultMiningAssistantminCardinality - Only relations of size bigger or equal than this value will be considered.output - The results of the method are added directly to this collection.public void getInitialAtoms(double minSupportThreshold,
java.util.Collection<Rule> output)
MiningAssistantgetInitialAtoms in class DefaultMiningAssistantminSupportThreshold - Only relations of size bigger or equal than this value will
be considered.public void getDanglingAtoms(Rule query, double minCardinality, java.util.Collection<Rule> output)
DefaultMiningAssistantgetDanglingAtoms in class DefaultMiningAssistantpublic void calculateConfidenceMetrics(Rule candidate)
calculateConfidenceMetrics in class DefaultMiningAssistantpublic boolean testConfidenceThresholds(Rule candidate)
MiningAssistanttestConfidenceThresholds in class MiningAssistant