Package org.ontospread.xmlbind

Examples of org.ontospread.xmlbind.TypeHierarchy


              //For each conceptDescription in relation
              for (ConceptDescription conceptDescription : r.getConceptDescriptions()) {
                final String objectConceptUri = conceptDescription.getUri();
                  logger.debug("Adding "+relationUri+" object "+objectConceptUri);
                  if(objectConceptUri!=null ){
                      TypeHierarchy hierarchy = r.getHierarchy();
            if (r.getOnproperty() != null) {
                          logger.debug("Registering relation " + relationUri + "(" + r.getOnproperty() + ") with concept " + objectConceptUri);               
                          relationsUris.add(objectConceptUri);                         
                          relationConcept.add(new ConceptRelationPair(hierarchy  ,  objectConceptUri, r.getOnproperty()));
                      } else {               
                          // Caution! this may seem counter-intuitive, but it is right
                          if (isSuperclassOfRelation(r)) {
                              // this _is superclass of_ object, so...
                            logger.debug("Adding subclass "+objectConceptUri);
                              subClassesUris.add(objectConceptUri);
                          } else {
                              // otherwise, the object _is superclass of_ this, so...
                            logger.debug("Adding superclass "+objectConceptUri);
                              superClassesUris.add(objectConceptUri);
                          }
                          relationConcept.add(
                              new ConceptRelationPair(hierarchy,
                                  objectConceptUri,
                                  OntoSpreadRelationWeight.DEFAULT_NAMESPACE+hierarchy.toString()));
                      }
                  } else{
                  }   
              }//End for each concept description in relation           
          }
View Full Code Here

TOP

Related Classes of org.ontospread.xmlbind.TypeHierarchy

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.