Examples of OntoSpreadSelectConceptStrategy


Examples of org.ontospread.strategy.OntoSpreadSelectConceptStrategy

 
  public static OntoSpreadStrategyVisitorPair createSelectStrategy(){
    //Restrictions: Strategy Select
    OntoSpreadCompositeRestriction restrictionsSelect = new OntoSpreadCompositeRestriction();
    restrictionsSelect.getRestrictions().add(new OntoSpreadRestrictionMinActivationValue(10.0));
    OntoSpreadStrategy selectStrategy = new OntoSpreadSelectConceptStrategy(restrictionsSelect);   
    return new OntoSpreadStrategyVisitorPair(selectStrategy,new OntoSpreadBooleanRestrictionVisitor());   
  }
View Full Code Here

Examples of org.ontospread.strategy.OntoSpreadSelectConceptStrategy

public class OntoSpreadTestUtils {

  public static OntoSpreadStrategyVisitorPair createSelectStrategy(OntoSpreadRestriction restrictions){
    //Restrictions: Strategy Select
    OntoSpreadStrategy selectStrategy = new OntoSpreadSelectConceptStrategy(restrictions);   
    return new OntoSpreadStrategyVisitorPair(selectStrategy,new OntoSpreadBooleanRestrictionVisitor());   
  }
View Full Code Here

Examples of org.ontospread.strategy.OntoSpreadSelectConceptStrategy

 
  public static OntoSpreadStrategyVisitorPair createSelectStrategy(){
    //Restrictions: Strategy Select
    OntoSpreadCompositeRestriction restrictionsSelect = new OntoSpreadCompositeRestriction();
    restrictionsSelect.getRestrictions().add(new OntoSpreadRestrictionMinActivationValue(10.0));
    OntoSpreadStrategy selectStrategy = new OntoSpreadSelectConceptStrategy(restrictionsSelect);   
    return new OntoSpreadStrategyVisitorPair(selectStrategy,new OntoSpreadBooleanRestrictionVisitor());   
  }
View Full Code Here

Examples of org.ontospread.strategy.OntoSpreadSelectConceptStrategy

    ConceptTO conceptTO = new ConceptTO("http://uri.to.test");
   
    state.setConceptToSpread(conceptTO);

   
    OntoSpreadStrategy strategy = new OntoSpreadSelectConceptStrategy(restrictions);   
    OntoSpreadStrategyVisitorPair pair = new OntoSpreadStrategyVisitorPair(strategy,new OntoSpreadBooleanRestrictionVisitor());
   
    state.setCurrentScore(11.0);   
    Object select = pair.applyStrategy(state) ;
    assertEquals(select.getClass(),Boolean.class);
View Full Code Here

Examples of org.ontospread.strategy.OntoSpreadSelectConceptStrategy

  public static OntoSpreadStrategyVisitorPair createSelectStrategy(){
    //Restrictions: Strategy Select
    OntoSpreadCompositeRestriction restrictionsSelect = new OntoSpreadCompositeRestriction();
    restrictionsSelect.getRestrictions().add(new OntoSpreadRestrictionMinActivationValue(10.0));
    OntoSpreadStrategy selectStrategy = new OntoSpreadSelectConceptStrategy(restrictionsSelect);   
    return new OntoSpreadStrategyVisitorPair(selectStrategy,new OntoSpreadBooleanRestrictionVisitor());   
  }
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.