OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xdi message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: $filter



First stab at some ideas for $filter:

1) Prefix notation (like ldap filters). Examples:
   1) (&(a=b)(c=d))
   2) (!(|(a>b)(c<d)))

2) Filter on Context:
   context equality  : (context=+friend)
   context substring : (context=*friends*)

3) Filter on Relational Arcs:
   rel equality      : (rel=+friends)
   rel substring     : (rel=*friend*)

4) Filter on Literal Arcs
   lit equality      : (lit=mike)  (note: "=schwartz" is ok...)
   lit substring     : (rel=*mike*)

5) Use of filters could also be used to specify what part of the arc not to return. For example: what if you don't want the $d literal returns:
   (!(lit=$d))

6) Filter on values
   val equality                      : (val=Mike)
   val case insensitive substring    : (val=*Mike*)
   val integer                       : (val>9) ... > < <= >= =
   val date                          : (val>20110615000000000Z)

Now, this might return some messed up graphs, we'd have to probably return parent graphs, unless we want the server to return graph fragments.

Thoughts?

- Mike



On Fri, 23 Dec 2011, Markus Sabadello wrote:

. . .


Regarding filters, we used to have something called XDI queries (originally
proposed by Giovanni), where you could work with variables, constraints,
etc., but we didn't fully develop it. I did an implementation of it that
demonstrated some pretty complex queries, but it was not optimized and had
really bad performance.

Markus

On Thu, Dec 22, 2011 at 10:55 PM, Michael Schwartz <mike@gluu.org> wrote:


XDI TC:

At OX, we are finding that it can be hard to get just the information you
need.

For example, let's say the graph for =schwartz is 2GB. Somewhere in my
graph, there is a reference to "important-email". How can I search my graph
to find this information? There is no way to specify filters. Also, I still
think scope is a nagging issue. Let's say I just want to find out the names
of the contexts I have under =schwartz*messages. How can I do that? If I do
a $get on =schwartz*messages, I'll get back the entire subtree.

I think these issues are going to be really important as we compete with
SQL and LDAP, where you can express complex filters and conditions.

- Mike


------------------------------**------------------------------**---------
To unsubscribe, e-mail: xdi-unsubscribe@lists.oasis-**open.org<xdi-unsubscribe@lists.oasis-open.org>
For additional commands, e-mail: xdi-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]