On 05/08/14 09:42, Amira Sifaoui Ep Ghaddab wrote:
Hi Andy,

Thank you very much for your help, my problem is resolved;
I have a cookies problem .

Fuseki2 does not use cookies itself though IIRC jquery.dataTables does (for the query UI).

(I did find that browsers were caching javascript aggressively).

Now Fuseki2 run as a web application and it detects datasets.

Good!

I try to query my datasets , I have some problems I try to resolve  them :)
Just a question : I have my directory for storing ontologies and datasets
with TDB, I used a servlet for that.
Should my directory be under Fuseki?? or Tomcat??

You can not share a TDB database between JVMs and sharing across webapps in Tomcat will not be reliable.

Databases are managed by the system and it uses statics. When you open a database it must be the same database java objects in order to do caching and transaction management which in turn means coordinated disk access.

The directory for your databases used by Fuseki can be where you want (given they can be large, disk volumes matter).

You can have symbolic links within the Fuseki layout (e.g. under /etc/fuseki/databases or /etc/fuseki/databases itself can be a symbolic link) off to your preferred locations.

In my case, I uplod files (ontologies+datasets)  to store them with TDB.
The  storing directory is under tomcat: I have used this code in my
servlet: getServletContext().getRealPath.
  This is right??

Fuseki config files only know about file names, not the deployment structure of Tomcat.

And, again, a warning that you can't have two running webapps using one TDB database. You can route requests from your webapp/servlet to Fuseki to do SPARQL Update or Graph Store Protocol operations.

        Andy

It is possible to use the Fuseki service components inside your own webapp - this is not documented yet. Fuseki is a collection of servlets, a single database registry and runs using a servlet filter, but the filter is only to separate the dynamic structure of the databases and services from the fixed view of the world provided by web.xml.

Reply via email to