code: public int[][] getTermIndices() {
  
          // Data is constructed by iterating term-parameter mappings
          final TermParameterMapTable myTPM = getTermParameterMapTable();
          final ParameterTable myPT = getParameterTable();
          final NamespaceTable nt = getNamespaceTable();
          final int count = myTPM.getNumberOfTermParameterMappings();
  
          final int[][] ret = new int[count][3];
  
          int i = 0;
          for (final Entry<Integer, List<Integer>> entry : myTPM.entrySet()) {
  
              // TPM entries are term index to list of param indices
              final int termIdx = entry.getKey();
              final List<Integer> paramIdxs = entry.getValue();
  
              for (final int paramIdx : paramIdxs) {
                  ret[i] = new int[3];
                  ret[i][TERM_INDEX] = termIdx;
                  ret[i][PARAM_INDEX] = paramIdx;
  
                  final TableParameter tp = myPT.getTableParameter(paramIdx);
                  final TableNamespace tn = tp.getNamespace();
                  Integer nsIndex = nt.getNamespaceIndex().get(tn);
  
                  if (nsIndex == null)
                      ret[i][NAMESPACE_INDEX] = NO_NAMESPACE;
                  else
                      ret[i][NAMESPACE_INDEX] = nsIndex;
  
                  i++;
              }
          }
  
          return ret;
      }
docs: Returns a two-dimensional array of term data.
  <p>
  The length of the returned array along the first dimension is equivalent
  to the number of term-parameter mappings contained by the proto-network.
  The length of the second dimension, {@code 3}, defines the tuple
  <tt>(term_index, parameter_index, namespace_index)</tt>).
  </p>
  <p>
  For example: <br>
  
  <pre>
  int[][] termIndices = getTermIndices();
  int termParameterEntry = termIndices[0];
  int termIndex = termIndices[0][0];
  int paramIndex = termIndices[0][1];
  int nsIndex = termIndices[0][2];
  </pre>
  
  </p>
  
  @return term data as a two-dimensional array ({@code int[][]})
  @see #TERM_INDEX
  @see #PARAM_INDEX
  @see #NAMESPACE_INDEX