You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2012/12/17 13:18:12 UTC

[jira] [Resolved] (JENA-213) Create convenience method ResourceFactory.createLiteral(String v, String language).

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

Andy Seaborne resolved JENA-213.
--------------------------------

       Resolution: Fixed
    Fix Version/s: Jena 2.10.0

Added, following a similar observation on users@
                
> Create convenience method ResourceFactory.createLiteral(String v, String language).
> -----------------------------------------------------------------------------------
>
>                 Key: JENA-213
>                 URL: https://issues.apache.org/jira/browse/JENA-213
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Jena
>         Environment: All.
>            Reporter: Dick Murray
>            Priority: Minor
>             Fix For: Jena 2.10.0
>
>
> ResourceFactory does not have a createLiteral(String v, String language) as per Model i.e. no convenience method to create a Literal with language tag independent of a Model.
> Suggested that the following would be appropriate from JenaUsers posting...
> public Literal createLangLiteral(String lex, String lang) {
>     return new LiteralImpl( Node.createLiteral(lex, lang, null), null);
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira