History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-963
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jeen Broekstra
Reporter: Jeen Broekstra
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

Dataset assignment in update sequences not properly scoped

Created: 21/Mar/12 03:56 AM   Updated: 26/Jun/12 12:38 AM
Component/s: SPARQL
Affects Version/s: 2.6.4
Fix Version/s: 2.6.7


 Description   

E.g. in the following update sequence, first one with a dataset, second one without.

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
DELETE { ?person foaf:givenName 'Bill' }
USING NAMED <http://example/addresses>
WHERE {
  ?person foaf:givenName 'Bill' .
  GRAPH ?graph {
    ?person foaf:givenName 'Bill'
    }
};
INSERT { ?person foaf:givenName 'William' }
WHERE {
  ?person foaf:givenName 'Bill' .
  GRAPH ?graph {
    ?person foaf:givenName 'Bill'
    }
}


The parser currently sets the dataset declaration on the ParsedUpdate object (which is a container for the sequence), rather than on the individual update operation.

 All   Comments   Change History      Sort Order:
Change by Jeen Broekstra [04/Apr/12 07:07 AM]
Field Original Value New Value
Fix Version/s 2.6.6 [ 10710 ]
Fix Version/s 2.6.5 [ 10690 ]

Change by Jeen Broekstra [31/May/12 04:57 AM]
Field Original Value New Value
Fix Version/s 2.6.7 [ 10720 ]
Fix Version/s 2.6.6 [ 10710 ]

Change by Jeen Broekstra [26/Jun/12 12:06 AM]
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]

Comment by Jeen Broekstra [26/Jun/12 12:38 AM]
fixed. the ParsedUpdate no longer has a get/setDataset method, but instead now keeps a map that associates individual UpdateExprs with a Dataset (or null, if no dataset is declared).

Change by Jeen Broekstra [26/Jun/12 12:38 AM]
Field Original Value New Value
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]