Show / Hide Table of Contents

Class SparqlClientFactory

Factory class for producing SPARQL endpoints from configuration graphs.

Inheritance
System.Object
SparqlClientFactory
Implements
IObjectFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class SparqlClientFactory : IObjectFactory

Methods

| Improve this Doc View Source

CanLoadObject(Type)

Returns whether this Factory is capable of creating objects of the given type.

Declaration
public bool CanLoadObject(Type t)
Parameters
Type Name Description
System.Type t

Target Type.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryLoadObject(IGraph, INode, Type, out object)

Attempts to load an Object of the given type identified by the given Node and returned as the Type that this loader generates.

Declaration
public bool TryLoadObject(IGraph g, INode objNode, Type targetType, out object obj)
Parameters
Type Name Description
IGraph g

Configuration Graph.

INode objNode

Object Node.

System.Type targetType

Target Type.

System.Object obj

Created Object.

Returns
Type Description
System.Boolean

True if the loader succeeded in creating an Object.

Remarks

The Factory should not throw an error if some required configuration is missing as another factory further down the processing chain may still be able to create the object. If the factory encounters errors and all the required configuration information is present then that error should be thrown i.e. class instantiation throws an error or a call to load an object that this object requires fails.

Implements

IObjectFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • CanLoadObject(Type)
    • TryLoadObject(IGraph, INode, Type, out object)
  • Implements
  • Extension Methods
Back to top Generated by DocFX