kasei / attean

A Perl Semantic Web Framework
19 stars 10 forks source link

Create AtteanX::Serializer::SPARQL #36

Closed kasei closed 8 years ago

kasei commented 8 years ago

The serializer API will expect this to do algebra->bytes, but it might also be useful to have the intermediate step of algebra->tokens (the same lexer tokens produced by the SPARQL parser) to allow shared code paths (e.g. for pretty-printing).

kasei commented 8 years ago

Token and byte serialization are now unified in 2191f25, replacing the old as_sparql methods with a token-generating iterator that is passed to the SPARQL serializer to generate bytes.