On 25/11/11 13:41, ajaz shaik wrote:
Dear andy
Thanks for clarification,


1)  select ?film where { ?film rdf:type movie:film .  Filter(?release_date>= 
"2010-12-31"^^xsd:date ) }

Does not set ?release_date




2) select ?actor where { ?film rdf:type movie:film . ?film movie:hasActor 
?actor . }


Yes - loop in the results of the first query, passing in a QuerySolution
each time to the second.


Is there any option to pass all my results of     ?film   say 1000bindings

as query solution ones instead of looping externally?

Only by using BINDINGS but that is rewriting the query string and if you want to do that, then just merge the two queries:

select *
where
{ ?film rdf:type movie:film .
  ?file movie:date ?release_date   # Or whatever the predicate is.
  Filter(?release_date >= "2010-12-31"^^xsd:date )
  ?film movie:hasActor ?actor . }




Because I am trying to calculate some statistics over my sample second query 
above based on all values

passed on selected variables from first query.


One thing what I could think of is like building the First query below as

a Sub query to the Second. But I dont know if it will work and

Try it!

I have to now look for  how can I build subqueries syntactically. If you can 
help me, pointing

methods to build subqueries syntactically , it will be really quick for me to 
test. Hope I am not

asking stupid questions.


Thank You
regards

ajaz

        Andy

Reply via email to