On 7/29/13 3:59 AM, Jerven Bolleman wrote:
Dear Virtuoso devs,

What is the ASSUME variable that you added in 6.1.7 ?
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/

I can't find any reference to this in the SPARQL 1.1 query standard.
Is this a virtuoso specific extension?

Regards,
Jerven
Neither can I :-)

This is clearly a typo in the release notes.

Basically, this is a Virtuoso specific query optimizer hint:
It gives a hint to the optimizer that the expression X is always true and the optimizer should work as such where you have ASSUME, while not triggering any SQL code generation for checking whether X is true (since it is ASSUMED to be true). Thus, in the example below, it is ASSUMED that ?id is an IRI, so there's not need for any further type checking further down in the query-optimizer's processing workflow.

Usage Example:

SELECT * WHERE { ?s1
                          <id> ?id ;
                          geo:lat ?lat ;
                          geo:long ?long .
                          GRAPH ?rdf_view_g
                                   { ?s2
                                     <id> ?id ;
                                     rdfs:label ?label
                                   } .
                         ASSUME (isIRI (?id)) }


--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to