Dear Rappers,
Please find attached a naive implementation of N3 list processing (eg.
( "Monday" "Tuesday" "Wednesday" )) as a patch to N3Parser.php, which
does not yet support this feature of N3.
It should translate such a list into an appropriate rdf:first/rdf:next
bnode construct.
The comparison tests with CWM and some simple examples looked right, but
if somebody with more RDF experience could check (and possibly commit)
this snippet I'd be very grateful indeed.
Kind regards,
Hannes Gassert
PS: I have some more little changes re whitespace handling and
performance, they come later.
PPS: Chris, guess what I'm parsing with this.. ;)
|