Relationship.getParentIRI
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.visallo.core.model.ontology.Relationship.getParentIRI (Showing top 5 results out of 315)

origin: org.visallo/visallo-model-vertexium-inmemory

@Override
public Relationship getParentRelationship(Relationship relationship, String workspaceId) {
  return computeRelationshipCacheForWorkspace(workspaceId).get(relationship.getParentIRI());
}
origin: org.visallo/visallo-core-test

@Test
public void testGetRelationships() throws Exception {
  loadHierarchyOwlFile();
  getOntologyRepository().clearCache();
  Iterable<Relationship> relationships = getOntologyRepository().getRelationships(workspaceId);
  Map<String, Relationship> relationshipsByIri = StreamSupport.stream(relationships.spliterator(), false)
      .collect(Collectors.toMap(Relationship::getIRI, Function.identity()));
  assertNull(relationshipsByIri.get("http://www.w3.org/2002/07/owl#topObjectProperty").getParentIRI());
  assertEquals("http://www.w3.org/2002/07/owl#topObjectProperty", relationshipsByIri.get("http://visallo.org/testhierarchy#personKnowsPerson").getParentIRI());
}
origin: org.visallo/visallo-core-test

@Test
public void testRelationshipHierarchy() throws Exception {
  loadHierarchyOwlFile();
  Relationship relationship = getOntologyRepository().getRelationshipByIRI(TEST_HIERARCHY_IRI + "#personReallyKnowsPerson", PUBLIC);
  assertEquals(TEST_HIERARCHY_IRI + "#personKnowsPerson", relationship.getParentIRI());
  relationship = getOntologyRepository().getParentRelationship(relationship, PUBLIC);
  assertEquals(TEST_HIERARCHY_IRI + "#personKnowsPerson", relationship.getIRI());
  assertEquals(OntologyRepositoryBase.TOP_OBJECT_PROPERTY_IRI, relationship.getParentIRI());
}
origin: org.visallo/visallo-core

public ClientApiOntology.Relationship toClientApi() {
  try {
    ClientApiOntology.Relationship result = new ClientApiOntology.Relationship();
    result.setParentIri(getParentIRI());
    result.setTitle(getIRI());
    result.setDisplayName(getDisplayName());
origin: org.visallo/visallo-core

iri = relationship.getParentIRI();
org.visallo.core.model.ontologyRelationshipgetParentIRI

Popular methods of Relationship

  • getDomainConceptIRIs
  • getRangeConceptIRIs
  • getIRI
  • getId
  • getSandboxStatus
  • getDisplayName
  • getProperties
  • addIntent
  • getIntents
  • getTimeFormula
  • setProperty
  • toClientApi
  • setProperty,
  • toClientApi,
  • getDeleteable,
  • getInverseOfIRIs,
  • getMetadata,
  • getPrimaryInverseOfIRI,
  • getSubtitleFormula,
  • getTitleFormula,
  • getUpdateable

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Kernel (java.awt.image)
  • Path (java.nio.file)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)