Package org.apache.chemistry.opencmis.client.api

Examples of org.apache.chemistry.opencmis.client.api.RelationshipType


    private void processRelation(CMSObject node,
                                 Relationship relation,
                                 MappingEngine engine,
                                 CMISNodeTypeLifter lifter) {
        OntologyResourceHelper orh = engine.getOntologyResourceHelper();
        RelationshipType type = (RelationshipType) relation.getType();
        lifter.createObjectPropertyDefForRelationshipTypes(Arrays.asList(new RelationshipType[] {type}));
        OntProperty prop = orh.getDatatypePropertyByReference(type.getId());
        Individual ind = orh.getIndividualByReference(node.getUniqueRef());
        Individual target = orh.getIndividualByReference(relation.getTarget().getId());
        ind.addProperty(prop, target);
        log.debug("Added triple by relationship processor, {}, {}, {}",
            new Object[] {ind.getURI(), prop.getURI(), target.getURI()});
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.client.api.RelationshipType

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.