[ 
https://issues.apache.org/jira/browse/JENA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne reassigned JENA-83:
---------------------------------

    Assignee: Andy Seaborne

> Add a convenient method to create a typed literal without lang tag
> ------------------------------------------------------------------
>
>                 Key: JENA-83
>                 URL: https://issues.apache.org/jira/browse/JENA-83
>             Project: Jena
>          Issue Type: Improvement
>          Components: Jena
>            Reporter: Laurent Pellegrino
>            Assignee: Andy Seaborne
>            Priority: Trivial
>              Labels: api, jena, literal
>         Attachments: JENA-83-r1148711.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> It is possible to create typed literal from the Node class by calling Node 
> createLiteral(String lex, String lang, RDFDatatype dtype). However, as stated 
> in the documentation (c.f. 
> http://openjena.org/how-to/typedLiterals.html#lang) "Thus for almost all 
> typed literals there is no xml:Lang tag". It would be nice to provide a Node 
> createLiteral(String lex, RDFDatatype dtype) method that delegates the call 
> to Node createLiteral(String lex, String lang, RDFDatatype dtype) with the 
> right value for the lang parameter. Indeed, when I use the existing method to 
> create typed literal without lang tag, I put null for the lang parameter and 
> it works but I don't know if it is the right value (in the jena source code 
> it seems that an empty String is used) and whether it can break something 
> (the documentation give no information). Moreover it is really annoying to 
> have to specify the useless lang parameter when we don't need it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to