daniel created this task.
daniel added subscribers: daniel, Smalyshev.
daniel added a project: Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  RdfWriter currently does not work for generating very large output files 
without buffering, mainly due to how prefix/namespace declarations are handled. 
After some discussion with Stas, we identified the following key changes to be 
needed:
  
  * writer needs a method to create sub-document writers that share prefix 
declarations, but are not attached to the parent writer's output buffer. The 
method to generate such a sub-writer could be snippet(). Or sub(), with the 
current sub() method being moved to inline().
  * it should be possible to call drain() at any time, e.g. to generate the 
"header" part of the output. drain() would make a state transition to DOCUMENT.
  * there should be a finish() method (for top-level writers) that would close 
the document (transition to the DRAIN state, which should be renamed to END), 
and then call drain() and return the resulting string.
  * prefix() can (for now) only be called on the top-level writer, and only 
before start()
  * reset() should reset declared prefixes only when called on a top level 
(document role) writer.

TASK DETAIL
  https://phabricator.wikimedia.org/T94224

REPLY HANDLER ACTIONS
  Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign 
<username>.

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Smalyshev, Aklapper, daniel, Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to