[Mulgara-general] isn't there a way to create a non-persited model
Andrae Muys
andrae at netymon.com
Tue May 20 17:00:58 PDT 2008
On 21/05/2008, at 12:31 AM, Paul Gearon wrote:
> On Tue, May 20, 2008 at 5:10 AM, David Smith <DMS at viewpointusa.com>
> wrote:
>> Ok, I remember seeing this but can't find it.
>> Isn't there a way to create a model that exists "in-memory" only,
>> and is not
>> written to disk?
>>
>> Looked all over but can't find it.
>
> There's a MemoryModel type. You create it with:
>
> create <your:graph/name> <mulgara:MemoryModel>;
>
>
> I just tested this out, and discovered that the MemoryModel is not
> loaded as an accessible type by default. It is being loaded, but is
> only accessible by the internal system. Sorry, I'm not sure why this
> is the case.
>
> You can enable it by adding the following line to the list of
> resolvers in config/mulgara-config.xml
> <ResolverFactory
> type="org.mulgara.resolver.memory.MemoryResolverFactory"/>
>
> And then re-building the system (since the config file is built into
> the final JAR file). I'll try to make sure this is enabled by default
> soon.
Or alternatively you can either repack the jar with the new config
file, or simply start the server with the -c option. The config file
in the jar is the default config file, we have always expected that
this would probably need to be overridden in deployment by use of the
command-line flag.
Andrae
--
Andrae Muys
andrae at netymon.com
Senior RDF/Semantic-Web Consultant
Netymon Pty Ltd
More information about the Mulgara-general
mailing list