packages/extension-map/doc/webpacks/shexmap-webapp.js
// Pivot to triples by constraint.
Pivot to triples by constraint.
Pivot to triples by constraint .
function _constraintToTriples (t2tc, constraintList, tripleList) {
    return t2tc.slice().
      reduce(function (ret, cNo, tNo) {
        if (cNo !== "NO_TRIPLE_CONSTRAINT")
          ret[cNo].push({tNo: tNo, res: tripleList.results[cNo][tNo]});
        return ret;
      }, _seq(constraintList.length).map(() => [])); 
  }
function _constraintToTriples ( t2tc , constraintList , tripleList ) { return t2tc . slice ( ) . reduce ( function ( ret , cNo , tNo ) { if ( cNo !== "NO_TRIPLE_CONSTRAINT" ) ret [ cNo ] . push ( { tNo : tNo , res : tripleList . results [ cNo ] [ tNo ] } ) ; return ret ; } , _seq ( constraintList . length ) . map ( ( ) => [ ] ) ) ; }
Pivot to triples by constraint.
Pivot to triples by constraint .
// [length][]