Class KnowledgeBase
Represents a Knowledge Base on a Pellet Server.
Inheritance
System.Object
KnowledgeBase
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 KnowledgeBase
Properties
| Improve this Doc View SourceName
Gets the Name of the Knowledge Base.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Services
Gets the Services provided by this Knowledge Base.
Declaration
public IEnumerable<PelletService> Services { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PelletService> |
Methods
| Improve this Doc View SourceGetService(String)
Gets the first available Service with the given name for this Knowledge Base.
Declaration
public PelletService GetService(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Service Name. |
Returns
Type | Description |
---|---|
PelletService | Either the Service or a Null if the Knowledge Base does not expose a Service with the given name. |
GetService(Type)
Gets the first available implementation of the given Service Type for this Knowledge Base.
Declaration
public PelletService GetService(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | Service Type. |
Returns
Type | Description |
---|---|
PelletService | Either the Service or a Null if the Knowledge Base does not expose a Service of the given Type. |
GetService<T>()
Gets the first available implementation of the desired Service Type.
Declaration
public T GetService<T>()
where T : PelletService
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | Desired Service Type. |
GetServices(String)
Gets all the available services with the given name for this Knowledge Base.
Declaration
public IEnumerable<PelletService> GetServices(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Service Name. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PelletService> |
GetServices(Type)
Gets all the available implementations of the given Service Type for this Knowledge Base.
Declaration
public IEnumerable<PelletService> GetServices(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | Service Type. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PelletService> |
SupportsService(String)
Gets whether a Service is supported by the Knowledge Base.
Declaration
public bool SupportsService(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Service Name. |
Returns
Type | Description |
---|---|
System.Boolean |
SupportsService(Type)
Gets whether a Service is supported by the Knowledge Base.
Declaration
public bool SupportsService(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | Service Type. |
Returns
Type | Description |
---|---|
System.Boolean |
SupportsService<T>()
Gets whether a Service is supported by the Knowledge Base.
Declaration
public bool SupportsService<T>()
where T : PelletService
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T | Service Type. |