Class SimilarityService
Represents the Similarity Service provided by a Pellet Knowledge Base.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.Inference.Pellet.Services
Assembly: dotNetRDF.dll
Syntax
public class SimilarityService : PelletService
Methods
| Improve this Doc View SourceSimilarity(Int32, String)
Gets a list of key value pairs listing Similar Individuals and their Similarity scores.
Declaration
public List<KeyValuePair<INode, double>> Similarity(int number, string individual)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Similar Individuals. |
System.String | individual | QName of a Individual to find Similar Individuals to. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<INode, System.Double>> |
Similarity(Int32, String, PelletSimilarityServiceCallback, Object)
Gets a list of key value pairs listing Similar Individuals and their Similarity scores.
Declaration
public void Similarity(int number, string individual, PelletSimilarityServiceCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Similar Individuals. |
System.String | individual | QName of a Individual to find Similar Individuals to. |
PelletSimilarityServiceCallback | callback | Callback to invoke when the operation completes. |
System.Object | state | 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.
|
Improve this Doc
View Source
SimilarityRaw(Int32, String)
Gets the raw Similarity Graph for the Knowledge Base.
Declaration
public IGraph SimilarityRaw(int number, string individual)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Similar Individuals. |
System.String | individual | QName of a Individual to find Similar Individuals to. |
Returns
Type | Description |
---|---|
IGraph |
SimilarityRaw(Int32, String, GraphCallback, Object)
Gets the raw Similarity Graph for the Knowledge Base.
Declaration
public void SimilarityRaw(int number, string individual, GraphCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Similar Individuals. |
System.String | individual | QName of a Individual to find Similar Individuals to. |
GraphCallback | callback | Callback to invoke when the operation completes. |
System.Object | state | 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.