yes only s1 is set.

On 22 January 2014 11:41, Andy Seaborne <[email protected]> wrote:

> On 22/01/14 11:18, Rohana Rajapakse wrote:
>
>> Yes it works!
>>
>
> I take you mean ?s1 is set and ?s is not?
>
> If ?s is set, then check the query you were using to access the data.
>
>
>  Can you please tell me what you mean by "running with default union
>> graph on". I thought we always have a default graph, and if no
>> named-graph is specified in sparql (update or select) queries, the
>> operations are performed against the default graph, i.e. triples being
>> inserted goes in the default graph and select queries return data in all
>> graphs (including the default graph).
>>
>
> That's right and that's the normal mode of operation.  A separate default
> graph.
>
>
>
>> How can use change default union graph to off?
>>
>
> It's off unless something sets it on.
>
> The ways that can happen are:
>
> 1/ In the dataset assembler:
>
> <#dataset> rdf:type      tdb:DatasetTDB ;
>     tdb:location "DB" ;
>     tdb:unionDefaultGraph true ;
>     .
>
> 2/ The server section of the config file:
>
>  ja:context [ ja:cxtName "tdb:unionDefaultGraph" ;  ja:cxtValue true ] ;
>
> 3/ the command line or start up script:
>
> --set tdb:unionDefaultGraph=true
>
>
>
>
>> What exactly is the uri of the default graph?
>>
>
> The URI <urn:x-arq:DefaultGraph> is a pseudo named graph that accesses the
> the storage default graph regardless of whether the query default graph is
> the union of all named graphs.
>
>         Andy
>
>
>> Thanks
>>
>> Rohana
>>
>> -----Original Message-----
>> From: Andy Seaborne [mailto:[email protected]]
>> Sent: 22 January 2014 11:09
>> To: [email protected]
>> Subject: Re: Default graph issue (tdb-backed Fuseki)
>>
>> On 22/01/14 09:29, Rohana Rajapakse wrote:
>>
>>> Hi,
>>>
>>
>> Hi there,
>>
>>
>>>
>>>
>>> I have a tdb-backed Fuseki installation. I am  inserting data using
>>> INSERT DATA sparql query (also tried reading triple data from a file)
>>> without giving a named-graph uri (with GRAPH keyword),
>>>
>>
>> Did you just use the UI or load the data some other way as well?
>>
>>  the query is executed
>>> without errors and in the query forms of the Fuseki web console I see
>>> the message “*Update succeeded*”, but a select query without giving a
>>> named-graph (with GRAPH <…>) does not show the inserted triples.
>>>
>>
>> Could you try this query please:
>>
>> SELECT ?s ?s1 ?s2  {
>>     { ?s ?p ?o }
>>     UNION
>>     { GRAPH <urn:x-arq:DefaultGraph> { ?s1 ?p1 ?o1 } }
>>     UNION
>>     { GRAPH ?g2 { ?s2 ?p2 ?o2 } }
>> }
>>
>> It looks like you are running with default union graph on - maybe it was
>> set globally when the server was started.
>>
>>          Andy
>>
>>  It all works when I inserted data into a named-graph using the
>>> GRAPH<…>
>>>
>>>
>>>
>>> Can someone please let me know what is going on.
>>>
>>>
>>>
>>> I am using Fuseki-1.0.0 with Jena-2.11.0
>>>
>>>
>>>
>>> Here is the TDB config file:
>>>
>>>
>>>
>>> <#service_tdb_all> rdf:type fuseki:Service ;
>>>
>>>      rdfs:label                      "TDB Service (RW)" ;
>>>
>>>      fuseki:name                     "data" ;
>>>
>>>      fuseki:serviceQuery             "query" ;
>>>
>>>      fuseki:serviceQuery             "sparql" ;
>>>
>>>      fuseki:serviceUpdate            "update" ;
>>>
>>>      fuseki:serviceUpload            "upload" ;
>>>
>>>      fuseki:serviceReadWriteGraphStore      "data" ;
>>>
>>>      # A separate read-only graph store endpoint:
>>>
>>>      fuseki:serviceReadGraphStore       "get" ;
>>>
>>>      fuseki:dataset           <#tdb_dataset_readwrite> ;
>>>
>>>      .
>>>
>>>
>>>
>>> <#tdb_dataset_readwrite> rdf:type      tdb:DatasetTDB ;
>>>
>>>      tdb:location "MYTDB" ;
>>>
>>>      .
>>>
>>>
>>>
>>>
>>>
>>> Thanks for any help.
>>>
>>>
>>>
>>> Rohana
>>>
>>>
>> Keep up-to-date with best practice, new releases, webinars and more with
>> our free newsletter: http://www.gossinteractive.com/newsletter
>>
>> Registered Office: 24 Darklake View, Estover, Plymouth, PL6 7TL.
>>
>> Company Registration No: 3553908
>>
>> This email contains proprietary information, some or all of which may be
>> legally privileged. It is for the intended recipient only. If an
>> addressing or transmission error has misdirected this email, please
>> notify the author by replying to this email. If you are not the intended
>> recipient you may not use, disclose, distribute, copy, print or rely on
>> this email.
>>
>> Email transmission cannot be guaranteed to be secure or error free, as
>> information may be intercepted, corrupted, lost, destroyed, arrive late
>> or incomplete or contain viruses. This email and any files attached to
>> it have been checked with virus detection software before transmission.
>> You should nonetheless carry out your own virus check before opening any
>> attachment. GOSS Interactive Ltd accepts no liability for any loss or
>> damage that may be caused by software viruses.
>>
>> <#>
>>
>
>

Reply via email to