Example #1
0
 @Test
 public void universalTest() throws FileNotFoundException {
   model.read(
       this.getClass()
           .getClassLoader()
           .getResourceAsStream("test/data/misc/universal-property.owl"),
       null);
   final ObjectProperty universal =
       model.getObjectProperty(
           "http://www.inmindcomputing.com/example/universal.owl#universalProperty");
   final ObjectProperty abstracT =
       model.getObjectProperty(
           "http://www.inmindcomputing.com/example/universal.owl#abstractProperty");
   final ObjectProperty concrete =
       model.getObjectProperty(
           "http://www.inmindcomputing.com/example/universal.owl#concreteProperty");
   Assert.assertTrue(universal.getEquivalentProperty().equals(OWL2.topObjectProperty));
   Assert.assertTrue(universal.listSubProperties().toSet().contains(abstracT));
   Assert.assertTrue(universal.listSubProperties().toSet().contains(concrete));
 }