Re: [xdi] XDI Querier update

From
Giovanni Bartolomeo <>
Date
2008-04-21T13:50:27+00:00
ID
Thread
Re: [xdi] XDI Querier update
Thanks Markus,

apart from the implementation, maybe in the specification we should allow
both forms. One question may arise about the usefulness of $$ if we allow
the first form; well the answer may be a thing like this:

$$

   +age 

        
"25"

of course we could anyway use $$1 instead of $$ here, but I would prefer
to have an explicit different form for the unbounded variable ($$) than
the one used for the bounding ones ($$1, $$2, etc.) - I think this could
be useful to optimize performances in implementations - what do you
think?

Giovanni

At 19.40 18/04/2008, Markus Sabadello wrote:

Hmm no, right now the query
engine only selects input statements that fully match a query statement.
So if a query statement contains only a subject and a predicate, then it
will only select input statements with only subject and predicate, not
input statements with subject, predicate and something else.

So even if you just want to know everything about =giovanni, you would
have to enter

=giovanni

    $$

        $$

instead of just

=giovanni

The latter will only work in my implementation of XDI messaging, but not
in the XDI query engine.

But maybe it should work that way too?

Markus

On Fri, Apr 18, 2008 at 6:20 PM, Giovanni Bartolomeo
<
> wrote:

Hello Markus,

thanks for this update. It has been great to see the querier at work
yesterday!

Simple question regarding this query:

At 00.43 18/04/2008, Markus Sabadello wrote:

=giovanni

   +friend

       $$1

($$1/+age)

   $equals$or$lesser

       "26"

$$1

   +sister

       $$2

$$2

   +nationality

       $$

($$2/+nationality)

   $equals

       "Italian"

is it the same to ask

$$2

  +nationality

instead of

$$2

  +nationality

       $$

?

Giovanni