コード例 #1
0
ファイル: AmbiguousLabelTest.java プロジェクト: nucaica/qSKOS
  @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"));
  }
コード例 #2
0
ファイル: AmbiguousLabelTest.java プロジェクト: nucaica/qSKOS
  @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"));
  }