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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Jena 2.10.0
    • Component/s: Jena
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: