On 06/03/14 13:03, Rodrigo Antonialli wrote:
Hi!

I have a question about namespaces in Fuseki:

Is it possible to manage the stored prefixes in a TDB?!

I know that once you load a model in RDF/XML (and Turtle maybe) format, the
prefixes are stored in TDB.

all formats - the parsers generate a stream of events and that goes into the prefix code.

The "problem" is that I cleared all my graphs (CLEAR ALL), but the prefixes
are still there, even after restart (this is because the prefixes are
stored in TDB).

Well, is it possible to clear these prefixes without remove and re-create
the TDB?

Sort of - if you stop Fuseki then delete the prefix files,

prefix2id.dat
prefix2id.idn
prefixIdx.dat
prefixIdx.idn
prefixes.dat

then restart, it should be prefix-less.


Is there some iniciative around to give Fuseki the feature of prefixes
management?

If not, I'd like to give a try and maybe develop a contribution.

That would be great.

If you unbundle the DatasetGraph of a service to get the base DatasetGraphTDB (inside a transaction ...) you can manipulate the DatasetPrefixesTDB.


What I'm also interested  is the ability to define a default prefix set to
be used in every query, so there wouldn't be the need to declare them every
time (useful for common prefixes like rdf, rtdfs, owl).

For now, I've only edited the sparql.tpl and added the queries directly
into the textarea.

It maybe better done in the client but it's certainly possible in the server.

We have been working on
https://svn.apache.org/repos/asf/jena/branches/jena-fuseki-new-ui/

which includes (a version of) Ian's https://github.com/epimorphics/qonsole. That has default prefix setting - see the README.

        Andy



Regards!

Rodrigo C. Antonialli
======================================
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato:  (19) 98136-2347
               [email protected]
               Skype: rc_antonialli


Reply via email to