private void validateTestOwlRelationship() { Relationship relationship = getOntologyRepository().getRelationshipByIRI(TEST_IRI + "#personKnowsPerson", PUBLIC); assertEquals("Knows", relationship.getDisplayName()); assertEquals("prop('http://visallo.org/test#firstMet') || ''", relationship.getTimeFormula()); assertTrue(relationship.getRangeConceptIRIs().contains("http://visallo.org/test#person")); assertTrue(relationship.getDomainConceptIRIs().contains("http://visallo.org/test#person")); relationship = getOntologyRepository().getRelationshipByIRI(TEST_IRI + "#personIsRelatedToPerson", PUBLIC); assertEquals("Is Related To", relationship.getDisplayName()); String[] intents = relationship.getIntents(); assertEquals(1, intents.length); assertEquals("test", intents[0]); assertTrue(relationship.getRangeConceptIRIs().contains("http://visallo.org/test#person")); assertTrue(relationship.getDomainConceptIRIs().contains("http://visallo.org/test#person")); }
private void validateChangedOwlRelationships() throws IOException { Relationship relationship = getOntologyRepository().getRelationshipByIRI(TEST_IRI + "#personKnowsPerson", PUBLIC); assertEquals("Person Knows Person", relationship.getDisplayName()); assertNull(relationship.getTimeFormula()); assertTrue(relationship.getRangeConceptIRIs().contains("http://visallo.org/test#person2")); assertTrue(relationship.getRangeConceptIRIs().contains("http://visallo.org/test#person")); assertTrue(relationship.getDomainConceptIRIs().contains("http://visallo.org/test#person")); Concept thing = getOntologyRepository().getEntityConcept(workspaceId); assertNotNull(thing.getTitleFormula()); assertNotNull(thing.getSubtitleFormula()); assertNotNull(thing.getTimeFormula()); }
result.setTitleFormula(getTitleFormula()); result.setSubtitleFormula(getSubtitleFormula()); result.setTimeFormula(getTimeFormula()); if (getIntents() != null) { result.getIntents().addAll(Arrays.asList(getIntents()));