Package org.ontospread.model.resources

Examples of org.ontospread.model.resources.FilesResourceLoader


  private final String contextUri = "http://dbpedia.org/";
 
  private org.ontospread.gui.demo.WebOntologyDAOImpl dao;
 
  public void setUp() {
    OntoSpreadModelWrapper wrapper = new JenaOWLModelWrapper(new FilesResourceLoader(new String[0]));
    dao = new WebOntologyDAOImpl(wrapper)
  }
View Full Code Here


  public static OntoSpreadPostAdjustment createDefaultPost(boolean makePrize) {
    return new OntoSpreadPostAdjustmentImpl(makePrize);
  }
 
  public static OntoSpreadModelWrapper createOntoModelWrapper(List<String> filenames){
    ResourceLoader resource = new FilesResourceLoader(filenames);
    JenaOWLModelWrapper model = new JenaOWLModelWrapper(resource);
    return model;
  }
View Full Code Here

    OntologyDAO ontoDAO = new JenaOntologyDAOImpl(createOntoModelWrapper(filenames ));
    return ontoDAO;
  }
 
  public static OntoSpreadModelWrapper createModelWrapper(List<String> filesWeights) {
    ResourceLoader resource = new FilesResourceLoader(filesWeights);
    return new JenaRDFModelWrapper(resource)
   
  }
View Full Code Here

  }
 


  public static OntoSpreadModelWrapper createOntoModelWrapper(String []filenames){
    ResourceLoader resource = new FilesResourceLoader(filenames);
    JenaOWLModelWrapper model = new JenaOWLModelWrapper(resource);
    return model;
  }
View Full Code Here

public class OntoSpreadRelationWeightRDFImplTest extends TestCase {

 
  protected OntoSpreadRelationWeight createRelationWeight(String []filenames){
    ResourceLoader resource = new FilesResourceLoader(filenames );
    JenaOWLModelWrapper model = new JenaOWLModelWrapper(resource);
    return new OntoSpreadRelationWeightRDFImpl(model);
  }
View Full Code Here

  private final String contextUri = "http://dbpedia.org/";
 
  private WebOntologyDAOImpl dao;
 
  public void setUp() {
    OntoSpreadModelWrapper wrapper = new JenaOWLModelWrapper(new FilesResourceLoader(new String[0]));
    dao = new WebOntologyDAOImpl(wrapper)
  }
View Full Code Here

import org.ontospread.model.resources.FilesResourceLoader;
import org.ontospread.model.resources.ResourceLoader;

public class DAOUtils {
  public static OntoSpreadModelWrapper createOntoModelWrapper(String []filenames){
    ResourceLoader resource = new FilesResourceLoader(filenames);
    JenaOWLModelWrapper model = new JenaOWLModelWrapper(resource);
    return model;
  }
View Full Code Here

    return ontoDAO;
  }
 
  public static OntoSpreadModelWrapper createModelWrapper() {
    String[] filenames = new String[]{"relation-weights.rdf"};
    ResourceLoader resource = new FilesResourceLoader(filenames);
    return new JenaRDFModelWrapper(resource)
   
  }
View Full Code Here

TOP

Related Classes of org.ontospread.model.resources.FilesResourceLoader

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.