code: private static String getOrGenerateServiceLabel(QuerySolution row) {
          String label = getServiceLabel(row);
          if (label == null) {
              URL svcUrl = getServiceUrl(row);
              label = URIUtil.generateItemLabel(svcUrl);
          }
  
          return label;
      }
docs: Obtain or generate a label for a service.
  TODO: Deal better with WSDL naming convention
  
  @param row the result from a SPARQL query
  @return