pkar dump-res repeats the prolog for multiple-resource ouptut #52

Closed
opened 2026-03-17 15:02:17 +00:00 by scossu · 1 comment
Owner

The pkar dump-res CLI command, when called on mutiple IDs in the TTL format, outputs each resource with its own prolog. Taken as a single stream, this is not valid turtle.

The CLI function should remove the prolog from all encoded resources except for the first.

The `pkar dump-res` CLI command, when called on mutiple IDs in the TTL format, outputs each resource with its own prolog. Taken as a single stream, this is not valid turtle. The CLI function should remove the prolog from all encoded resources except for the first.
scossu added this to the 1.1.x bugfixes milestone 2026-10-01 17:53:25 +00:00
scossu added
p
normal
and removed
p
low
labels 2026-10-06 13:45:59 +00:00
Author
Owner

Fixed in 824e94818e.

Moving to 1.1.x branch because it changes the output format of dump-res to TriG.

Inconsequential for the user, but important for internal development, is that repo.get_rsrc() generates a graph that no longer has the URI of the subject. This was semantically wrong and led to problems with graph copying, because all triples would be generated as relative to the temporary graph.

The graph URI now is the subject URI with the #ctx fragment appended.

Fixed in 824e94818e. Moving to 1.1.x branch because it changes the output format of `dump-res` to TriG. Inconsequential for the user, but important for internal development, is that `repo.get_rsrc()` generates a graph that no longer has the URI of the subject. This was semantically wrong and led to problems with graph copying, because all triples would be generated as relative to the temporary graph. The graph URI now is the subject URI with the `#ctx` fragment appended.
scossu modified the milestone from 1.1.x bugfixes to v1.2.0 2026-10-06 19:05:14 +00:00
scossu modified the milestone from v1.2.0 to v1.1.0 2026-11-09 03:44:33 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ktx/pocket_archive#52
No description provided.