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


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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to