[Versa] Issue 3

Michael Olson Mike.Olson at fourthought.com
Fri Aug 12 00:54:44 MDT 2005


Currently, in a traverse operation you can get back either the subject  
or object of the statement.  I would like to propose the ability to get  
the entire statement as I need to make queries like

some_node - all() -> eq(.'foo')

to find out all of the properties on a node that have the value foo.   
Executing this on the following graph:

some_node --> p1 --> foo
some_node --> p2 --> foo

would tell me there are two foos, but I need to know the bigger  
picture.  Now, I could do this with map() and properties() (I think)  
but it seems wasteful.

Maybe a slight modification to the query like

some_node -* all() -> eq(.'foo')

Which kind of leads to:

expression - expression -> filter     --> results in object
expression -| expression -> filter   --> results in subject
expression -* expression -> filter    ---> results in statement
expression -& expression -> filter    ---> results in predicate????

(and the same for backwards)

maybe one for statement URI?

This means that statement would need to be added as a data type.  with  
conversion and a set of functions......

Mike


------------------------------------------------------------------------ 
-----------------
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