It should be possible to provide a custom DataFactory at config-level.
The following will be needed for this:
Create provider-data-factory. This is not an actor, but merely a wrapper class that contains 1 field: dataFactory. In the components file, this should accept a dataFactory param, with as default value @rdfjs/data-model (directly require it from the config file). See Components.js documentation on requireName and requireElement: https://componentsjs.readthedocs.io/en/latest/configuration/configurations/nonsemantic/
Add dataFactoryProvider params to all relevant actors (parsers, term transformers (rdf-string, rdf-terms, ...)), and adapt their logic so that they grab the dataFactory from the provider.
Update actor-init-sparql (and others?) config files so that the dataFactoryProvider is instantiated, and passed to all relevant actors.
Issue type:
Description:
It should be possible to provide a custom DataFactory at config-level.
The following will be needed for this:
dataFactory
. In the components file, this should accept adataFactory
param, with as default value@rdfjs/data-model
(directly require it from the config file). See Components.js documentation onrequireName
andrequireElement
: https://componentsjs.readthedocs.io/en/latest/configuration/configurations/nonsemantic/dataFactoryProvider
params to all relevant actors (parsers, term transformers (rdf-string, rdf-terms, ...)), and adapt their logic so that they grab the dataFactory from the provider.dataFactoryProvider
is instantiated, and passed to all relevant actors.Needed for https://github.com/RubenVerborgh/LDflex/issues/3