Documentation ¶
Index ¶
- type Condition
- func MakeAboveThresholdCondition(threshold int) Condition
- func MakeAlwaysCondition() Condition
- func MakeBelowThresholdCondition(threshold int) Condition
- func MakeTooFewRecommendationsCondition(threshold int) Condition
- func MakeTooManyRecommendationsCondition(threshold int) Condition
- func MakeTooUnlikelyRecommendationsCondition(threshold float32) Condition
- type Procedure
- func MakeAssessmentAwareDirectProcedure() Procedure
- func MakeDeleteLowFrequencyProcedure(tree *schematree.SchemaTree, parExecs int, stepsize backoff.StepsizeFunc, ...) Procedure
- func MakeSplitPropertyProcedure(tree *schematree.SchemaTree, splitter backoff.SplitterFunc, ...) Procedure
- func MakeWikidataRecommender(useTypes, useProperties bool) Procedure
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition func(*assessment.Instance) bool
Condition : Evaluates is a given strategy entry should run.
func MakeAboveThresholdCondition ¶
Not needed anylonger Helper method to create the above-threshold condition.
func MakeAlwaysCondition ¶
func MakeAlwaysCondition() Condition
Helper method to create a condition that always evaluates to true.
func MakeTooFewRecommendationsCondition ¶
Helper Method to create too-few-recommendations-condition: When the standard recommender returns less than count many recommendations the condition is true, else false
func MakeTooManyRecommendationsCondition ¶
Not needed anylonger Helper Method to create too-many-recommendations-condition: When the standard recommender returns more than count many recommendations the condition is true, else false
func MakeTooUnlikelyRecommendationsCondition ¶
Helper Method to create too-unlikely-recommendations-condition: When the standard recommender returns a recommendation where the top 10 has lower probability than threshhold (in decimal percentage eg 0.5)
type Procedure ¶
type Procedure func(*assessment.Instance) schematree.PropertyRecommendations
Procedure : Procedure to run as a strategy entry.
func MakeAssessmentAwareDirectProcedure ¶
func MakeAssessmentAwareDirectProcedure() Procedure
Helper method to create the direct SchemaTree procedure call.
func MakeDeleteLowFrequencyProcedure ¶
func MakeDeleteLowFrequencyProcedure(tree *schematree.SchemaTree, parExecs int, stepsize backoff.StepsizeFunc, condition backoff.InternalCondition) Procedure
Helper method to create the 'deletelowfrequency' backoff procedure.
func MakeSplitPropertyProcedure ¶
func MakeSplitPropertyProcedure(tree *schematree.SchemaTree, splitter backoff.SplitterFunc, merger backoff.MergerFunc) Procedure
Helper method to create the 'splitproperty' backoff procedure.
func MakeWikidataRecommender ¶
Helper method to create Recommenders using the wikidata recommender
type Workflow ¶
type Workflow []entry
Workflow : Workflow to execute in order to get best recommendation given the input.
func MakePresetWorkflow ¶
func MakePresetWorkflow(name string, tree *schematree.SchemaTree) *Workflow
MakePresetWorkflow : Build a preset strategy that is hard-coded.
func (*Workflow) Push ¶
Push : Add a new strategy entry with less priority than all other existing entries.
func (*Workflow) Recommend ¶
func (wf *Workflow) Recommend(asm *assessment.Instance) schematree.PropertyRecommendations
Recommend : Run the workflow and return the recommended properties. Go through the workflow and execute the first procedure that has a valid condition. That procedure will return the list of recommended properties.