Parser testing
I hope nobody ever writes a query like this, but if they do I'm confident that twinql will handle it.* (parse-sparql "SELECT * {
?x ?y [ ?p ?q ;
?r ?s ,
?t ] .
?u ?v ?w ;
?vv ?ww ,
?xx .
[ ?b ?c ] ?d ?e ;
?f ?g ,
?h . }")
(SPARQL
:SELECT
:WHERE
'(GRAPH-PATTERN
(TRIPLE |x| |y| #<NODE {41650121}>)
(TRIPLE #<NODE {41650121}> |p| |q|)
(TRIPLE #<NODE {41650121}> |r| |s|)
(TRIPLE #<NODE {41650121}> |r| |t|)
(TRIPLE |u| |v| |w|)
(TRIPLE |u| |vv| |ww|)
(TRIPLE |u| |vv| |xx|)
(TRIPLE #<NODE {41651D21}> |b| |c|)
(TRIPLE #<NODE {41651D21}> |d| |e|)
(TRIPLE #<NODE {41651D21}> |f| |g|)
(TRIPLE #<NODE {41651D21}> |f| |h|)))Wow, this must be the post with the smallest audience ever. Posted at 2006-02-21 13:57:41 by Richard • Link to Parser testing
Comments, trackbacks.
