[Versa] Versa issue: subgraph primitives?

Michael Olson Mike.Olson at fourthought.com
Tue Sep 6 08:55:38 MDT 2005


>> By a more general solution do you mean be able to extends it to
>> eventually do more then just scoping sub graphs?
>>
>> @prefix foo=foo.com
>> @variable bar= some query
>> @subgraph some query that will scope the next query
>> @logging = on
>> @some an extension declaration possible?
>> and lastly the query
>>
>>
>> Is this what you had in mind?
>
> Yes, as I suggested earlier in the thread.
>
> Chime's { context-query } query examples have made me a little more
> receptive to that idea, though.
>

I liked his idea there as well and meant to get a reply out.  What I  
liked was the ability to name contexts, but I thought your syntax would  
be more appropriate for that.  Then I thought that maybe we need a way  
to specify what context to use on a query.  something like:

@subgraph sg1 = some query
@subgraph sg2 = some other query

union( {$sg1} query in sg1,{$sg2} query in sg2)

so the leading '{}' become a way to specify which scope to use.   
However, thinking further, it is not much different then

@variable sg1 = some query
{$sg1} some scoped query

So it might be a matter of supporting both and you can either inline  
your subgraph query, or move it out to a variable/scope definition.  I  
like having a separate scope definition because it makes the meaning of  
the variable more clear and that it must have a result type of  
sub-graph/list of statements.

Mike


>
> --  
> Uche Ogbuji                               Fourthought, Inc.
> http://uche.ogbuji.net                    http://fourthought.com
> http://copia.ogbuji.net                   http://4Suite.org
> Use CSS to display XML, part 2 -  
> http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html
> XML Output with 4Suite & Amara -  
> http://www.xml.com/pub/a/2005/04/20/py-xml.html
> Use XSLT to prepare XML for import into OpenOffice Calc -  
> http://www.ibm.com/developerworks/xml/library/x-oocalc/
> Schema standardization for top-down semantic transparency -  
> http://www-128.ibm.com/developerworks/xml/library/x-think31.html
>
> _______________________________________________
> Versa mailing list
> Versa at lists.fourthought.com
> http://lists.fourthought.com/mailman/listinfo/versa
>
------------------------------------------------------------------------ 
-----------------
Mike Olson                                                Principal  
Consultant
mike.olson at fourthought.com                +1 720 253 4662
Fourthought, Inc.                                       
http://Fourthought.com
PO Box 270590,                                       http://4Suite.org
Louisville, CO 80027-5009, USA
XML strategy, XML tools, knowledge management




More information about the Versa mailing list