On 19/06/13 20:11, Dick Murray wrote:
Hi sorry PICNIC moment...

I get the following results which is what I need. Against the dataset I get
2 results for each graph. Against the datasetgraphmap with override I get 2
results for g2 but 4 results for g1 because of the RDFS.


Problem with the 2 phase approach is that the phase 1 query isn't easy and
then there's the issue whether it's atomic. Ideally it needs to be dynamic
as the triples/quads are iterated

Atomicity is guaranteed inside a single transaction which can be several queries/updates. Transactions are related to threads.


Are you saying that optimization might cause the getGraph not to be called?

Yes

Being called more than once for the same graph I can get around i.e. keep a
cache for the duration of the query.

You could update via the RDFS view of the dataset. Maybe that way, you only have to build it once.


Thanks again.

Dick.

        Andy

Reply via email to