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.
Implements
Inherited Members
Namespace: VDS.RDF.Configuration
Assembly: dotNetRdf.dll
Syntax
public class ConfigurationLoader : IConfigurationLoader
Remarks
Constructors
| Edit this page View SourceConfigurationLoader(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 |
ConfigurationLoader(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 | |
| bool | autoConfigure |
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 |
|---|---|---|
| Uri | graphUri |
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 |
|---|---|---|
| Uri | graphUri | |
| bool | autoConfigure |
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 |
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 | |
| bool | autoConfigure |
Fields
| Edit this page View SourceClassAlgebraOptimiser
URI Constants for configuration classes.
Declaration
public const string ClassAlgebraOptimiser = "http://www.dotnetrdf.org/configuration#AlgebraOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
ClassDatasetParser
URI Constants for configuration classes.
Declaration
public const string ClassDatasetParser = "http://www.dotnetrdf.org/configuration#DatasetParser"
Field Value
| Type | Description |
|---|---|
| string |
ClassDatasetWriter
URI Constants for configuration classes.
Declaration
public const string ClassDatasetWriter = "http://www.dotnetrdf.org/configuration#DatasetWriter"
Field Value
| Type | Description |
|---|---|
| string |
ClassFederatedSparqlQueryClient
URI Constants for configuration classes.
Declaration
public const string ClassFederatedSparqlQueryClient = "http://www.dotnetrdf.org/configuration#FederatedSparqlQueryClient"
Field Value
| Type | Description |
|---|---|
| string |
ClassGraph
URI Constants for configuration classes.
Declaration
public const string ClassGraph = "http://www.dotnetrdf.org/configuration#Graph"
Field Value
| Type | Description |
|---|---|
| string |
ClassGraphCollection
URI Constants for configuration classes.
Declaration
public const string ClassGraphCollection = "http://www.dotnetrdf.org/configuration#GraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
ClassHttpHandler
URI Constants for configuration classes.
Declaration
public const string ClassHttpHandler = "http://www.dotnetrdf.org/configuration#HttpHandler"
Field Value
| Type | Description |
|---|---|
| string |
ClassObjectFactory
URI Constants for configuration classes.
Declaration
public const string ClassObjectFactory = "http://www.dotnetrdf.org/configuration#ObjectFactory"
Field Value
| Type | Description |
|---|---|
| string |
ClassOwlReasoner
URI Constants for configuration classes.
Declaration
public const string ClassOwlReasoner = "http://www.dotnetrdf.org/configuration#OwlReasoner"
Field Value
| Type | Description |
|---|---|
| string |
ClassPermission
URI Constants for configuration classes.
Declaration
public const string ClassPermission = "http://www.dotnetrdf.org/configuration#Permission"
Field Value
| Type | Description |
|---|---|
| string |
ClassProxy
URI Constants for configuration classes.
Declaration
public const string ClassProxy = "http://www.dotnetrdf.org/configuration#Proxy"
Field Value
| Type | Description |
|---|---|
| string |
ClassQueryOptimiser
URI Constants for configuration classes.
Declaration
public const string ClassQueryOptimiser = "http://www.dotnetrdf.org/configuration#QueryOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
ClassRdfParser
URI Constants for configuration classes.
Declaration
public const string ClassRdfParser = "http://www.dotnetrdf.org/configuration#RdfParser"
Field Value
| Type | Description |
|---|---|
| string |
ClassRdfWriter
URI Constants for configuration classes.
Declaration
public const string ClassRdfWriter = "http://www.dotnetrdf.org/configuration#RdfWriter"
Field Value
| Type | Description |
|---|---|
| string |
ClassReasoner
URI Constants for configuration classes.
Declaration
public const string ClassReasoner = "http://www.dotnetrdf.org/configuration#Reasoner"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlDataset
URI Constants for configuration classes.
Declaration
public const string ClassSparqlDataset = "http://www.dotnetrdf.org/configuration#SparqlDataset"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlEndpoint = "http://www.dotnetrdf.org/configuration#SparqlEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlExpressionFactory
URI Constants for configuration classes.
Declaration
public const string ClassSparqlExpressionFactory = "http://www.dotnetrdf.org/configuration#SparqlExpressionFactory"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlHttpProtocolProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlHttpProtocolProcessor = "http://www.dotnetrdf.org/configuration#SparqlHttpProtocolProcessor"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlOperator
URI Constants for configuration classes.
Declaration
public const string ClassSparqlOperator = "http://www.dotnetrdf.org/configuration#SparqlOperator"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlPropertyFunctionFactory
URI Constants for configuration classes.
Declaration
public const string ClassSparqlPropertyFunctionFactory = "http://www.dotnetrdf.org/configuration#SparqlPropertyFunctionFactory"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlQueryClient
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryClient = "http://www.dotnetrdf.org/configuration#SparqlQueryClient"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlQueryEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryEndpoint = "http://www.dotnetrdf.org/configuration#SparqlQueryEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlQueryProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlQueryProcessor = "http://www.dotnetrdf.org/configuration#SparqlQueryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlResultsParser
URI Constants for configuration classes.
Declaration
public const string ClassSparqlResultsParser = "http://www.dotnetrdf.org/configuration#SparqlResultsParser"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlResultsWriter
URI Constants for configuration classes.
Declaration
public const string ClassSparqlResultsWriter = "http://www.dotnetrdf.org/configuration#SparqlResultsWriter"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlUpdateClient
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateClient = "http://www.dotnetrdf.org/configuration#SparqlUpdateClient"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlUpdateEndpoint
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateEndpoint = "http://www.dotnetrdf.org/configuration#SparqlUpdateEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
ClassSparqlUpdateProcessor
URI Constants for configuration classes.
Declaration
public const string ClassSparqlUpdateProcessor = "http://www.dotnetrdf.org/configuration#SparqlUpdateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
ClassStorageProvider
URI Constants for configuration classes.
Declaration
public const string ClassStorageProvider = "http://www.dotnetrdf.org/configuration#StorageProvider"
Field Value
| Type | Description |
|---|---|
| string |
ClassStorageServer
URI Constants for configuration classes.
Declaration
public const string ClassStorageServer = "http://www.dotnetrdf.org/configuration#StorageServer"
Field Value
| Type | Description |
|---|---|
| string |
ClassTripleCollection
URI Constants for configuration classes.
Declaration
public const string ClassTripleCollection = "http://www.dotnetrdf.org/configuration#TripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
ClassTripleStore
URI Constants for configuration classes.
Declaration
public const string ClassTripleStore = "http://www.dotnetrdf.org/configuration#TripleStore"
Field Value
| Type | Description |
|---|---|
| string |
ClassUser
URI Constants for configuration classes.
Declaration
public const string ClassUser = "http://www.dotnetrdf.org/configuration#User"
Field Value
| Type | Description |
|---|---|
| string |
ClassUserGroup
URI Constants for configuration classes.
Declaration
public const string ClassUserGroup = "http://www.dotnetrdf.org/configuration#UserGroup"
Field Value
| Type | Description |
|---|---|
| string |
ConfigurationNamespace
Configuration Namespace URI.
Declaration
public const string ConfigurationNamespace = "http://www.dotnetrdf.org/configuration#"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeGraph
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeGraph = "VDS.RDF.Graph"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeGraphCollection
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeGraphCollection = "VDS.RDF.GraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
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 |
DefaultTypeSparqlQueryProcessor
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeSparqlQueryProcessor = "VDS.RDF.Query.LeviathanQueryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeSparqlUpdateProcessor
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeSparqlUpdateProcessor = "VDS.RDF.Update.LeviathanUpdateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeTripleCollection
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeTripleCollection = "VDS.RDF.TreeIndexedTripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeTripleStore
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeTripleStore = "VDS.RDF.TripleStore"
Field Value
| Type | Description |
|---|---|
| string |
DefaultTypeUserGroup
QName Constants for Default Types for some configuration classes.
Declaration
public const string DefaultTypeUserGroup = "VDS.RDF.Configuration.Permissions"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAction
URI Constants for configuration properties.
Declaration
public const string PropertyAction = "http://www.dotnetrdf.org/configuration#action"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAlgebraOptimiser
URI Constants for configuration properties.
Declaration
public const string PropertyAlgebraOptimiser = "http://www.dotnetrdf.org/configuration#algebraOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAllow
URI Constants for configuration properties.
Declaration
public const string PropertyAllow = "http://www.dotnetrdf.org/configuration#allow"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAssignUri
URI Constants for configuration properties.
Declaration
public const string PropertyAssignUri = "http://www.dotnetrdf.org/configuration#assignUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAsync
URI Constants for configuration properties.
Declaration
public const string PropertyAsync = "http://www.dotnetrdf.org/configuration#async"
Field Value
| Type | Description |
|---|---|
| string |
PropertyAttributeWriting
URI Constants for configuration properties.
Declaration
public const string PropertyAttributeWriting = "http://www.dotnetrdf.org/configuration#attributeWriting"
Field Value
| Type | Description |
|---|---|
| string |
PropertyCacheDuration
URI Constants for configuration properties.
Declaration
public const string PropertyCacheDuration = "http://www.dotnetrdf.org/configuration#cacheDuration"
Field Value
| Type | Description |
|---|---|
| string |
PropertyCacheSliding
URI Constants for configuration properties.
Declaration
public const string PropertyCacheSliding = "http://www.dotnetrdf.org/configuration#cacheSliding"
Field Value
| Type | Description |
|---|---|
| string |
PropertyCatalog
URI Constants for configuration properties.
Declaration
public const string PropertyCatalog = "http://www.dotnetrdf.org/configuration#catalogID"
Field Value
| Type | Description |
|---|---|
| string |
PropertyCompressionLevel
URI Constants for configuration properties.
Declaration
public const string PropertyCompressionLevel = "http://www.dotnetrdf.org/configuration#compressionLevel"
Field Value
| Type | Description |
|---|---|
| string |
PropertyConfigure
URI Constants for configuration properties.
Declaration
public const string PropertyConfigure = "http://www.dotnetrdf.org/configuration#configure"
Field Value
| Type | Description |
|---|---|
| string |
PropertyCredentials
URI Constants for configuration properties.
Declaration
public const string PropertyCredentials = "http://www.dotnetrdf.org/configuration#credentials"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDatabase
URI Constants for configuration properties.
Declaration
public const string PropertyDatabase = "http://www.dotnetrdf.org/configuration#database"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDefaultGraphUri
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultGraphUri = "http://www.dotnetrdf.org/configuration#defaultGraphUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDefaultQueryFile
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultQueryFile = "http://www.dotnetrdf.org/configuration#defaultQueryFile"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDefaultUpdateFile
URI Constants for configuration properties.
Declaration
public const string PropertyDefaultUpdateFile = "http://www.dotnetrdf.org/configuration#defaultUpdateFile"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDeny
URI Constants for configuration properties.
Declaration
public const string PropertyDeny = "http://www.dotnetrdf.org/configuration#deny"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDescribeAlgorithm
URI Constants for configuration properties.
Declaration
public const string PropertyDescribeAlgorithm = "http://www.dotnetrdf.org/configuration#describeAlgorithm"
Field Value
| Type | Description |
|---|---|
| string |
PropertyDtdWriting
URI Constants for configuration properties.
Declaration
public const string PropertyDtdWriting = "http://www.dotnetrdf.org/configuration#dtdWriting"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEnableCors
URI Constants for configuration properties.
Declaration
public const string PropertyEnableCors = "http://www.dotnetrdf.org/configuration#enableCors"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEnableUpdates
URI Constants for configuration properties.
Declaration
public const string PropertyEnableUpdates = "http://www.dotnetrdf.org/configuration#enableUpdates"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEnabled
URI Constants for configuration properties.
Declaration
public const string PropertyEnabled = "http://www.dotnetrdf.org/configuration#enabled"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEncryptConnection
URI Constants for configuration properties.
Declaration
public const string PropertyEncryptConnection = "http://www.dotnetrdf.org/configuration#encryptConnection"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyEndpoint = "http://www.dotnetrdf.org/configuration#endpoint"
Field Value
| Type | Description |
|---|---|
| string |
PropertyEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyEndpointUri = "http://www.dotnetrdf.org/configuration#endpointUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyExpressionFactory
URI Constants for configuration properties.
Declaration
public const string PropertyExpressionFactory = "http://www.dotnetrdf.org/configuration#expressionFactory"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromDataset
URI Constants for configuration properties.
Declaration
public const string PropertyFromDataset = "http://www.dotnetrdf.org/configuration#fromDataset"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromEmbedded
URI Constants for configuration properties.
Declaration
public const string PropertyFromEmbedded = "http://www.dotnetrdf.org/configuration#fromEmbedded"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromFile
URI Constants for configuration properties.
Declaration
public const string PropertyFromFile = "http://www.dotnetrdf.org/configuration#fromFile"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromGraph
URI Constants for configuration properties.
Declaration
public const string PropertyFromGraph = "http://www.dotnetrdf.org/configuration#fromGraph"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromStore
URI Constants for configuration properties.
Declaration
public const string PropertyFromStore = "http://www.dotnetrdf.org/configuration#fromStore"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromString
URI Constants for configuration properties.
Declaration
public const string PropertyFromString = "http://www.dotnetrdf.org/configuration#fromString"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFromUri
URI Constants for configuration properties.
Declaration
public const string PropertyFromUri = "http://www.dotnetrdf.org/configuration#fromUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyFunctionFactory
URI Constants for configuration properties.
Declaration
public const string PropertyFunctionFactory = "http://www.dotnetrdf.org/configuration#propertyFunctionFactory"
Field Value
| Type | Description |
|---|---|
| string |
PropertyHaltOnError
URI Constants for configuration properties.
Declaration
public const string PropertyHaltOnError = "http://www.dotnetrdf.org/configuration#haltOnError"
Field Value
| Type | Description |
|---|---|
| string |
PropertyHighSpeedWriting
URI Constants for configuration properties.
Declaration
public const string PropertyHighSpeedWriting = "http://www.dotnetrdf.org/configuration#highSpeedWriting"
Field Value
| Type | Description |
|---|---|
| string |
PropertyHttpClientName
URI Constants for configuration properties.
Declaration
public const string PropertyHttpClientName = "http://www.dotnetrdf.org/configuration#httpClientName"
Field Value
| Type | Description |
|---|---|
| string |
PropertyImportNamespacesFrom
URI Constants for configuration properties.
Declaration
public const string PropertyImportNamespacesFrom = "http://www.dotnetrdf.org/configuration#importNamespacesFrom"
Field Value
| Type | Description |
|---|---|
| string |
PropertyImports
URI Constants for configuration properties.
Declaration
public const string PropertyImports = "http://www.dotnetrdf.org/configuration#imports"
Field Value
| Type | Description |
|---|---|
| string |
PropertyInternUris
URI Constants for configuration properties.
Declaration
public const string PropertyInternUris = "http://www.dotnetrdf.org/configuration#internUris"
Field Value
| Type | Description |
|---|---|
| string |
PropertyIntroFile
URI Constants for configuration properties.
Declaration
public const string PropertyIntroFile = "http://www.dotnetrdf.org/configuration#introText"
Field Value
| Type | Description |
|---|---|
| string |
PropertyLoadMode
URI Constants for configuration properties.
Declaration
public const string PropertyLoadMode = "http://www.dotnetrdf.org/configuration#loadMode"
Field Value
| Type | Description |
|---|---|
| string |
PropertyMember
URI Constants for configuration properties.
Declaration
public const string PropertyMember = "http://www.dotnetrdf.org/configuration#member"
Field Value
| Type | Description |
|---|---|
| string |
PropertyMultiThreadedWriting
URI Constants for configuration properties.
Declaration
public const string PropertyMultiThreadedWriting = "http://www.dotnetrdf.org/configuration#multiThreadedWriting"
Field Value
| Type | Description |
|---|---|
| string |
PropertyNamedGraphUri
URI Constants for configuration properties.
Declaration
public const string PropertyNamedGraphUri = "http://www.dotnetrdf.org/configuration#namedGraphUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyNormalizeLiterals
URI Constants for configuration properties.
Declaration
public const string PropertyNormalizeLiterals = "http://www.dotnetrdf.org/configuration#normalizeLiterals"
Field Value
| Type | Description |
|---|---|
| string |
PropertyOwlReasoner
URI Constants for configuration properties.
Declaration
public const string PropertyOwlReasoner = "http://www.dotnetrdf.org/configuration#owlReasoner"
Field Value
| Type | Description |
|---|---|
| string |
PropertyPartialResults
URI Constants for configuration properties.
Declaration
public const string PropertyPartialResults = "http://www.dotnetrdf.org/configuration#partialResults"
Field Value
| Type | Description |
|---|---|
| string |
PropertyPassword
URI Constants for configuration properties.
Declaration
public const string PropertyPassword = "http://www.dotnetrdf.org/configuration#password"
Field Value
| Type | Description |
|---|---|
| string |
PropertyPermissionModel
URI Constants for configuration properties.
Declaration
public const string PropertyPermissionModel = "http://www.dotnetrdf.org/configuration#permissionModel"
Field Value
| Type | Description |
|---|---|
| string |
PropertyPort
URI Constants for configuration properties.
Declaration
public const string PropertyPort = "http://www.dotnetrdf.org/configuration#port"
Field Value
| Type | Description |
|---|---|
| string |
PropertyPrettyPrinting
URI Constants for configuration properties.
Declaration
public const string PropertyPrettyPrinting = "http://www.dotnetrdf.org/configuration#prettyPrinting"
Field Value
| Type | Description |
|---|---|
| string |
PropertyProtocolProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyProtocolProcessor = "http://www.dotnetrdf.org/configuration#protocolProcessor"
Field Value
| Type | Description |
|---|---|
| string |
PropertyProxy
URI Constants for configuration properties.
Declaration
public const string PropertyProxy = "http://www.dotnetrdf.org/configuration#proxy"
Field Value
| Type | Description |
|---|---|
| string |
PropertyQueryEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyQueryEndpoint = "http://www.dotnetrdf.org/configuration#queryEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
PropertyQueryEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyQueryEndpointUri = "http://www.dotnetrdf.org/configuration#queryEndpointUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyQueryOptimiser
URI Constants for configuration properties.
Declaration
public const string PropertyQueryOptimiser = "http://www.dotnetrdf.org/configuration#queryOptimiser"
Field Value
| Type | Description |
|---|---|
| string |
PropertyQueryPath
URI Constants for configuration properties.
Declaration
public const string PropertyQueryPath = "http://www.dotnetrdf.org/configuration#queryPath"
Field Value
| Type | Description |
|---|---|
| string |
PropertyQueryProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyQueryProcessor = "http://www.dotnetrdf.org/configuration#queryProcessor"
Field Value
| Type | Description |
|---|---|
| string |
PropertyReadOnly
URI Constants for configuration properties.
Declaration
public const string PropertyReadOnly = "http://www.dotnetrdf.org/configuration#readOnly"
Field Value
| Type | Description |
|---|---|
| string |
PropertyReasoner
URI Constants for configuration properties.
Declaration
public const string PropertyReasoner = "http://www.dotnetrdf.org/configuration#reasoner"
Field Value
| Type | Description |
|---|---|
| string |
PropertyRequiresAuthentication
URI Constants for configuration properties.
Declaration
public const string PropertyRequiresAuthentication = "http://www.dotnetrdf.org/configuration#requiresAuthentication"
Field Value
| Type | Description |
|---|---|
| string |
PropertyServer
URI Constants for configuration properties.
Declaration
public const string PropertyServer = "http://www.dotnetrdf.org/configuration#server"
Field Value
| Type | Description |
|---|---|
| string |
PropertyServiceDescription
URI Constants for configuration properties.
Declaration
public const string PropertyServiceDescription = "http://www.dotnetrdf.org/configuration#serviceDescription"
Field Value
| Type | Description |
|---|---|
| string |
PropertyShowErrors
URI Constants for configuration properties.
Declaration
public const string PropertyShowErrors = "http://www.dotnetrdf.org/configuration#showErrors"
Field Value
| Type | Description |
|---|---|
| string |
PropertyShowQueryForm
URI Constants for configuration properties.
Declaration
public const string PropertyShowQueryForm = "http://www.dotnetrdf.org/configuration#showQueryForm"
Field Value
| Type | Description |
|---|---|
| string |
PropertyShowUpdateForm
URI Constants for configuration properties.
Declaration
public const string PropertyShowUpdateForm = "http://www.dotnetrdf.org/configuration#showUpdateForm"
Field Value
| Type | Description |
|---|---|
| string |
PropertySkipParsing
URI Constants for configuration properties.
Declaration
public const string PropertySkipParsing = "http://www.dotnetrdf.org/configuration#skipParsing"
Field Value
| Type | Description |
|---|---|
| string |
PropertyStorageProvider
URI Constants for configuration properties.
Declaration
public const string PropertyStorageProvider = "http://www.dotnetrdf.org/configuration#storageProvider"
Field Value
| Type | Description |
|---|---|
| string |
PropertyStore
URI Constants for configuration properties.
Declaration
public const string PropertyStore = "http://www.dotnetrdf.org/configuration#storeID"
Field Value
| Type | Description |
|---|---|
| string |
PropertyStylesheet
URI Constants for configuration properties.
Declaration
public const string PropertyStylesheet = "http://www.dotnetrdf.org/configuration#stylesheet"
Field Value
| Type | Description |
|---|---|
| string |
PropertySyntax
URI Constants for configuration properties.
Declaration
public const string PropertySyntax = "http://www.dotnetrdf.org/configuration#syntax"
Field Value
| Type | Description |
|---|---|
| string |
PropertyTimeout
URI Constants for configuration properties.
Declaration
public const string PropertyTimeout = "http://www.dotnetrdf.org/configuration#timeout"
Field Value
| Type | Description |
|---|---|
| string |
PropertyType
URI Constants for configuration properties.
Declaration
public const string PropertyType = "http://www.dotnetrdf.org/configuration#type"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUnionDefaultGraph
URI Constants for configuration properties.
Declaration
public const string PropertyUnionDefaultGraph = "http://www.dotnetrdf.org/configuration#unionDefaultGraph"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUpdateEndpoint
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateEndpoint = "http://www.dotnetrdf.org/configuration#updateEndpoint"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUpdateEndpointUri
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateEndpointUri = "http://www.dotnetrdf.org/configuration#updateEndpointUri"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUpdatePath
URI Constants for configuration properties.
Declaration
public const string PropertyUpdatePath = "http://www.dotnetrdf.org/configuration#updatePath"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUpdateProcessor
URI Constants for configuration properties.
Declaration
public const string PropertyUpdateProcessor = "http://www.dotnetrdf.org/configuration#updateProcessor"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUseCredentialsForProxy
URI Constants for configuration properties.
Declaration
public const string PropertyUseCredentialsForProxy = "http://www.dotnetrdf.org/configuration#useCredentialsForProxy"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUser
URI Constants for configuration properties.
Declaration
public const string PropertyUser = "http://www.dotnetrdf.org/configuration#user"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUserGroup
URI Constants for configuration properties.
Declaration
public const string PropertyUserGroup = "http://www.dotnetrdf.org/configuration#userGroup"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingDataset
URI Constants for configuration properties.
Declaration
public const string PropertyUsingDataset = "http://www.dotnetrdf.org/configuration#usingDataset"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingGraph
URI Constants for configuration properties.
Declaration
public const string PropertyUsingGraph = "http://www.dotnetrdf.org/configuration#usingGraph"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingGraphCollection
URI Constants for configuration properties.
Declaration
public const string PropertyUsingGraphCollection = "http://www.dotnetrdf.org/configuration#usingGraphCollection"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingNodeFactory
URI Constants for configuration properties.
Declaration
public const string PropertyUsingNodeFactory = "http://www.dotnetrdf.org/configuration#usingNodeFactory"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingStore
URI Constants for configuration properties.
Declaration
public const string PropertyUsingStore = "http://www.dotnetrdf.org/configuration#usingStore"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingTripleCollection
URI Constants for configuration properties.
Declaration
public const string PropertyUsingTripleCollection = "http://www.dotnetrdf.org/configuration#usingTripleCollection"
Field Value
| Type | Description |
|---|---|
| string |
PropertyUsingUriFactory
URI Constants for configuration properties.
Declaration
public const string PropertyUsingUriFactory = "http://www.dotnetrdf.org/configuration#usingUriFactory"
Field Value
| Type | Description |
|---|---|
| string |
PropertyWithLanguageTagValidation
URI Constants for configuration properties.
Declaration
public const string PropertyWithLanguageTagValidation = "http://www.dotnetrdf.org/configuration#withLanguageTagValidation"
Field Value
| Type | Description |
|---|---|
| string |
PropertyWithName
URI Constants for configuration properties.
Declaration
public const string PropertyWithName = "http://www.dotnetrdf.org/configuration#withName"
Field Value
| Type | Description |
|---|---|
| string |
PropertyWithParent
URI Constants for configuration properties.
Declaration
public const string PropertyWithParent = "http://www.dotnetrdf.org/configuration#withParent"
Field Value
| Type | Description |
|---|---|
| string |
PropertyWithUri
URI Constants for configuration properties.
Declaration
public const string PropertyWithUri = "http://www.dotnetrdf.org/configuration#withUri"
Field Value
| Type | Description |
|---|---|
| string |
UriSchemeAppSettings
Constants for URI Schemes with special meaning within the Configuration API.
Declaration
public const string UriSchemeAppSettings = "appsetting"
Field Value
| Type | Description |
|---|---|
| string |
UriSchemeConfigureOptions
Constants for URI Schemes with special meaning within the Configuration API.
Declaration
public const string UriSchemeConfigureOptions = "dotnetrdf-configure"
Field Value
| Type | Description |
|---|---|
| string |
Properties
| Edit this page View SourceLoader
Get the loader used to retrieve data from URIs.
Declaration
public static Loader Loader { get; }
Property Value
| Type | Description |
|---|---|
| Loader |
PathResolver
Gets/Sets the in-use Path Resolver.
Declaration
public static IPathResolver PathResolver { get; set; }
Property Value
| Type | Description |
|---|---|
| IPathResolver |
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
| Edit this page 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. |
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. |
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. |
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. |
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. |
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 |
|---|---|
| bool |
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. |
| IEnumerable<INode> | properties | Property Nodes. |
| bool | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| bool | If there is a valid boolean value for any property then that is returned, in any other case the given |
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. |
| bool | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| bool | If there is a valid boolean value for the property then that is returned, in any other case the given |
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 |
|---|---|
| IEnumerable<INode> | Enumeration of values given for the property for the Object. |
GetConfigurationInt32(IGraph, INode, IEnumerable<INode>, int)
Gets the 32-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. |
| IEnumerable<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 |
GetConfigurationInt32(IGraph, INode, INode, int)
Gets the 32-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 |
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. |
| IEnumerable<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 |
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 |
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. |
| IEnumerable<INode> | properties | Properties. |
Returns
| Type | Description |
|---|---|
| INode | First value given for the first property of the Object which is matched. |
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. |
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. |
| IEnumerable<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. |
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. |
GetConfigurationUInt64(IGraph, INode, INode, ulong)
Gets the unsigned 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 ulong GetConfigurationUInt64(IGraph g, INode objNode, INode property, ulong defValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Configuration Graph. |
| INode | objNode | Object Node. |
| INode | property | Property Node. |
| ulong | defValue | Default Value to return if there is no valid boolean value. |
Returns
| Type | Description |
|---|---|
| ulong | If there is a valid unsigned integer value for the property then that is returned, in any other case the given |
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. |
| IEnumerable<INode> | properties | Property Nodes. |
Returns
| Type | Description |
|---|---|
| string |
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 |
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 |
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. |
| bool | 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 |
|---|---|
| bool |
Remarks
If this returns true then loading that object again should be essentially instantaneous as it will come from the cache.
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 |
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. |
| bool | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
LoadConfiguration(Uri)
Loads a Configuration Graph and applies auto-configuration.
Declaration
public static IGraph LoadConfiguration(Uri u)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | u | URI to load from. |
Returns
| Type | Description |
|---|---|
| IGraph |
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 |
|---|---|---|
| Uri | u | URI to load from. |
| bool | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
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 |
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. |
| bool | autoConfigure | Whether to apply auto-configuration. |
Returns
| Type | Description |
|---|---|
| IGraph |
LoadObject(string)
Loads the Object identified by the given blank node identifier as an object.
Declaration
public object LoadObject(string blankNodeIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| string | blankNodeIdentifier |
Returns
| Type | Description |
|---|---|
| object |
Remarks
See remarks under LoadObject(IGraph, INode).
LoadObject(Uri)
Loads the Object identified by the given URI as an object.
Declaration
public object LoadObject(Uri objectIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | objectIdentifier |
Returns
| Type | Description |
|---|---|
| object |
Remarks
See remarks under LoadObject(IGraph, INode).
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 |
|---|---|
| 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(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. |
| Type | targetType | Target Type. |
Returns
| Type | Description |
|---|---|
| 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<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 |
|---|---|---|
| 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. |
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 |