2012/5/4 Andy Seaborne <[email protected]>:
> On 04/05/12 08:06, Tayfun Gökmen Halaç wrote:
>>
>> 2012/5/3 Andy Seaborne<[email protected]>:
>
>
>
>> There is a sdbModel description at the beginning of the configuration
>> file.
>>
>> [] ja:loadClass "com.hp.hpl.jena.sdb.SDB" .
>> sdb:DatasetStore rdfs:subClassOf ja:RDFDataset .
>> sdb:Model rdfs:subClassOf ja:Model .
>>
>> Although execQueryProtected() method in SPARQL class expects mysql
>> exception within a QueryStageException, it is thrown within a
>> JenaException by SDB.
>
>
> What haven't been able to determine is why QueryStageException is begin
> throw at all. It's not part of the SDB SPARQL execution if it's a dataset
> and I don't see how a query can get to code that does throw it. Maybe if
> the config is declaring a model.
>
> Without a complete, minimum example, I haven't the material to construct a
> test case.
>
>
>>>>
>>>>
>>>> My modified SPARQL processor cannot obtain a connection although it
>>>> tries
>>>> for the second time and autoreconnect is enabled.
>>>
>>>
>>>
>>> That should work.
>>
>>
>> Unfortunately does not work.
>>
>>>
>>> One way to keep the connection alive is to ask a lightweight query every
>>> hour, e.g "ASK{:x :p :o}" -- the IRIs do not have to be in the data.
>>
>>
>> I have constructed a quartz scheduler to send a query once every four
>> hours while connection timeout of MySQL is eight hours.
>>
>> Which one of the following queries is low-cost?
>>
>> "ASK{:x :p :o}" or "SELECT * WHERE {?s ?p ?o.} LIMIT 1"
>
>
> The ASK one.
I have the configuration below in my config.ttl file.
org.joseki.DatasetDesc creates two datasets for this configuration.
<#voidstore> rdf:type sdb:DatasetStore ;
joseki:poolSize 2 ;
sdb:store <#sdbvoidstore> .
If I understand correctly, these two datasets have two different
connections on mysql. But, if I send a query periodically to the
endpoint, I can only keep only one connection alive. Thus, I need to
configure no connection pool for DatasetStore. Am I right?
Thank you.
Tayfun
>
> Andy
>
>
>>
>>>
>>> Andy
>>>
>>>>
>>>> Tayfun
>>>>
>>>>
>>>> On 27/04/12 17:01, Tayfun Gökmen HALAÇ wrote:
>>>>>
>>>>>
>>>>> Andy,
>>>>>
>>>>> Do you have any comments on Joseki SPARQL processor? Message are
>>>>> answered
>>>>> on a "when I can basis" My expeirnece was that if autoreconnect is
>>>>> enabled,
>>>>> then the first call
>>>>
>>>>
>>>> after a long idle period still failed. Retrying was necessary. But you
>>>> still need autoreconnect. Andy
>>>
>>>
>>>
>