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

Andy Seaborne commented on JENA-31:
-----------------------------------

The application can analysis the data, make choices of prefixes, set the prefix 
map appropriately and call the writer.  This seems to be what you are asking 
only differing in that Jena provide that functionality rather than the 
application.

Adding the interfaces and interactions necessary to do that would still need 
application code to be invoked to make the choices so I don't think it provides 
much benefit and would complicate writing a writer.

Pretty printing RDF/XML requires all the prefixes to be available at the start.

The whole problem is rather different for Turtle and related languages.  
Analysing the model is, in general, not practical (it's too large). It's 
possible to write in a subset of Turtle (N-Triples+prefixes) as a single pass 
over the data and analysing the data would slow that down a great deal.

Carrying all the namespaces, even unused, that were mentioned in the initial 
data read is current behaviour and one that is a natural user expectation 
(despite prefixes having no formal role in RDF). 

> 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