assertEquals(sfp.getShortForm(root), shortForm);
}
@Test
public void testLiteralWithLanguageValue() {
OWLNamedIndividual root = NamedIndividual("ind", pm);
String label1 = "MyLabel";
String label2 = "OtherLabel";
Ontology(
m,
AnnotationAssertion(prop, root.getIRI(), Literal(label1, "ab")),
AnnotationAssertion(prop, root.getIRI(), Literal(label2, "xy")));
langMap.put(prop, Arrays.asList("ab", "xy"));
AnnotationValueShortFormProvider sfp = new AnnotationValueShortFormProvider(
props, langMap, m);
assertEquals(sfp.getShortForm(root), label1);
Map<OWLAnnotationProperty, List<String>> langMap2 = new HashMap<>();