Examples of OntoSpreadRelationWeightImpl


Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

   
  }

  private static OntoSpreadRelationWeight createRelationWeight(String filename, double defaultValue) {
    if(filename == null || filename.equals("")){
      return new OntoSpreadRelationWeightImpl();
    }
    OntoSpreadRelationWeightRDFImpl ontoSpreadRelationWeightRDFImpl = new OntoSpreadRelationWeightRDFImpl(
            DAOUtils.createModelWrapper(new String[]{filename}));
    ontoSpreadRelationWeightRDFImpl.setWeight(OntoSpreadRelationWeight.DEFAULT_URI, defaultValue);
    return ontoSpreadRelationWeightRDFImpl;
View Full Code Here

Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

   
  }

  private static OntoSpreadRelationWeight createRelationWeight(String filename, double defaultValue) {
    if(filename == null || filename.equals("")){
      return new OntoSpreadRelationWeightImpl();
    }
    OntoSpreadRelationWeightRDFImpl ontoSpreadRelationWeightRDFImpl = new OntoSpreadRelationWeightRDFImpl(
            createModelWrapper(new String[]{filename}));
    ontoSpreadRelationWeightRDFImpl.setWeight(OntoSpreadRelationWeight.DEFAULT_URI, defaultValue);
    return ontoSpreadRelationWeightRDFImpl;
View Full Code Here

Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

    super();
    this.ontologyDAO =ontologyDAO;
    this.ontoSpreadPreAdjustment = ontoSpreadPreAdjustment;
    this.ontoSpreadRun = ontoSpreadRun;
    this.ontoSpreadPostAdjustment = ontoSpreadPostAdjustment;
    this.relationWeight = new OntoSpreadRelationWeightImpl();
    this.ontoSpreadRun.setRelationWeight(this.relationWeight);
  }
View Full Code Here

Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

    double minScore = 1.0;
    OntoSpreadRun runOntoSpread = new OntoSpreadRunImpl(
                      DAOUtils.createOntologyDAO(),
                      OntoSpreadTestUtils.createStopStrategy(min,max, minScore),
                      OntoSpreadTestUtils.createSelectStrategy(),
                      new OntoSpreadRelationWeightImpl());
    OntoSpreadState ontoSpreadState = new OntoSpreadState();
    ontoSpreadState.setInitialConcepts(OntoSpreadTestUtils.createScoredConcepts(conceptUris,1.0));
    List<UriDepthPair> sortedList = new LinkedList<UriDepthPair>();
    for(int i = 0; i<conceptUris.length;i++){
      sortedList.add(new UriDepthPair(conceptUris[i],1));
View Full Code Here

Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

    int max = 5;
    OntoSpreadRun runOntoSpread = new OntoSpreadRunImpl(
                      DAOUtils.createOntologyDAO(),
                      OntoSpreadTestUtils.createStopStrategy(min,max, 1.0),
                      OntoSpreadTestUtils.createSelectStrategy(),
                      new OntoSpreadRelationWeightImpl());
    OntoSpreadState ontoSpreadState = new OntoSpreadState();
    ontoSpreadState.setInitialConcepts(OntoSpreadTestUtils.createScoredConcepts(conceptUris,1.0));
    List<UriDepthPair> sortedList = new LinkedList<UriDepthPair>();
    for(int i = 0; i<conceptUris.length;i++){
      sortedList.add(new UriDepthPair(conceptUris[i],1));
View Full Code Here

Examples of org.ontospread.constraints.OntoSpreadRelationWeightImpl

    int max = 3;
    OntoSpreadRun runOntoSpread = new OntoSpreadRunImpl(
                      DAOUtils.createOntologyDAO(),
                      OntoSpreadTestUtils.createStopStrategy(min,max, 1.0),
                      OntoSpreadTestUtils.createSelectStrategy(),
                      new OntoSpreadRelationWeightImpl());
    OntoSpreadState ontoSpreadState = new OntoSpreadState();
    ontoSpreadState.setInitialConcepts(OntoSpreadTestUtils.createScoredConcepts(conceptUris,1.0));
    setupInitialConcepts(ontoSpreadState, 1.0);   
    List<UriDepthPair> sortedList = new LinkedList<UriDepthPair>();
    for(int i = 0; i<conceptUris.length;i++){
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.