Class ExplainInstanceService
Represents the Explain Instance Service provided by a Pellet Server.
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 ExplainInstanceService : ExplainService
Methods
| Improve this Doc View SourceExplainInstance(INode, INode)
Gets a Graph explaining why an Instance is of the given Class.
Declaration
public IGraph ExplainInstance(INode instance, INode cls)
Parameters
Type | Name | Description |
---|---|---|
INode | instance | Instance. |
INode | cls | Class. |
Returns
Type | Description |
---|---|
IGraph |
ExplainInstance(INode, INode, GraphCallback, Object)
Gets a Graph explaining why an Instance is of the given Class.
Declaration
public void ExplainInstance(INode instance, INode cls, GraphCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
INode | instance | Instance. |
INode | cls | Class. |
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.