public class WikilinksHeadVariablesMiningAssistant extends DefaultMiningAssistant
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
wikiLinkProperty |
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 |
|---|
WikilinksHeadVariablesMiningAssistant(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 closing edge (an edge with two existing variables).
|
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 |
getSpecializationCandidates(Rule query,
double minSupportThreshold,
java.util.Collection<Rule> output) |
void |
setBodyExcludedRelations(java.util.Collection<ByteString> excludedRelations) |
void |
setHeadExcludedRelations(java.util.Collection<ByteString> headExcludedRelations) |
protected boolean |
testLength(Rule candidate)
Check whether the rule meets the length criteria configured in the object.
|
calculateConfidenceMetrics, computeBodySize, computeCardinality, computePcaBodySize, computePCAConfidence, computeStandardConfidence, containsHardCase, getDanglingAtoms, getInitialAtoms, getInitialAtomsFromSeeds, 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, setConfidenceMetric, setCountAlwaysOnSubject, setEnabledConfidenceUpperBounds, setEnabledFunctionalityHeuristic, setEnablePerfectRules, setEnableQueryRewriting, setEnforceConstants, setExploitMaxLengthOption, setKbSchema, setMaxDepth, setPcaConfidenceThreshold, setRecursivityLimit, setStdConfidenceThreshold, setTargetBodyRelations, setVerbose, testConfidenceThresholdspublic WikilinksHeadVariablesMiningAssistant(KB dataSource)
public java.lang.String getDescription()
MiningAssistantgetDescription in class DefaultMiningAssistantpublic void setHeadExcludedRelations(java.util.Collection<ByteString> headExcludedRelations)
setHeadExcludedRelations in class MiningAssistantpublic void setBodyExcludedRelations(java.util.Collection<ByteString> excludedRelations)
setBodyExcludedRelations in class MiningAssistantpublic void getDanglingAtoms(Rule query, double minCardinality, java.util.Collection<Rule> output)
DefaultMiningAssistantgetDanglingAtoms in class DefaultMiningAssistantpublic void getSpecializationCandidates(Rule query, double minSupportThreshold, java.util.Collection<Rule> output)
public void getClosingAtoms(Rule query, double minSupportThreshold, java.util.Collection<Rule> output)
DefaultMiningAssistantgetClosingAtoms in class DefaultMiningAssistantminSupportThreshold - Only candidates with support above or equal this value are returned.protected boolean testLength(Rule candidate)
MiningAssistanttestLength in class MiningAssistant