Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.ObjectProperty.addProperty()


        }

        if (objectProperty == null) {
            String propertyURI = namingStrategy.getObjectPropertyName(ontologyURI, propertyDefinition);
            objectProperty = ontModel.createObjectProperty(propertyURI);
            objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                propertyDefinition.getUniqueRef());
            if (propertyDefinition.getSourceObjectTypeRef() != null) {
                objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_PROPERTY_SOURCE_OBJECT_PROP,
                    propertyDefinition.getSourceObjectTypeRef());
            } else {
View Full Code Here


            String propertyURI = namingStrategy.getObjectPropertyName(ontologyURI, propertyDefinition);
            objectProperty = ontModel.createObjectProperty(propertyURI);
            objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                propertyDefinition.getUniqueRef());
            if (propertyDefinition.getSourceObjectTypeRef() != null) {
                objectProperty.addProperty(CMSAdapterVocabulary.CMSAD_PROPERTY_SOURCE_OBJECT_PROP,
                    propertyDefinition.getSourceObjectTypeRef());
            } else {
                log.warn("Source object type reference not found on property definition {}",
                    propertyDefinition.getLocalname());
            }
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.