public class KeyMinerMiningAssistant 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 |
|---|
KeyMinerMiningAssistant(KB dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
getClosingAtoms(Rule query,
double minSupportThreshold,
java.util.Collection<Rule> output)
Returns all candidates obtained by adding a composite closing edge of the form
r(x, z), r(y, z) where x, y are the head variables of the rule sent as argument.
|
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 |
getInitialAtomsFromSeeds(java.util.Collection<ByteString> seedsRelations,
double minSupportThreshold,
java.util.Collection<Rule> output)
We enforce always an equals relation on the head, no matter if the user provides
seeds relations.
|
calculateConfidenceMetrics, computeBodySize, computeCardinality, computePcaBodySize, computePCAConfidence, computeStandardConfidence, containsHardCase, getDanglingAtoms, getInitialAtoms, 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, testConfidenceThresholds, testLengthpublic KeyMinerMiningAssistant(KB dataSource)
public java.lang.String getDescription()
MiningAssistantgetDescription in class DefaultMiningAssistantpublic void getInitialAtomsFromSeeds(java.util.Collection<ByteString> seedsRelations, double minSupportThreshold, java.util.Collection<Rule> output)
getInitialAtomsFromSeeds in class DefaultMiningAssistantminSupportThreshold - 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 getDanglingAtoms(Rule query, double minCardinality, java.util.Collection<Rule> output)
DefaultMiningAssistantgetDanglingAtoms in class DefaultMiningAssistantpublic void getClosingAtoms(Rule query, double minSupportThreshold, java.util.Collection<Rule> output)
getClosingAtoms in class DefaultMiningAssistantcurrentNode - minSupportThreshold - omittedVariables -