(sorry for the delay)
On 11/03/14 17:52, Rodrigo Antonialli wrote:
Hi Andy,
Thanks for your tips about the prefixes files!
I downloaded the new-ui branch and it's awesome! Really a great
improvement.
I understood the prefixes handling at client side. The way it is in the new
UI, the prefixes are set at qonsole config.
I believe it should integrated with server-side management: for example,
the prefixes generated by the graphs imported into a TDB store, should be
loaded in the interface,
so an user can set all of them and also add some he wants, like it's
defined now. This way, the server side management can improve this feature.
One way would be for the /{dataset}/namespaces service that returns the
namespaces so the client can handle them.
Going further, add POST to add namespaces
(/{dataset}/namespaces/{prefix}/{encodedURI} might be REST style ...
YMMV ...) wwith GET/PUT/DELETE
About the development, I have some doubts about setting up the enviroment,
issues, etc.
It's better to send a message in devs list, right?
Yes.
Rodrigo C. Antonialli
======================================
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcantonialli
Contato: (19) 98136-2347
[email protected]
Skype: rc_antonialli
On Sun, Mar 9, 2014 at 3:45 PM, Andy Seaborne <[email protected]> wrote:
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