rdf-environment.js
/**
 Create a Literal instance. Given the appropriate arguments creates either a LangString
 a typed Literal or a SimpleString
 @param {string} value
 @param {(string|null)} language
 @param {(string|null)} datatype
 */
Create a Literal instance. Given the appropriate arguments creates either a LangString
a typed Literal or a SimpleString
Create a Literal instance . Given the appropriate arguments creates either a LangString a typed Literal or a SimpleString
function createLiteral(value, language, datatype) {
  if (language) {
    return (new LangString(value, language));
  } else if (datatype) {
    return (new Literal(value, language, datatype));
  } else {
    if (createSimpleStrings) {
      return (new SimpleString(value));
    } else {
      return ( value);
    }
  }
}
function createLiteral ( value , language , datatype ) { if ( language ) { return ( new LangString ( value , language ) ) ; } else if ( datatype ) { return ( new Literal ( value , language , datatype ) ) ; } else { if ( createSimpleStrings ) { return ( new SimpleString ( value ) ) ; } else { return ( value ) ; } } }
Create a Literal instance.
Create a Literal instance .