Package io.lumify.core.model.ontology

Examples of io.lumify.core.model.ontology.Relationship


        workspaceConceptList.add(workspaceConcept);

        ArrayList<Concept> rootConceptList = new ArrayList<Concept>();
        rootConceptList.add(rootConcept);

        Relationship workspaceToEntityRelationship = ontologyRepository.getOrCreateRelationshipType(workspaceConceptList, rootConceptList, WORKSPACE_TO_ENTITY_RELATIONSHIP_IRI, "workspace to entity");
        workspaceToEntityRelationshipId = workspaceToEntityRelationship.getIRI();

        Relationship workspaceToUserRelationship = ontologyRepository.getOrCreateRelationshipType(workspaceConceptList, rootConceptList, WORKSPACE_TO_USER_RELATIONSHIP_IRI, "workspace to user");
        workspaceToUserRelationshipId = workspaceToUserRelationship.getIRI();
    }
View Full Code Here

TOP

Related Classes of io.lumify.core.model.ontology.Relationship

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.