- From: Arjohn Kampman <arjohn.kampman@aidministrator.nl>
- Date: Fri, 11 Apr 2003 11:27:37 +0200
- To: www-rdf-rules@w3.org
Hi all,
While implementing Andy's ResultSet vocabulary [1] some question
concerning the encoding of unbound variables came up. According to the
document, unbound variables are assigned the value rs:undef. What's the
reason for doing this? IMHO, it would be more natural to exclude the
binding from the result set altogether. I.e.: no binding specified -->
variable is unbound.
Example: A ResultSet with two variables x and y, with x unbound, would
look like this:
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:rs='http://jena.hpl.hp.com/2003/03/result-set#'>
<rs:ResultSet rdf:about=''>
<rs:resultVariable>x</rs:resultVariable>
<rs:resultVariable>y</rs:resultVariable>
<rs:solution>
<rs:ResultSolution>
<rs:binding rdf:parseType='Resource'>
<rs:variable>y</rs:variable>
<rs:value rdf:resource='http://example.com/resource1'/>
</rs:binding>
</rs:ResultSolution>
</rs:solution>
</rs:ResultSet>
</rdf:RDF>
Any comments on this?
Arjohn
[1] http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html
--
arjohn.kampman@aidministrator.nl
aidministrator nederland b.v. - http://www.aidministrator.nl/
prinses julianaplein 14-b, 3817 cs amersfoort, the netherlands
tel. +31-(0)33-4659987 fax. +31-(0)33-4659987
Received on Friday, 11 April 2003 06:57:47 UTC