Package org.ontospread.xmlbind

Examples of org.ontospread.xmlbind.Relations


        ConceptDescription currentConceptDescription = OntologyHelper.createConceptDescription(ontResource);
        concept.setConceptDescription(currentConceptDescription);
       
        if(ontResource.isClass()){           
            OntClass ontClass = ontResource.asClass();
            Relations relations = concept.getRelations();
            logger.debug("Adding relations "+relations);
            relations.getRelations().addAll(getRelations(TypeHierarchy.SUPERCLASS, ontClass.listSuperClasses(true)));
            relations.getRelations().addAll(getRelations(TypeHierarchy.SUBCLASS, ontClass.listSubClasses(true)));
            concept.setRelations(relations);
            fillInstances(ontClass, concept);
        }else if(ontResource.isIndividual()){
            Individual individual = ontResource.asIndividual();
            List conceptRelations = concept.getRelations().getRelations();
View Full Code Here


public class ConceptBuilderUtils {


    public static Concept createEmptyConcept() {
        Concept concept = new Concept();
        concept.setRelations(new Relations());
        concept.setContext(false);       
        concept.setInstances(new Concepts());
        concept.setInstanceof(new Concepts());
        return concept;
    }
View Full Code Here

TOP

Related Classes of org.ontospread.xmlbind.Relations

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.