Package com.hp.hpl.jena.ontology

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


    OntClass cls = newOntModel.createClass(resourceString);
   
    log.info("KKKKKKKKKKKKKK cls.getNameSpace() = " +cls.getNameSpace());
    log.info("KKKKKKKKKKKKKK cls.getLocalName() = " +cls.getLocalName());
   
    cls.addProperty(RDFS.label, primaryClass);
    log.info("class created " + resourceString);
   
    return cls;

  }
View Full Code Here


        }

        if (klass == null) {
            String classURI = namingStrategy.getClassName(ontologyURI, reference);
            klass = ontModel.createClass(classURI);
            klass.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP, reference);
            log.debug("OWL Class {} not found for reference. Creating new one...", reference);
        }

        return klass;
    }
View Full Code Here

        }

        if (klass == null) {
            String classURI = namingStrategy.getClassName(ontologyURI, cmsObject);
            klass = ontModel.createClass(classURI);
            klass.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP, cmsObject.getUniqueRef());
            log.debug("OWL Class {} not found creating...", classURI);
        }

        return klass;
    }
View Full Code Here

        }

        if (klass == null) {
            String classURI = namingStrategy.getClassName(ontologyURI, objectTypeDefinition);
            klass = ontModel.createClass(classURI);
            klass.addProperty(CMSAdapterVocabulary.CMSAD_RESOURCE_REF_PROP,
                objectTypeDefinition.getUniqueRef());
            log.debug("OWL Class {} not found, creating new one...", classURI);
        }

        return klass;
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.