Package com.hp.hpl.jena.ontology

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


    }
   
    String resourceString = ns_ + goodName ;
    log.info("datatype Property created " + resourceString);
    DatatypeProperty p = newOntModel.createDatatypeProperty(resourceString);
    p.addProperty(RDFS.label, str);
    p.addDomain(classForTerms);
    return p;
  }

  private String getGoodName(String str, boolean allowColon) {
View Full Code Here


        if (datatypeProperty == null) {
            String propertyURI = namingStrategy.getDataPropertyName(ontologyURI, propertyDefinition);
            Resource range = getDatatypePropertyRange(propertyDefinition.getPropertyType());
            datatypeProperty = ontModel.createDatatypeProperty(propertyURI);
            datatypeProperty.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                propertyDefinition.getUniqueRef());
            if (propertyDefinition.getSourceObjectTypeRef() != null) {
                datatypeProperty.addProperty(CMSAdapterVocabulary.CMSAD_PROPERTY_SOURCE_OBJECT_PROP,
                    propertyDefinition.getSourceObjectTypeRef());
            } else {
View Full Code Here

            Resource range = getDatatypePropertyRange(propertyDefinition.getPropertyType());
            datatypeProperty = ontModel.createDatatypeProperty(propertyURI);
            datatypeProperty.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                propertyDefinition.getUniqueRef());
            if (propertyDefinition.getSourceObjectTypeRef() != null) {
                datatypeProperty.addProperty(CMSAdapterVocabulary.CMSAD_PROPERTY_SOURCE_OBJECT_PROP,
                    propertyDefinition.getSourceObjectTypeRef());
            } else {
                log.info("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.