code: public static URL getMatchUrl(QuerySolution row, boolean operationDiscovery) {
          // Check the input and return immediately if null
          if (row == null) {
              return null;
          }
  
          URL matchUrl;
  
          if (operationDiscovery) {
              matchUrl = Util.getOperationUrl(row);
          } else {
              matchUrl = Util.getServiceUrl(row);
          }
  
          return matchUrl;
      }
docs: Obtain the match url given the query row and the kind of discovery
  we are carrying out
  
  @param row                the result from a SPARQL query
  @param operationDiscovery true if we are doing operation discovery
  @return the URL for the match result