rdf-environment.js
/**
   The function toValue accepts a {@link Term} and converts it to a native value
   */
The function toValue accepts a  Term and converts it to a native value
The function toValue accepts a Term and converts it to a native value
toValue(term, predicate) {
    var datatype = term.datatype || this.fieldType(predicate);
    if (datatype) {
      var converter = Literal.toValue[datatype.lexicalForm];
      if (converter) {
        return (converter(term.lexicalForm));
      }
    }
    return (term.lexicalForm || term);
  }
toValue ( term , predicate ) { var datatype = term . datatype || this . fieldType ( predicate ) ; if ( datatype ) { var converter = Literal . toValue [ datatype . lexicalForm ] ; if ( converter ) { return ( converter ( term . lexicalForm ) ) ; } } return ( term . lexicalForm || term ) ; }
The function toValue accepts a {@link Term} and converts it to a native value
The function toValue accepts a { @link Term } and converts it to a native value
// console.log('toValue', term, predicate, datatype); // console.log('toValue.converter: ', converter);