Class PelletServer
Represents a Connection to a Pellet Server.
Inheritance
System.Object
PelletServer
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
Assembly: dotNetRDF.dll
Syntax
public class PelletServer
Constructors
| Improve this Doc View SourcePelletServer(String)
Creates a new connection to a Pellet Server.
Declaration
public PelletServer(string serverUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverUri | Server URI. |
PelletServer(Uri)
Creates a new connection to a Pellet Server.
Declaration
public PelletServer(Uri serverUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | serverUri | Server URI. |
Properties
| Improve this Doc View SourceKnowledgeBases
Gets the Knowledge Bases available from this Pellet Server.
Declaration
public IEnumerable<KnowledgeBase> KnowledgeBases { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<KnowledgeBase> |
Methods
| Improve this Doc View SourceConnect(String, PelletServerReadyCallback, Object)
Connects to a Pellet Server instance asynchronously invoking the callback when the connection is ready.
Declaration
public static void Connect(string serverUri, PelletServerReadyCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverUri | Server URI. |
PelletServerReadyCallback | callback | Callback to invoke when the connection is ready. |
System.Object | state | State to pass to the callback. |
Connect(Uri, PelletServerReadyCallback, Object)
Connects to a Pellet Server instance asynchronously invoking the callback when the connection is ready.
Declaration
public static void Connect(Uri serverUri, PelletServerReadyCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | serverUri | Server URI. |
PelletServerReadyCallback | callback | Callback to invoke when the connection is ready. |
System.Object | state | State to pass to the callback. |
GetKnowledgeBase(String)
Gets the Knowledge Base with the given Name.
Declaration
public KnowledgeBase GetKnowledgeBase(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Knowledge Base Name. |
Returns
Type | Description |
---|---|
KnowledgeBase |
GetKnowledgeBases(Type)
Gets all the Knowledge Bases which support a given Server.
Declaration
public IEnumerable<KnowledgeBase> GetKnowledgeBases(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | Service Type. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<KnowledgeBase> |
HasKnowledgeBase(String)
Gets whether the Server has a Knowledge Base with the given Name.
Declaration
public bool HasKnowledgeBase(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Knowledge Base Name. |
Returns
Type | Description |
---|---|
System.Boolean |
HasKnowledgeBase(Type)
Gets whether the Server has a Knowledge Base which supports the given Service Type.
Declaration
public bool HasKnowledgeBase(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | Service Type. |
Returns
Type | Description |
---|---|
System.Boolean |