Class ConfigurationLoader
The Configuration Loader is responsible for the loading of Configuration information and objects based upon information encoded in a Graph but more generally may be used for the loading of any type of object whose configuration has been loaded in a Graph and for which a relevant IObjectFactory is available.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class ConfigurationLoader : IConfigurationLoader
Remarks
Constructors
| Improve this Doc View SourceConfigurationLoader(string, bool)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph and optionally applies auto-configuration.
Declaration
public ConfigurationLoader(string file, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| string | file | |
| System.Boolean | autoConfigure |
Remarks
ConfigurationLoader(string)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph and applies auto-configuration.
Declaration
public ConfigurationLoader(string file)
Parameters
| Type | Name | Description |
|---|---|---|
| string | file |
Remarks
ConfigurationLoader(Uri, bool)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph and optionally applies auto-configuration.
Declaration
public ConfigurationLoader(Uri graphUri, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | graphUri | |
| System.Boolean | autoConfigure |
Remarks
ConfigurationLoader(Uri)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph from file and applies auto-configuration.
Declaration
public ConfigurationLoader(Uri graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | graphUri |
Remarks
ConfigurationLoader(IGraph, bool)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph and optionally applies auto-configuration.
Declaration
public ConfigurationLoader(IGraph configGraph, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | configGraph | |
| System.Boolean | autoConfigure |
Remarks
ConfigurationLoader(IGraph)
Creates a new instance of ConfigurationLoader, which loads an existing configuration graph and applies auto-configuration.
Declaration
public ConfigurationLoader(IGraph configGraph)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | configGraph |
Remarks
Fields
| Improve this Doc View SourceClassAlgebraOptimiser
URI Constants for configuration classes.
Declaration
public const string ClassAlgebraOptimiser = "http://www.dotnetrdf.org/configuration#AlgebraOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassDatasetParser
URI Constants for configuration classes.
Declaration
public const string ClassDatasetParser = "http://www.dotnetrdf.org/configuration#DatasetParser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassDatasetWriter
URI Constants for configuration classes.
Declaration
public const string ClassDatasetWriter = "http://www.dotnetrdf.org/configuration#DatasetWriter"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassFederatedSparqlQueryClient
URI Constants for configuration classes.
Declaration
public const string ClassFederatedSparqlQueryClient = "http://www.dotnetrdf.org/configuration#FederatedSparqlQueryClient"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassGraph
URI Constants for configuration classes.
Declaration
public const string ClassGraph = "http://www.dotnetrdf.org/configuration#Graph"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassGraphCollection
URI Constants for configuration classes.
Declaration
public const string ClassGraphCollection = "http://www.dotnetrdf.org/configuration#GraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassHttpHandler
URI Constants for configuration classes.
Declaration
public const string ClassHttpHandler = "http://www.dotnetrdf.org/configuration#HttpHandler"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassObjectFactory
URI Constants for configuration classes.
Declaration
public const string ClassObjectFactory = "http://www.dotnetrdf.org/configuration#ObjectFactory"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassOwlReasoner
URI Constants for configuration classes.
Declaration
public const string ClassOwlReasoner = "http://www.dotnetrdf.org/configuration#OwlReasoner"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassPermission
URI Constants for configuration classes.
Declaration
public const string ClassPermission = "http://www.dotnetrdf.org/configuration#Permission"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassProxy
URI Constants for configuration classes.
Declaration
public const string ClassProxy = "http://www.dotnetrdf.org/configuration#Proxy"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassQueryOptimiser
URI Constants for configuration classes.
Declaration
public const string ClassQueryOptimiser = "http://www.dotnetrdf.org/configuration#QueryOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassRdfParser
URI Constants for configuration classes.
Declaration
public const string ClassRdfParser = "http://www.dotnetrdf.org/configuration#RdfParser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassRdfWriter
URI Constants for configuration classes.
Declaration
public const string ClassRdfWriter = "http://www.dotnetrdf.org/configuration#RdfWriter"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassReasoner
URI Constants for configuration classes.
Declaration
public const string ClassReasoner = "http://www.dotnetrdf.org/configuration#Reasoner"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlDataset
URI Constants for configuration classes.
Declaration
public const string ClassSparqlDataset = "http://www.dotnetrdf.org/configuration#SparqlDataset"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlEndpoint = "http://www.dotnetrdf.org/configuration#SparqlEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlExpressionFactory
URI Constants for configuration classes.
Declaration
public const string ClassSparqlExpressionFactory = "http://www.dotnetrdf.org/configuration#SparqlExpressionFactory"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlHttpProtocolProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlHttpProtocolProcessor = "http://www.dotnetrdf.org/configuration#SparqlHttpProtocolProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlOperator
URI Constants for configuration classes.
Declaration
public const string ClassSparqlOperator = "http://www.dotnetrdf.org/configuration#SparqlOperator"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlPropertyFunctionFactory
URI Constants for configuration classes.
Declaration
public const string ClassSparqlPropertyFunctionFactory = "http://www.dotnetrdf.org/configuration#SparqlPropertyFunctionFactory"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlQueryClient
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryClient = "http://www.dotnetrdf.org/configuration#SparqlQueryClient"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlQueryEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryEndpoint = "http://www.dotnetrdf.org/configuration#SparqlQueryEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlQueryProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryProcessor = "http://www.dotnetrdf.org/configuration#SparqlQueryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlResultsParser
URI Constants for configuration classes.
Declaration
public const string ClassSparqlResultsParser = "http://www.dotnetrdf.org/configuration#SparqlResultsParser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlResultsWriter
URI Constants for configuration classes.
Declaration
public const string ClassSparqlResultsWriter = "http://www.dotnetrdf.org/configuration#SparqlResultsWriter"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlUpdateClient
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateClient = "http://www.dotnetrdf.org/configuration#SparqlUpdateClient"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlUpdateEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateEndpoint = "http://www.dotnetrdf.org/configuration#SparqlUpdateEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassSparqlUpdateProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateProcessor = "http://www.dotnetrdf.org/configuration#SparqlUpdateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassStorageProvider
URI Constants for configuration classes.
Declaration
public const string ClassStorageProvider = "http://www.dotnetrdf.org/configuration#StorageProvider"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassStorageServer
URI Constants for configuration classes.
Declaration
public const string ClassStorageServer = "http://www.dotnetrdf.org/configuration#StorageServer"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassTripleCollection
URI Constants for configuration classes.
Declaration
public const string ClassTripleCollection = "http://www.dotnetrdf.org/configuration#TripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassTripleStore
URI Constants for configuration classes.
Declaration
public const string ClassTripleStore = "http://www.dotnetrdf.org/configuration#TripleStore"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassUser
URI Constants for configuration classes.
Declaration
public const string ClassUser = "http://www.dotnetrdf.org/configuration#User"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ClassUserGroup
URI Constants for configuration classes.
Declaration
public const string ClassUserGroup = "http://www.dotnetrdf.org/configuration#UserGroup"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
ConfigurationNamespace
Configuration Namespace URI.
Declaration
public const string ConfigurationNamespace = "http://www.dotnetrdf.org/configuration#"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeGraph
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeGraph = "VDS.RDF.Graph"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeGraphCollection
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeGraphCollection = "VDS.RDF.GraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeSparqlHttpProtocolProcessor
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeSparqlHttpProtocolProcessor = "VDS.RDF.Update.Protocol.LeviathanProtocolProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeSparqlQueryProcessor
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeSparqlQueryProcessor = "VDS.RDF.Query.LeviathanQueryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeSparqlUpdateProcessor
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeSparqlUpdateProcessor = "VDS.RDF.Update.LeviathanUpdateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeTripleCollection
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeTripleCollection = "VDS.RDF.TreeIndexedTripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeTripleStore
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeTripleStore = "VDS.RDF.TripleStore"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
DefaultTypeUserGroup
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeUserGroup = "VDS.RDF.Configuration.Permissions"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAction
URI Constants for configuration properties.
Declaration
public const string PropertyAction = "http://www.dotnetrdf.org/configuration#action"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAlgebraOptimiser
URI Constants for configuration properties.
Declaration
public const string PropertyAlgebraOptimiser = "http://www.dotnetrdf.org/configuration#algebraOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAllow
URI Constants for configuration properties.
Declaration
public const string PropertyAllow = "http://www.dotnetrdf.org/configuration#allow"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAssignUri
URI Constants for configuration properties.
Declaration
public const string PropertyAssignUri = "http://www.dotnetrdf.org/configuration#assignUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAsync
URI Constants for configuration properties.
Declaration
public const string PropertyAsync = "http://www.dotnetrdf.org/configuration#async"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyAttributeWriting
URI Constants for configuration properties.
Declaration
public const string PropertyAttributeWriting = "http://www.dotnetrdf.org/configuration#attributeWriting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyCacheDuration
URI Constants for configuration properties.
Declaration
public const string PropertyCacheDuration = "http://www.dotnetrdf.org/configuration#cacheDuration"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyCacheSliding
URI Constants for configuration properties.
Declaration
public const string PropertyCacheSliding = "http://www.dotnetrdf.org/configuration#cacheSliding"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyCatalog
URI Constants for configuration properties.
Declaration
public const string PropertyCatalog = "http://www.dotnetrdf.org/configuration#catalogID"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyCompressionLevel
URI Constants for configuration properties.
Declaration
public const string PropertyCompressionLevel = "http://www.dotnetrdf.org/configuration#compressionLevel"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyConfigure
URI Constants for configuration properties.
Declaration
public const string PropertyConfigure = "http://www.dotnetrdf.org/configuration#configure"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyCredentials
URI Constants for configuration properties.
Declaration
public const string PropertyCredentials = "http://www.dotnetrdf.org/configuration#credentials"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDatabase
URI Constants for configuration properties.
Declaration
public const string PropertyDatabase = "http://www.dotnetrdf.org/configuration#database"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDefaultGraphUri
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultGraphUri = "http://www.dotnetrdf.org/configuration#defaultGraphUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDefaultQueryFile
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultQueryFile = "http://www.dotnetrdf.org/configuration#defaultQueryFile"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDefaultUpdateFile
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultUpdateFile = "http://www.dotnetrdf.org/configuration#defaultUpdateFile"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDeny
URI Constants for configuration properties.
Declaration
public const string PropertyDeny = "http://www.dotnetrdf.org/configuration#deny"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDescribeAlgorithm
URI Constants for configuration properties.
Declaration
public const string PropertyDescribeAlgorithm = "http://www.dotnetrdf.org/configuration#describeAlgorithm"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyDtdWriting
URI Constants for configuration properties.
Declaration
public const string PropertyDtdWriting = "http://www.dotnetrdf.org/configuration#dtdWriting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEnableCors
URI Constants for configuration properties.
Declaration
public const string PropertyEnableCors = "http://www.dotnetrdf.org/configuration#enableCors"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEnabled
URI Constants for configuration properties.
Declaration
public const string PropertyEnabled = "http://www.dotnetrdf.org/configuration#enabled"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEnableUpdates
URI Constants for configuration properties.
Declaration
public const string PropertyEnableUpdates = "http://www.dotnetrdf.org/configuration#enableUpdates"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEncryptConnection
URI Constants for configuration properties.
Declaration
public const string PropertyEncryptConnection = "http://www.dotnetrdf.org/configuration#encryptConnection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyEndpoint = "http://www.dotnetrdf.org/configuration#endpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyEndpointUri = "http://www.dotnetrdf.org/configuration#endpointUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyExpressionFactory
URI Constants for configuration properties.
Declaration
public const string PropertyExpressionFactory = "http://www.dotnetrdf.org/configuration#expressionFactory"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromDataset
URI Constants for configuration properties.
Declaration
public const string PropertyFromDataset = "http://www.dotnetrdf.org/configuration#fromDataset"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromEmbedded
URI Constants for configuration properties.
Declaration
public const string PropertyFromEmbedded = "http://www.dotnetrdf.org/configuration#fromEmbedded"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromFile
URI Constants for configuration properties.
Declaration
public const string PropertyFromFile = "http://www.dotnetrdf.org/configuration#fromFile"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromGraph
URI Constants for configuration properties.
Declaration
public const string PropertyFromGraph = "http://www.dotnetrdf.org/configuration#fromGraph"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromStore
URI Constants for configuration properties.
Declaration
public const string PropertyFromStore = "http://www.dotnetrdf.org/configuration#fromStore"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromString
URI Constants for configuration properties.
Declaration
public const string PropertyFromString = "http://www.dotnetrdf.org/configuration#fromString"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFromUri
URI Constants for configuration properties.
Declaration
public const string PropertyFromUri = "http://www.dotnetrdf.org/configuration#fromUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyFunctionFactory
URI Constants for configuration properties.
Declaration
public const string PropertyFunctionFactory = "http://www.dotnetrdf.org/configuration#propertyFunctionFactory"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyHaltOnError
URI Constants for configuration properties.
Declaration
public const string PropertyHaltOnError = "http://www.dotnetrdf.org/configuration#haltOnError"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyHighSpeedWriting
URI Constants for configuration properties.
Declaration
public const string PropertyHighSpeedWriting = "http://www.dotnetrdf.org/configuration#highSpeedWriting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyHttpClientName
URI Constants for configuration properties.
Declaration
public const string PropertyHttpClientName = "http://www.dotnetrdf.org/configuration#httpClientName"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyImportNamespacesFrom
URI Constants for configuration properties.
Declaration
public const string PropertyImportNamespacesFrom = "http://www.dotnetrdf.org/configuration#importNamespacesFrom"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyImports
URI Constants for configuration properties.
Declaration
public const string PropertyImports = "http://www.dotnetrdf.org/configuration#imports"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyIntroFile
URI Constants for configuration properties.
Declaration
public const string PropertyIntroFile = "http://www.dotnetrdf.org/configuration#introText"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyLoadMode
URI Constants for configuration properties.
Declaration
public const string PropertyLoadMode = "http://www.dotnetrdf.org/configuration#loadMode"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyMember
URI Constants for configuration properties.
Declaration
public const string PropertyMember = "http://www.dotnetrdf.org/configuration#member"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyMultiThreadedWriting
URI Constants for configuration properties.
Declaration
public const string PropertyMultiThreadedWriting = "http://www.dotnetrdf.org/configuration#multiThreadedWriting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyNamedGraphUri
URI Constants for configuration properties.
Declaration
public const string PropertyNamedGraphUri = "http://www.dotnetrdf.org/configuration#namedGraphUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyOwlReasoner
URI Constants for configuration properties.
Declaration
public const string PropertyOwlReasoner = "http://www.dotnetrdf.org/configuration#owlReasoner"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyPartialResults
URI Constants for configuration properties.
Declaration
public const string PropertyPartialResults = "http://www.dotnetrdf.org/configuration#partialResults"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyPassword
URI Constants for configuration properties.
Declaration
public const string PropertyPassword = "http://www.dotnetrdf.org/configuration#password"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyPermissionModel
URI Constants for configuration properties.
Declaration
public const string PropertyPermissionModel = "http://www.dotnetrdf.org/configuration#permissionModel"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyPort
URI Constants for configuration properties.
Declaration
public const string PropertyPort = "http://www.dotnetrdf.org/configuration#port"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyPrettyPrinting
URI Constants for configuration properties.
Declaration
public const string PropertyPrettyPrinting = "http://www.dotnetrdf.org/configuration#prettyPrinting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyProtocolProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyProtocolProcessor = "http://www.dotnetrdf.org/configuration#protocolProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyProxy
URI Constants for configuration properties.
Declaration
public const string PropertyProxy = "http://www.dotnetrdf.org/configuration#proxy"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyQueryEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyQueryEndpoint = "http://www.dotnetrdf.org/configuration#queryEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyQueryEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyQueryEndpointUri = "http://www.dotnetrdf.org/configuration#queryEndpointUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyQueryOptimiser
URI Constants for configuration properties.
Declaration
public const string PropertyQueryOptimiser = "http://www.dotnetrdf.org/configuration#queryOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyQueryPath
URI Constants for configuration properties.
Declaration
public const string PropertyQueryPath = "http://www.dotnetrdf.org/configuration#queryPath"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyQueryProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyQueryProcessor = "http://www.dotnetrdf.org/configuration#queryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyReadOnly
URI Constants for configuration properties.
Declaration
public const string PropertyReadOnly = "http://www.dotnetrdf.org/configuration#readOnly"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyReasoner
URI Constants for configuration properties.
Declaration
public const string PropertyReasoner = "http://www.dotnetrdf.org/configuration#reasoner"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyRequiresAuthentication
URI Constants for configuration properties.
Declaration
public const string PropertyRequiresAuthentication = "http://www.dotnetrdf.org/configuration#requiresAuthentication"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyServer
URI Constants for configuration properties.
Declaration
public const string PropertyServer = "http://www.dotnetrdf.org/configuration#server"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyServiceDescription
URI Constants for configuration properties.
Declaration
public const string PropertyServiceDescription = "http://www.dotnetrdf.org/configuration#serviceDescription"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyShowErrors
URI Constants for configuration properties.
Declaration
public const string PropertyShowErrors = "http://www.dotnetrdf.org/configuration#showErrors"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyShowQueryForm
URI Constants for configuration properties.
Declaration
public const string PropertyShowQueryForm = "http://www.dotnetrdf.org/configuration#showQueryForm"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyShowUpdateForm
URI Constants for configuration properties.
Declaration
public const string PropertyShowUpdateForm = "http://www.dotnetrdf.org/configuration#showUpdateForm"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertySkipParsing
URI Constants for configuration properties.
Declaration
public const string PropertySkipParsing = "http://www.dotnetrdf.org/configuration#skipParsing"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyStorageProvider
URI Constants for configuration properties.
Declaration
public const string PropertyStorageProvider = "http://www.dotnetrdf.org/configuration#storageProvider"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyStore
URI Constants for configuration properties.
Declaration
public const string PropertyStore = "http://www.dotnetrdf.org/configuration#storeID"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyStylesheet
URI Constants for configuration properties.
Declaration
public const string PropertyStylesheet = "http://www.dotnetrdf.org/configuration#stylesheet"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertySyntax
URI Constants for configuration properties.
Declaration
public const string PropertySyntax = "http://www.dotnetrdf.org/configuration#syntax"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyTimeout
URI Constants for configuration properties.
Declaration
public const string PropertyTimeout = "http://www.dotnetrdf.org/configuration#timeout"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyType
URI Constants for configuration properties.
Declaration
public const string PropertyType = "http://www.dotnetrdf.org/configuration#type"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUnionDefaultGraph
URI Constants for configuration properties.
Declaration
public const string PropertyUnionDefaultGraph = "http://www.dotnetrdf.org/configuration#unionDefaultGraph"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUpdateEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateEndpoint = "http://www.dotnetrdf.org/configuration#updateEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUpdateEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateEndpointUri = "http://www.dotnetrdf.org/configuration#updateEndpointUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUpdatePath
URI Constants for configuration properties.
Declaration
public const string PropertyUpdatePath = "http://www.dotnetrdf.org/configuration#updatePath"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUpdateProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateProcessor = "http://www.dotnetrdf.org/configuration#updateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUseCredentialsForProxy
URI Constants for configuration properties.
Declaration
public const string PropertyUseCredentialsForProxy = "http://www.dotnetrdf.org/configuration#useCredentialsForProxy"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUser
URI Constants for configuration properties.
Declaration
public const string PropertyUser = "http://www.dotnetrdf.org/configuration#user"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUserGroup
URI Constants for configuration properties.
Declaration
public const string PropertyUserGroup = "http://www.dotnetrdf.org/configuration#userGroup"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUsingDataset
URI Constants for configuration properties.
Declaration
public const string PropertyUsingDataset = "http://www.dotnetrdf.org/configuration#usingDataset"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUsingGraph
URI Constants for configuration properties.
Declaration
public const string PropertyUsingGraph = "http://www.dotnetrdf.org/configuration#usingGraph"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUsingGraphCollection
URI Constants for configuration properties.
Declaration
public const string PropertyUsingGraphCollection = "http://www.dotnetrdf.org/configuration#usingGraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUsingStore
URI Constants for configuration properties.
Declaration
public const string PropertyUsingStore = "http://www.dotnetrdf.org/configuration#usingStore"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyUsingTripleCollection
URI Constants for configuration properties.
Declaration
public const string PropertyUsingTripleCollection = "http://www.dotnetrdf.org/configuration#usingTripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
PropertyWithUri
URI Constants for configuration properties.
Declaration
public const string PropertyWithUri = "http://www.dotnetrdf.org/configuration#withUri"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
UriSchemeAppSettings
Constants for URI Schemes with special meaning within the Configuration API.
Declaration
public const string UriSchemeAppSettings = "appsetting"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
UriSchemeConfigureOptions
Constants for URI Schemes with special meaning within the Configuration API.
Declaration
public const string UriSchemeConfigureOptions = "dotnetrdf-configure"
Field Value
| Type | Description |
|---|---|
| string |
Remarks
Properties
| Improve this Doc View SourceLoader
Get the loader used to retrieve data from URIs.
Declaration
public static Loader Loader { get; }
Property Value
| Type | Description |
|---|---|
| Loader |
Remarks
PathResolver
Gets/Sets the in-use Path Resolver.
Declaration
public static IPathResolver PathResolver { get; set; }
Property Value
| Type | Description |
|---|---|
| IPathResolver |
Remarks
SettingsProvider
Gets or sets the provider of external settings.
Declaration
public static ISettingsProvider SettingsProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| ISettingsProvider |
Remarks
On .NET Framework defaults to a reader of <appSettings> configuration section.
Methods
| Improve this Doc View SourceAddObjectFactory(IObjectFactory)
Registers an Object Factory with the Configuration Loader.
Declaration
public static void AddObjectFactory(IObjectFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| IObjectFactory | factory | Object Factory. |
Remarks
AutoConfigure(IGraph)
Given a Configuration Graph applies all available auto-configuration based on the contents of the graph.
Declaration
public static void AutoConfigure(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
Remarks
AutoConfigureObjectFactories(IGraph)
Given a Configuration Graph will detect and configure Object Factories defined in the configuration.
Declaration
public static void AutoConfigureObjectFactories(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
Remarks
AutoConfigureReadersAndWriters(IGraph)
Given a Configuration Graph will detect Readers and Writers for RDF and SPARQL syntaxes and register them with MimeTypesHelper. This will cause the library defaults to be overridden where appropriate.
Declaration
public static void AutoConfigureReadersAndWriters(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
Remarks
AutoConfigureSparqlOperators(IGraph)
Given a Configuration Graph will detect and configure SPARQL Operators.
Declaration
public static void AutoConfigureSparqlOperators(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
Remarks
AutoConfigureStaticOptions(IGraph)
Given a Configuration Graph will detect and configure static options that are specified using the dnr:configure property with special <dotnetrdf-configure:Class/Property> subject URIs.
Declaration
public static void AutoConfigureStaticOptions(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
Remarks
An example of using this mechanism to configure a static option is as follows:
<dotnetrdf-configure:VDS.RDF.Options#UsePLinqEvaluation> dnr:configure false .
Class and property names must be fully qualified, to specify static options outside of dotNetRDF itself you can add an additional path segment with the assembly name after the initial configure keyword. If the class/property does not exist or the value of the literal cannot be appropriately converted to the type of the property then an exception will be thrown. If there is a problem setting the property (e.g. it does not have a public setter) then an exception will be thrown.
CheckCircularReference(INode, INode, string)
Checks for circular references and throws an error if there is one.
Declaration
public static bool CheckCircularReference(INode a, INode b, string property)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | a | Object you are attempting to load. |
| INode | b | Object being referenced. |
| string | property | QName for the property that makes the reference. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
If the Object you are trying to load and the Object you need to load are equal then this is a circular reference and an error is thrown.
The ConfigurationLoader is not currently capable of detecting more subtle circular references.
ClearCache()
Clears the Object Loader cache (this is not recommended).
Declaration
public static void ClearCache()
Remarks
This method should only be invoked in cases where you have attempted to load an object and some error occurred which was external to dotNetRDF e.g. network connectivity problem and.
CreateConfigurationNode(IGraph, string)
Creates a URI Node that refers to some Configuration property/type.
Declaration
[Obsolete("This method is obsolete and should no longer be used, constants are now URIs so you should just create URI Nodes directly on your Configuration Graph", true)]
public static INode CreateConfigurationNode(IGraph g, string qname)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| string | qname | QName of the property/type. |
Returns
| Type | Description |
|---|---|
| INode |
Remarks
The QName provides should be of the form dnr:qname - the dnr prefix will be automatically be considered to be to the Configuration Namespace which is defined by the ConfigurationNamespace constant.
This function uses caching to ensure that URI Nodes aren't needlessly recreated in order to save memory.
GetConfigurationArray(IGraph, INode, INode)
Gets all the literal values given for a property of a given Object in the Configuration Graph.
Declaration
public static string[] GetConfigurationArray(IGraph g, INode objNode, INode property)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
Returns
| Type | Description |
|---|---|
| string[] |
Remarks
Only returns the value part of Literal Nodes which are given as values for the property i.e. ignores all non-Literals and discards any language/data type from Literals.
GetConfigurationBoolean(IGraph, INode, IEnumerable<INode>, bool)
Gets the Boolean value or a given default of the first instance of the first property for a given Object in the Configuration Graph.
Declaration
public static bool GetConfigurationBoolean(IGraph g, INode objNode, IEnumerable<INode> properties, bool defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Property Nodes. |
| System.Boolean | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If there is a valid boolean value for any property then that is returned, in any other case the given |
Remarks
GetConfigurationBoolean(IGraph, INode, INode, bool)
Gets the Boolean value or a given default of the first instance of a property for a given Object in the Configuration Graph.
Declaration
public static bool GetConfigurationBoolean(IGraph g, INode objNode, INode property, bool defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
| System.Boolean | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If there is a valid boolean value for the property then that is returned, in any other case the given |
Remarks
GetConfigurationData(IGraph, INode, INode)
Gets all the values given for a property of a given Object in the Configuration Graph.
Declaration
public static IEnumerable<INode> GetConfigurationData(IGraph g, INode objNode, INode property)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> | Enumeration of values given for the property for the Object. |
Remarks
GetConfigurationInt32(IGraph, INode, IEnumerable<INode>, int)
Gets the 64 bit Integer value or a given default of the first instance of the first property for a given Object in the Configuration Graph.
Declaration
public static int GetConfigurationInt32(IGraph g, INode objNode, IEnumerable<INode> properties, int defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Property Nodes. |
| int | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| int | If there is a valid integer value for any property then that is returned, in any other case the given |
Remarks
GetConfigurationInt32(IGraph, INode, INode, int)
Gets the 64 bit Integer value or a given default of the first instance of a property for a given Object in the Configuration Graph.
Declaration
public static int GetConfigurationInt32(IGraph g, INode objNode, INode property, int defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
| int | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| int | If there is a valid integer value for the property then that is returned, in any other case the given |
Remarks
GetConfigurationInt64(IGraph, INode, IEnumerable<INode>, long)
Gets the 64 bit Integer value or a given default of the first instance of the first property for a given Object in the Configuration Graph.
Declaration
public static long GetConfigurationInt64(IGraph g, INode objNode, IEnumerable<INode> properties, long defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Property Nodes. |
| long | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| long | If there is a valid integer value for any property then that is returned, in any other case the given |
Remarks
GetConfigurationInt64(IGraph, INode, INode, long)
Gets the 64 bit Integer value or a given default of the first instance of a property for a given Object in the Configuration Graph.
Declaration
public static long GetConfigurationInt64(IGraph g, INode objNode, INode property, long defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
| long | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| long | If there is a valid integer value for the property then that is returned, in any other case the given |
Remarks
GetConfigurationNode(IGraph, INode, IEnumerable<INode>)
Gets the first value given for the first found property of a given Object in the Configuration Graph.
Declaration
public static INode GetConfigurationNode(IGraph g, INode objNode, IEnumerable<INode> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Properties. |
Returns
| Type | Description |
|---|---|
| INode | First value given for the first property of the Object which is matched. |
Remarks
GetConfigurationNode(IGraph, INode, INode)
Gets the first value given for a property of a given Object in the Configuration Graph.
Declaration
public static INode GetConfigurationNode(IGraph g, INode objNode, INode property)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
Returns
| Type | Description |
|---|---|
| INode | First value given for the property of the Object. |
Remarks
GetConfigurationString(IGraph, INode, IEnumerable<INode>)
Gets the String value or null of the first instance of the first property for a given Object in the Configuration Graph where the value for the property is a Literal Node.
Declaration
public static string GetConfigurationString(IGraph g, INode objNode, IEnumerable<INode> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Property Nodes. |
Returns
| Type | Description |
|---|---|
| string | String value of the first instance of the first property or a null if no values or not a literal value. If you want the String value regardless of Node type then use the GetConfigurationValue function instead. |
Remarks
GetConfigurationString(IGraph, INode, INode)
Gets the String value or null of the first instance of a property for a given Object in the Configuration Graph where the value for the property is a Literal Node.
Declaration
public static string GetConfigurationString(IGraph g, INode objNode, INode property)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
Returns
| Type | Description |
|---|---|
| string | String value of the first instance of the property or a null if no values or not a literal value. If you want the String value regardless of Node type then use the GetConfigurationValue function instead. |
Remarks
GetConfigurationValue(IGraph, INode, IEnumerable<INode>)
Gets the String value or null of the first instance of the first property for a given Object in the Configuration Graph.
Declaration
public static string GetConfigurationValue(IGraph g, INode objNode, IEnumerable<INode> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Collections.Generic.IEnumerable<T><INode> | properties | Property Nodes. |
Returns
| Type | Description |
|---|---|
| string |
Remarks
GetConfigurationValue(IGraph, INode, INode)
Gets the String value or null of the first instance of a property for a given Object in the Configuration Graph.
Declaration
public static string GetConfigurationValue(IGraph g, INode objNode, INode property)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
Returns
| Type | Description |
|---|---|
| string |
Remarks
GetDefaultType(string)
Attempts to return the Default Type to load an Object as when there is no dnr:type property but there is a rdf:type property.
Declaration
public static string GetDefaultType(string typeUri)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeUri | Type URI declared by the rdf:type property. |
Returns
| Type | Description |
|---|---|
| string |
Remarks
GetDefaultType(IGraph, INode)
Attempts to find the Default Type to load an Object as when no explicit dnr:type property has been declared but an rdf:type property has been declared giving a valid Configuration Class.
Declaration
public static string GetDefaultType(IGraph g, INode objNode)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
Returns
| Type | Description |
|---|---|
| string |
Remarks
Note: Only some configuration classes have corresponding default types, in general it is recommended that Configuration Graphs should always use the dnr:type property to explicitly state the intended type of an Object.
GetUsernameAndPassword(IGraph, INode, bool, out string, out string)
Gets the Username and Password specified for a given Object.
Declaration
public static void GetUsernameAndPassword(IGraph g, INode objNode, bool allowCredentials, out string user, out string pwd)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Boolean | allowCredentials | Whether settings may be specified using the dnr:credentials property. |
| string | user | Username. |
| string | pwd | Password. |
Remarks
Username and/or Password will be null if there is no value specified for the relevant properties.
IsCached(IGraph, INode)
Gets whether the given Object has already been loaded and cached.
Declaration
public static bool IsCached(IGraph g, INode objNode)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Remarks
If this returns true then loading that object again should be essentially instantaneous as it will come from the cache.
LoadConfiguration(string, bool)
Loads a Configuration Graph and applies auto-configuration if desired.
Declaration
public static IGraph LoadConfiguration(string file, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| string | file | File to load from. |
| System.Boolean | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadConfiguration(string)
Loads a Configuration Graph and applies auto-configuration.
Declaration
public static IGraph LoadConfiguration(string file)
Parameters
| Type | Name | Description |
|---|---|---|
| string | file | File to load from. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadConfiguration(Uri, bool)
Loads a Configuration Graph and applies auto-configuration if desired.
Declaration
public static IGraph LoadConfiguration(Uri u, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | u | URI to load from. |
| System.Boolean | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadConfiguration(Uri)
Loads a Configuration Graph and applies auto-configuration.
Declaration
public static IGraph LoadConfiguration(Uri u)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | u | URI to load from. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadEmbeddedConfiguration(string, bool)
Loads a Configuration Graph and applies auto-configuration if desired.
Declaration
public static IGraph LoadEmbeddedConfiguration(string resource, bool autoConfigure)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resource | Embedded Resource to load. |
| System.Boolean | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadEmbeddedConfiguration(string)
Loads a Configuration Graph and applies auto-configuration.
Declaration
public static IGraph LoadEmbeddedConfiguration(string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resource | Embedded Resource to load. |
Returns
| Type | Description |
|---|---|
| IGraph |
Remarks
LoadObject(string)
Loads the Object identified by the given blank node identifier as an System.Object.
Declaration
public object LoadObject(string blankNodeIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| string | blankNodeIdentifier |
Returns
| Type | Description |
|---|---|
| System.Object |
Remarks
See remarks under LoadObject(IGraph, INode).
LoadObject(Uri)
Loads the Object identified by the given URI as an System.Object.
Declaration
public object LoadObject(Uri objectIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | objectIdentifier |
Returns
| Type | Description |
|---|---|
| System.Object |
Remarks
See remarks under LoadObject(IGraph, INode).
LoadObject(IGraph, INode, Type)
Loads the Object identified by the given Node as an object of the given type based on information from the Configuration Graph.
Declaration
public static object LoadObject(IGraph g, INode objNode, Type targetType)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| System.Type | targetType | Target Type. |
Returns
| Type | Description |
|---|---|
| System.Object |
Remarks
Callers of this method should be careful to check that the Object returned is of a usable type to them. The Target Type parameter does not guarantee that the return value is of that type it is only used to determine which registered instances of IObjectFactory are potentially capable of creating the desired Object.
Callers should also take care that any Objects returned from this method are disposed of when the caller no longer has a use for them as otherwise the reference kept in the cache here will cause the Object to remain in-memory consuming resources.
LoadObject(IGraph, INode)
Loads the Object identified by the given Node based on information from the Configuration Graph.
Declaration
public static object LoadObject(IGraph g, INode objNode)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
Returns
| Type | Description |
|---|---|
| System.Object |
Remarks
Use this overload when you have a Node which identifies an Object and you don't know what the type of that Object is. This function looks up the dnr:type property for the given Object and then calls the other version of this function providing it with the relevant type information.
LoadObject<T>(string)
Loads the Object identified by the given blank node identifier as an object of the given type based on information from the Configuration Graph.
Declaration
public T LoadObject<T>(string blankNodeIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| string | blankNodeIdentifier |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Remarks
See remarks under LoadObject(IGraph, INode).
LoadObject<T>(Uri)
Loads the Object identified by the given URI as an object of the given type based on information from the Configuration Graph.
Declaration
public T LoadObject<T>(Uri objectIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | objectIdentifier |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Remarks
See remarks under LoadObject(IGraph, INode).
RegisterExtension<T>()
Register an extension to the configuration loader which provides additional object factories.
Declaration
public static void RegisterExtension<T>() where T : IConfigurationExtension
Type Parameters
| Name | Description |
|---|---|
| T | The type of the configuration loader extension class. |
Remarks
ResolveAppSetting(IGraph, INode)
Attempts to resolve special <appsettings> URIs into actual values.
Declaration
public static INode ResolveAppSetting(IGraph g, INode n)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | |
| INode | n |
Returns
| Type | Description |
|---|---|
| INode |
Remarks
These special URIs have the form <appsetting:Key> where Key is the key for an appSetting in your applications configuration file. When used these URIs are resolved at load time into the actual values from your configuration file. This allows you to avoid spreading configuration data over multiple files since you can specify things like connection settings in the Application Config file and then simply reference them in the dotNetRDF configuration file.
Warning: This feature is not supported in the Silverlight build.
ResolvePath(string)
Resolves a Path using the in-use path-resolver.
Declaration
public static string ResolvePath(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Path to resolve. |
Returns
| Type | Description |
|---|---|
| string |