rdf-environment.js
/**
 The static function decode accepts a document string, a media type, and a
 continuation.
 It decodes the string as n RDF term and delegates to the continuation.
 The implementation are indexed bx media type in the dictionary which is bound
 to the decode symbol.
 */
The static function decode accepts a document string, a media type, and a
continuation.
It decodes the string as n RDF term and delegates to the continuation.
The implementation are indexed bx media type in the dictionary which is bound
to the decode symbol.
The static function decode accepts a document string a media type and a continuation . It decodes the string as n RDF term and delegates to the continuation . The implementation are indexed bx media type in the dictionary which is bound to the decode symbol .
function decode(document, mediaType, continuation) {
  var contentTypeStem;
  if (contentTypeStem = mediaTypeStem(mediaType)) {
    var decoder = decode[match];
    var decoded = decoder(document, mediaType, continuation);
    decoded.contentType = contentTypeStem;
    return (decoded);
  } else {
    console.warn("decode: decoder not found");
    return (null);
  }
}
function decode ( document , mediaType , continuation ) { var contentTypeStem ; if ( contentTypeStem = mediaTypeStem ( mediaType ) ) { var decoder = decode [ match ] ; var decoded = decoder ( document , mediaType , continuation ) ; decoded . contentType = contentTypeStem ; return ( decoded ) ; } else { console . warn ( "decode: decoder not found" ) ; return ( null ) ; } }
The static function decode accepts a document string, a media type, and a
continuation.
The static function decode accepts a document string a media type and a continuation .
// console.log("decode: decoder", decoder); // must pass the content type as it can include arguments // record the given media type in the result // console.log("rdfenv.decode: decoded", decoded);