Show / Hide Table of Contents

Class SimilarityService

Represents the Similarity Service provided by a Pellet Knowledge Base.
Inheritance
System.Object
PelletService
SimilarityService
Inherited Members
PelletService.Name
PelletService.Endpoint
PelletService.MimeTypes
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 Source

Similarity(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>>
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • Similarity(Int32, String)
    • Similarity(Int32, String, PelletSimilarityServiceCallback, Object)
    • SimilarityRaw(Int32, String)
    • SimilarityRaw(Int32, String, GraphCallback, Object)
  • Extension Methods
Back to top Generated by DocFX