test_class.declarator: logger = LoggerFactory.getLogger(TestURIUtil.class)
test_class.modifier: final
test_class.original_string: final Logger logger = LoggerFactory.getLogger(TestURIUtil.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: sparqled-commons/src/test/java/org/sindice/core/analytics/commons/util/TestURIUtil.java
test_class.identifier: TestURIUtil
test_case.body: @Test
    public void testURL()
    throws Exception {
      final String s1 = "http://downloads.dbpedia.org/3.7/de/mappingbased_properties_de.nq.bz2";
      final String s2 = "http://dbpedia.org/resource/DienvidsusÃ„Â“ja__mouthPosition__1/";
  
      assertEquals("dbpedia.org", URIUtil.getSndDomainFromUrl(s1));
      assertEquals("dbpedia.org", URIUtil.getSndDomainFromUrl(s2));
    }
test_case.class_method_signature: TestURIUtil.testURL()
test_case.full_signature: @Test public void testURL()
test_case.identifier: testURL
test_case.invocations: assertEquals getSndDomainFromUrl assertEquals getSndDomainFromUrl
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testURL()
focal_class.declarator: logger = LoggerFactory.getLogger(URIUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(URIUtil.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: sparqled-commons/src/main/java/org/sindice/core/analytics/commons/util/URIUtil.java
focal_class.identifier: URIUtil
focal_class.class_method_signature: URIUtil.getSndDomainFromUrl(String url)
focal_class.full_signature: public static String getSndDomainFromUrl(String url)
focal_class.identifier: getSndDomainFromUrl
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String getSndDomainFromUrl(String url)
focal_class.class_method_signature: URIUtil.getSndDomain(String domain)
focal_class.full_signature: public static String getSndDomain(String domain)
focal_class.identifier: getSndDomain
focal_class.modifiers: public static
focal_class.parameters: (String domain)
focal_class.return: String
focal_class.signature: String getSndDomain(String domain)
focal_method.body: public static String getSndDomainFromUrl(String url) {
      if (url == null) {
        return null;
      }
      try {
        final String domain = URI.create(url).getHost();
        if (domain != null) {
          return getSndDomain(domain);
        }
      } catch (IllegalArgumentException e) {
      }
      logger.debug("The url={} isn't valid, skipping it", url);
      return null;
    }
focal_method.class_method_signature: URIUtil.getSndDomainFromUrl(String url)
focal_method.full_signature: public static String getSndDomainFromUrl(String url)
focal_method.identifier: getSndDomainFromUrl
focal_method.invocations: getHost create getSndDomain debug
focal_method.modifiers: public static
focal_method.parameters: (String url)
focal_method.return: String
focal_method.signature: String getSndDomainFromUrl(String url)