Click or drag to resize

ConfigurationLoaderAutoConfigureStaticOptions Method

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.

Namespace:  VDS.RDF.Configuration
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void AutoConfigureStaticOptions(
	IGraph g
)

Parameters

g
Type: VDS.RDFIGraph
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.

See Also