Esempio n. 1
0
  @Test
  public void testDisjointLabels() throws OpenRDFException {
    Map<URI, Collection<String>> ambiguousConcepts =
        qSkosAmbiguousLabels.findNotDisjointLabels().getData();

    Assert.assertNotNull(getEntryForUriSuffix(ambiguousConcepts, "conceptD"));
    Assert.assertNull(getEntryForUriSuffix(ambiguousConcepts, "conceptE"));
    Assert.assertNotNull(getEntryForUriSuffix(ambiguousConcepts, "conceptF"));
  }
Esempio n. 2
0
  @Test
  public void testUniquePrefLabels() throws OpenRDFException {
    Map<URI, Collection<String>> ambiguousConcepts =
        qSkosAmbiguousLabels.findNotUniquePrefLabels().getData();

    Assert.assertNotNull(getEntryForUriSuffix(ambiguousConcepts, "conceptA"));
    Assert.assertNotNull(getEntryForUriSuffix(ambiguousConcepts, "conceptA2"));
    Assert.assertNull(getEntryForUriSuffix(ambiguousConcepts, "conceptB"));
    Assert.assertNull(getEntryForUriSuffix(ambiguousConcepts, "conceptC"));
    Assert.assertNull(getEntryForUriSuffix(ambiguousConcepts, "conceptG"));
  }