W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > April 2004

lists don't work with store.any()

From: Dan Connolly <connolly@w3.org>
Date: Mon, 19 Apr 2004 08:56:39 -0500
To: public-cwm-bugs@w3.org
Message-Id: <1082382999.458.314.camel@dirk>

I'm writing a converter from RDF to XMLRPC data structures.
I need to distinguish list items from integers, strings,
and other sorts of things. I tried

	i = graph.any(subj=item, pred=RDF.first)
	if i: #list...

but that test never passed. I changed it to

	if isinstance(item, term.List):

and the code is working now. But since this limitation
isn't documented

http://www.w3.org/2000/10/swap/formula.html#Formula-any

I conclude it's a bug.


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
see you at the WWW2004 in NY 17-22 May?
Received on Monday, 19 April 2004 09:56:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:51:59 UTC