[Owlim-discussion] Question on Joseki Settings

2011-02-10 Thread Christian Brenninkmeijer

Hi,
I am trying to setup bigowlin to work with Arq through Joseki as I need 
Sparql1.1


I followed the instructions in Section 2.3 of the Jena Adapter document.

But it appears to be completely ignoring what I put in the line
otjena:datasetParam "./location" .

No matter what I put there When I run the query
SELECT DISTINCT ?graph
{
   GRAPH ?graph {
   }
}

I alayws get the result:


Same query from http://localhost:8080/openrdf-workbench/ gets me the 
correct uploaded graph.


My Questions are:
1. What value should I put as "./location"?
2. Does it matter that I am using more recent Jena than the document did?
2.6.4
2.8.7
0.8.9
1.3.3
3.4.3
Same Sesame and Lucene versions as the bigowlin download

Thanks
Christian

PS.
Yes I did do create bigowlin from the sesameConsole as suggested in the 
Start quide
Yes I did try the created folder in 
C:/Users/Christian/AppData/Roaming/Aduna/OpenRDF%20Sesame/repositories/


--
Dr Christian Brenninkmeijer
Department of Computer Science
University of Manchester

___
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion


Re: [Owlim-discussion] Question on Joseki Settings

2011-02-10 Thread Jason Mai
Hi Christian,

In my experience, the situation in question 1 is a little bit strange.
First, I created a OWLIM storage at /home/user/owlimTest. (BTW, my OS is
Ubuntu 10.)

I set otjena:datasetParam to an absolute path "/home/user/owlimTest",
finished other settings then boot tomcat, finding that OWLIM created a
directory "owlim-storage" under /home/user/owlimTest. So even if I load some
data into /home/user/owlimTest, there's only little default data
under /home/user/owlimTest/owlim-storage so my data could not be returned by
queries. I think this is very similar to your case.

Here is the trick: I then created a OWLIM store at /home/user/owlim-storage,
loaded data into it, set otjena:datasetParam to /home/user/ and restart
tomcat, now queries will returns my own data.

But when I shut down tomcat again, the storage would not be shut down
correctly (i.e. crashed), so I have to back up and recover each time when I
reboot tomcat. This is really annoying.

Best,
Jason

2011/2/10 Christian Brenninkmeijer 

>  Hi,
> I am trying to setup bigowlin to work with Arq through Joseki as I need
> Sparql1.1
>
> I followed the instructions in Section 2.3 of the Jena Adapter document.
>
> But it appears to be completely ignoring what I put in the line
> otjena:datasetParam "./location" .
>
> No matter what I put there When I run the query
> SELECT DISTINCT ?graph
> {
>GRAPH ?graph {
>}
> }
>
> I alayws get the result:
>  
>
> Same query from http://localhost:8080/openrdf-workbench/ gets me the
> correct uploaded graph.
>
> My Questions are:
> 1. What value should I put as "./location"?
> 2. Does it matter that I am using more recent Jena than the document did?
> 2.6.4
> 2.8.7
> 0.8.9
> 1.3.3
> 3.4.3
> Same Sesame and Lucene versions as the bigowlin download
>
> Thanks
> Christian
>
> PS.
> Yes I did do create bigowlin from the sesameConsole as suggested in the
> Start quide
> Yes I did try the created folder in
> C:/Users/Christian/AppData/Roaming/Aduna/OpenRDF%20Sesame/repositories/
>
> --
> Dr Christian Brenninkmeijer
> Department of Computer Science
> University of Manchester
>
>
> ___
> OWLIM-discussion mailing list
> OWLIM-discussion@ontotext.com
> http://ontotext.com/mailman/listinfo/owlim-discussion
>
>
___
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion


Re: [Owlim-discussion] Question on Joseki Settings

2011-02-10 Thread Damyan Ognyanoff
Hi Cristian,

let me explain what is causing this weird behavior - when you create a 
repository through the sesame console,  you are doing it so by using a template 
file -bigowlim.ttl - but it uses a 'non-default' value (owlimTest-storage to be 
exact) as a 'default' for the 'storage-folder' config parameter.
If you open that template file -you'll see something like :

 owlim:storage-folder "{%Storage folder|owlimTest-storage%}" ;

where first part (before '|' ) is the hint used by the console and the second 
part is the default value used wehen you just press enter.

So at the end, it will create a subfolder under the 
/repositories/ named after that value, e.g:

<>/repositories//owlimTest-storage

But the Jena bridge uses the OWLIM's default value (because that parameter is 
it not set explicitely by the configuration, specified within the joseki's 
config file) and OWLIM ends configured to use a different subfolder -e.g. 
'owlim-storage' - which is the default value used when no such is provvided.

So the location where the BigOWLIM indices are stored/looked up/ became:
/repositories//owlim-storage

Long story-short - to overcome this subfolder mismatch - add the same value 
that was used while the repository was initially created to the 
'storage-folder' parameter within your josekiconfig.ttl  e.g. - in such a way 
that you end up having:

otjena:bridge <http://www.ontotext.com/trree/owlim#storage-folder> 
"owlimTest-storage" .

statement as part of the joseki ttl's config - e.g. your BigOWLIM dataset 
configuration should looks like (just put the actual location correctly at the 
end):

  ## Initialize BigOWLIM
  [] ja:loadClass "com.ontotext.jena.SesameVocab" .
  otjena:DatasetSesame rdfs:subClassOf ja:RDFDataset .
  otjena:bridge rdf:type otjena:DatasetSesame ;
  rdfs:label "BigOWLIM repository" ;
  <http://www.ontotext.com/trree/owlim#storage-folder> "owlimTest-storage" ;
  otjena:datasetParam "C:/OpenRDF Sesame/repositories/bigowlimTest" .

or as an alternative, you may use the default one, while creating the 
repository by simply change the template file or type it explicitly during its 
creation 

sorry for that inconvenience,

regards,
Damyan Ognyanov
Ontotext AD


  - Original Message ----- 
  From: Christian Brenninkmeijer 
  To: owlim-discussion@ontotext.com 
  Sent: Thursday, February 10, 2011 11:18 AM
  Subject: [Owlim-discussion] Question on Joseki Settings


  Hi,
  I am trying to setup bigowlin to work with Arq through Joseki as I need 
Sparql1.1 

  I followed the instructions in Section 2.3 of the Jena Adapter document.

  But it appears to be completely ignoring what I put in the line
  otjena:datasetParam "./location" .

  No matter what I put there When I run the query
  SELECT DISTINCT ?graph 
  {
 GRAPH ?graph {
 }
  } 

  I alayws get the result:
  <http://www.ontotext.com/explicit>

  Same query from http://localhost:8080/openrdf-workbench/ gets me the correct 
uploaded graph.

  My Questions are:
  1. What value should I put as "./location"?
  2. Does it matter that I am using more recent Jena than the document did?
  2.6.4
  2.8.7
  0.8.9
  1.3.3
  3.4.3
  Same Sesame and Lucene versions as the bigowlin download

  Thanks
  Christian

  PS.
  Yes I did do create bigowlin from the sesameConsole as suggested in the Start 
quide
  Yes I did try the created folder in 
C:/Users/Christian/AppData/Roaming/Aduna/OpenRDF%20Sesame/repositories/

-- 
Dr Christian Brenninkmeijer
Department of Computer Science
University of Manchester

--


  ___
  OWLIM-discussion mailing list
  OWLIM-discussion@ontotext.com
  http://ontotext.com/mailman/listinfo/owlim-discussion
___
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion