[ 
https://issues.apache.org/jira/browse/JENA-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985098#action_12985098
 ] 

Reto Bachmann-Gmür commented on JENA-31:
----------------------------------------

"The application can analysis the data, make choices of prefixes, set the 
prefix map appropriately and call the writer. "

I see that this is a possible work-around, howverrequiring the application to 
iterate over the data and determine the prefixed part for every uri seems 
highly inefficient.

"Pretty printing RDF/XML requires all the prefixes to be available at the 
start. *
Then the pretty-printer has to look at the data and find-out which prefixes are 
needed, as uris in predicated position need a prefix this step is necessary 
even if all prefixes in the map would be put in the prefix-mapping in the XML 
header.

For huge turtle seralization it might be ausefull setting, to limit the number 
of triples that are evaluated as possible prefixes, once this number has been 
reach subsequent triples never cause a yet unused prefix to be added.

> Add possibility to connect serializers to prefix service
> --------------------------------------------------------
>
>                 Key: JENA-31
>                 URL: https://issues.apache.org/jira/browse/JENA-31
>             Project: Jena
>          Issue Type: Improvement
>          Components: Jena
>            Reporter: Reto Bachmann-Gmür
>
> Currently the serializers want to access the whole set of available 
> prefimappings, instead they shold only ask for a prefix suggestion for uris 
> actually in the model, that way it is possible to connect services which can 
> suggest prefixes for a huge number of uris which is not reasonably feasible 
> now.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to