Package org.ontospread.to

Examples of org.ontospread.to.ConceptTO


    }
  }
 
  public void testGetConceptTO() throws Exception {
    try{
      ConceptTO conceptTO = dao.getConceptTO(conceptUri);     
    }catch(Exception e){
      fail(e.getMessage());
    }
  }
View Full Code Here


    restrictions.getRestrictions().add(new OntoSpreadRestrictionMinActivationValue(10.0));
    //State   
    OntoSpreadState state = new OntoSpreadState();
   
   
    ConceptTO conceptTO = new ConceptTO("http://uri.to.test");
   
    state.setConceptToSpread(conceptTO);

   
    OntoSpreadStrategy strategy = new OntoSpreadSelectConceptStrategy(restrictions);   
View Full Code Here

 
  public void spreadConcept(ConceptTO conceptTO, OntoSpreadState ontoSpreadState) throws ConceptNotFoundException{
       //Begin the algorithm with each concept
      final UriDepthPair uriDepth = extractFromConceptStack(ontoSpreadState);     
    final String currentUri = uriDepth.getUri();
    ontoSpreadState.setConceptToSpread(new ConceptTO(uriDepth.getUri()));//FIXME
        final PathTO[] currentSpreadPath = getSpreadPath(ontoSpreadState.getSpreadPathTable(),currentUri);       
        final double currentScore = getScore(ontoSpreadState, currentUri);
        ontoSpreadState.setCurrentScore(currentScore);//FIXME
        final int depth = uriDepth.getDepth();
        final double []parameters = new double[]{depth};
View Full Code Here

TOP

Related Classes of org.ontospread.to.ConceptTO

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.