Click or drag to resize

SimilarityServiceSimilarity Method (Int32, String, PelletSimilarityServiceCallback, Object)

Gets a list of key value pairs listing Similar Individuals and their Similarity scores.

Namespace:  VDS.RDF.Query.Inference.Pellet.Services
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public void Similarity(
	int number,
	string individual,
	PelletSimilarityServiceCallback callback,
	Object state
)

Parameters

number
Type: SystemInt32
Number of Similar Individuals.
individual
Type: SystemString
QName of a Individual to find Similar Individuals to.
callback
Type: VDS.RDF.Query.Inference.PelletPelletSimilarityServiceCallback
Callback to invoke when the operation completes.
state
Type: SystemObject
State to pass to the callback.
Remarks
If the operation succeeds the callback will be invoked normally, if there is an error the callback will be invoked with a instance of AsyncError passed as the state which provides access to the error message and the original state passed in.
See Also