kasei/perlrdf — Issue #33: Only serialize used namespace prefixes
Author: nichtich
Created: 2011-11-04 12:21:48+00:00
State: open

RDF::Trine::Serializer::Turtle only serializes required namespace prefix definition by checking `used_ns`, while RDF::Trine::Serializer::RDFXML dumps out all defined namespaces in `_top_xmlns`. This is inconvenient if you pass a large hashref, like [RDF::NS](http://search.cpan.org/dist/RDF-NS/) and expect the serializer to pick only prefixes that are actually needed. However dumping large models could be slowed down because the whole output must be buffered before namespace declarations can be emitted, so there are arguments for both variants.