aaltodsg / instans

Incremental Engine for Standing SPARQL
MIT License
10 stars 1 forks source link

Explicit repetition of blank node in input does not work with "add:execute-snapshot:remove:execute" #20

Closed MJRinne closed 10 years ago

MJRinne commented 10 years ago

It looks like a specific RDF operation mode prevents the input from having the same blank node explicitly in the input.

Steps to repeat:

1) Query (issue20.rq):

PREFIX : http://instans.org/

SELECT * WHERE { ?event a :EventObject ; :hasEventObjectSamplingTime ?time }

2) Data (issue20.ttl):

@prefix : http://instans.org/ . :1 a :EventObject . :1 :hasEventObjectSamplingTime "2012-03-05T13:32:28"^^xsd:dateTime .

3) Command line: $ instans -r issue20.rq --rdf-operations=add:execute-snapshot:remove:execute --input-blocks=issue20.ttl

What happens:

No output is generated.

What was expected to happen:

The ?event and ?time were expected to be matched like this: event,time _:1,2012-03-05T13:32:28

If the operation mode parameter: "--rdf-operations=add:execute-snapshot:remove:execute" is removed, i.e. using command line: $ instans -r issue20.rq --input-blocks=issue20.ttl

..the expected output is generated.

eskonuutila commented 10 years ago

The problem is in that the ttl input has two separate blocks each having one triple. These blocks are processed using --rdf-operations=add:execute-snapshot:remove:execute. This causes the two input triples never to be in RETE at the same time.