W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2005

Re: querying RDF lists

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Wed, 05 Oct 2005 13:53:14 +0100
Message-ID: <4343CCBA.7050403@hp.com>
To: "Miles, AJ (Alistair)" <A.J.Miles@rl.ac.uk>
CC: Dan Connolly <connolly@w3.org>, public-rdf-dawg-comments@w3.org, dwood@mindswap.org

One small corollary: special cases are possible with custom fucntions.

 > (a) a standard function (or some other mechanism) for querying whether some 
 > node is an element of some RDF list (i.e. something like isElementOfList(A, 
 > B))
 >... and preferably also ...
 >(b)  a standard function (or some other mechanism) for returning the
 >numerical position of a node in an RDF list (i.e. something like
 > listPosition(A, B))

In the special case where A and B to be bound or constant,
you might be able to write a custom filter function because the function just 
returns a boolean or integer.  Depends on the implementation.

The thing you can't do in a custom function would be to associate multiple 
possible values to variables.

Received on Wednesday, 5 October 2005 12:55:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:06 UTC