Show / Hide Table of Contents

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 Source

Name

Gets the Name of the Knowledge Base.
Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

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

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

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

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

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

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

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

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.

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • Name
    • Services
  • Methods
    • GetService(String)
    • GetService(Type)
    • GetService<T>()
    • GetServices(String)
    • GetServices(Type)
    • SupportsService(String)
    • SupportsService(Type)
    • SupportsService<T>()
  • Extension Methods
Back to top Generated by DocFX