Configuring SPARQL Expression Factories
Expression Factories are classes that are used in the parsing of SPARQL Query and Update requests to generate implementations of extension functions. They allow for the introduction of additional functions into your SPARQL endpoints for specialised data processing, manipulation of other functions.
These classes must implement the SparqlCustomExpressionFactory
interface and have an unparameterised constructor, see the Extension Functions page for details on how to implement custom expression factories.
They can be configured quite simply as follows:
@prefix dnr: <http://www.dotnetrdf.org/configuration#> .
_:factory a dnr:SparqlExpressionFactory ;
dnr:type "YourNamespace.YourType, YourAssembly" .
In this example an expression factory from an external namespace is configured. As described in Configuration API - HTTP Handlers expression factories can be attached to HTTP Handlers using the dnr:expressionFactory
property.