Class ClusterService
Represents the Cluster 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 ClusterService : PelletService
Methods
| Improve this Doc View SourceCluster(Int32)
Gets a list of lists expressing clusters within the Knowledge Base.
Declaration
public List<List<INode>> Cluster(int number)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.List<INode>> |
Cluster(Int32, String)
Gets a list of lists expressing clusters within the Knowledge Base.
Declaration
public List<List<INode>> Cluster(int number, string type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
System.String | type | QName of a Type to cluster around. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.Collections.Generic.List<INode>> |
Cluster(Int32, String, PelletClusterServiceCallback, Object)
Gets a list of lists expressing clusters within the Knowledge Base.
Declaration
public void Cluster(int number, string type, PelletClusterServiceCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
System.String | type | QName of a Type to cluster around. |
PelletClusterServiceCallback | callback | Callback to be invoked when the operation completes. |
System.Object | state | State to be passed 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
Cluster(Int32, PelletClusterServiceCallback, Object)
Gets a list of lists expressing clusters within the Knowledge Base.
Declaration
public void Cluster(int number, PelletClusterServiceCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
PelletClusterServiceCallback | callback | Callback to be invoked when the operation completes. |
System.Object | state | State to be passed 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
ClusterRaw(Int32)
Gets the raw Cluster Graph for the Knowledge Base.
Declaration
public IGraph ClusterRaw(int number)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
Returns
Type | Description |
---|---|
IGraph |
ClusterRaw(Int32, String)
Gets the raw Cluster Graph for the Knowledge Base.
Declaration
public IGraph ClusterRaw(int number, string type)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
System.String | type | QName of a Type to Cluster around. |
Returns
Type | Description |
---|---|
IGraph |
ClusterRaw(Int32, String, GraphCallback, Object)
Gets the raw Cluster Graph for the Knowledge Base.
Declaration
public void ClusterRaw(int number, string type, GraphCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
System.String | type | QName of a Type to Cluster around. |
GraphCallback | callback | Callback to be invoked when the operation completes. |
System.Object | state | State to be passed 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
ClusterRaw(Int32, GraphCallback, Object)
Gets the raw Cluster Graph for the Knowledge Base.
Declaration
public void ClusterRaw(int number, GraphCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number of Clusters. |
GraphCallback | callback | Callback to be invoked when the operation completes. |
System.Object | state | State to be passed 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.