Examples of DPropertyDefinition


Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DPropertyDefinition

            }

        } else {
            // find the ranges of the predicate whose subject is parentNode
            for (DProperty property : parentObject.getProperties()) {
                DPropertyDefinition propDef = property.getDefinition();
                // propDef returns null if a * named property comes
                // TODO after handling * named properties, remove the null check
                if (propDef == null) {
                    logger.warn("Property definition could not be got for property {}", property.getName());
                    continue;
                }
                String propName = propDef.getName();
                if (propName.equals(predicateName) || propName.contains(predicateName)) {
                    List<CMSObject> referencedObjects = propertyBridgeProcessor.resolveReferenceNodes(
                        property, engine);
                    for (CMSObject o : referencedObjects) {
                        OntClass childClass = orh.createOntClassByCMSObject(o);
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DPropertyDefinition

        return individual;
    }

    private void processProperties(DObject cmsObject, Individual individual, MappingEngine engine) throws RepositoryAccessException {
        for (DProperty prop : cmsObject.getProperties()) {
            DPropertyDefinition propDef = prop.getDefinition();
            // propDef returns null if a * named property comes
            // TODO after handling * named properties, remove the null check
            if (propDef == null) {
                logger.warn("Property definition could not be got for property {}", prop.getName());
                continue;
            }

            propertyBridgeProcessor.processContentObjectProperty(prop, propDef, cmsObject, individual,
                propDef.getAnnotations(), engine);
        }
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DPropertyDefinition

                                                   MappingEngine engine) throws RepositoryAccessException {
        AnnotationType annotation = getAnnotation(propertyBridge.getPropertyAnnotation());
        String predicateName = propertyBridge.getPredicateName();

        for (DProperty prop : propertySubject.getProperties()) {
            DPropertyDefinition propDef = prop.getDefinition();
            // propDef returns null if a * named property comes
            // TODO after handling * named properties, remove the null check
            if (propDef == null) {
                logger.warn("Property definition could not be got for property {}", prop.getName());
                continue;
            }

            String propName = propDef.getName();
            String propFullName = propDef.getNamespace() + ":" + propDef.getName();
            if (propName.equals(predicateName) || propName.contains(predicateName)
                || propFullName.equals(predicateName)) {
                if (annotation != null) {
                    List<CMSObject> referencedNodes = resolveReferenceNodes(prop, engine);
                    processPropertyAnnotation(annotation, subjectClass, referencedNodes, engine);
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DPropertyDefinition

                                                    PropertyBridge propertyBridge,
                                                    MappingEngine engine) throws RepositoryAccessException {
        String predicateName = propertyBridge.getPredicateName();

        for (DProperty property : contentObject.getProperties()) {
            DPropertyDefinition propDef = property.getDefinition();
            // propDef returns null if a * named property comes
            // TODO after handling * named properties, remove the null check
            if (propDef == null) {
                logger.warn("Property definition could not be got for property {}", property.getName());
                continue;
            }
            String propName = propDef.getName();
            String propFullName = propDef.getNamespace() + ":" + propDef.getName();
            if (propName.equals(predicateName) || propName.contains(predicateName)
                || propFullName.equals(predicateName)) {
                AnnotationType annotation = getAnnotation(propertyBridge.getPropertyAnnotation());
                processContentObjectProperty(property, propDef, contentObject, individual, annotation, engine);
                // property found break the loop
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DPropertyDefinition

        return parentClass;
    }

    private void processProperties(DObject cmsObject, OntClass subjectClass, MappingEngine engine) throws RepositoryAccessException {
        for (DProperty prop : cmsObject.getProperties()) {
            DPropertyDefinition propDef = prop.getDefinition();
            // propDef returns null if a * named property comes
            // TODO after handling * named properties, remove the null check
            if (propDef == null) {
                logger.warn("Failed to get property definition for property {}", prop.getName());
                continue;
            }

            AnnotationType annotationType = propDef.getAnnotations();
            propertyBridgeProcessor.processClassificationObjectProperty(prop, annotationType, subjectClass,
                engine);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.