Package org.ontospread.xmlbind

Examples of org.ontospread.xmlbind.SpreadedConceptTOType


      ontoSpreadXMLState.getSpreadPathTable().getSpreadTableTOs().add(entry );
    }
   
    ontoSpreadXMLState.setFinalSpreadedConcepts(factory.createSpreadedConceptTOListType());
    for (SpreadedConceptTO spreadedConcept : ontoSpreadState.getFinalSpreadedConcepts()) {
      SpreadedConceptTOType spreadedXML = new SpreadedConceptTOType();
      spreadedXML.setConceptUri(spreadedConcept.getConcept().getUri());
      PathTO[] pathTOs = spreadedConcept.getSpreadPath();
      for (PathTO pathTO : pathTOs) {
        PathTOType pathToAdd = new PathTOType();
        pathToAdd.setUri(pathTO.getConceptUri());
        pathToAdd.setRelations(factory.createListUrisType());
        if(pathTO.getRelationsUri() != null){
          pathToAdd.getRelations().getRelations().addAll(Arrays.asList(pathTO.getRelationsUri()));
        }
        spreadedXML.setPathTOs(factory.createPathTOTypeList());
        spreadedXML.getPathTOs().getPathTOs().add(pathToAdd);
      }
      spreadedXML.setScore(spreadedConcept.getScore());
      ontoSpreadXMLState.getFinalSpreadedConcepts().getSpreadedConceptTOs().add(spreadedXML);
    }
   
    ontoSpreadXMLState.setUriDepthPair(factory.createUriDepthListType());
    List<UriDepthPairType> uriDepthPairs = ontoSpreadXMLState.getUriDepthPair().getUriDepthPairs();
View Full Code Here

TOP

Related Classes of org.ontospread.xmlbind.SpreadedConceptTOType

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.