Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-213

Create convenience method ResourceFactory.createLiteral(String v, String language).

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Jena 2.10.0
    • Jena
    • None
    • All.

    Description

      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); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            dandh988 Dick Murray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: