Пример #1
0
  @BeforeClass
  public static void beforeClass() {
    graphData = ConfigTest.getTestingDataRoot() + "/Data/solver-data.ttl";
    graph = TDBFactory.createDatasetGraph().getDefaultGraph();
    Model m = ModelFactory.createModelForGraph(graph);
    FileManager.get().readModel(m, graphData);

    pmap = new PrefixMappingImpl();
    pmap.setNsPrefix("", "http://example/");
  }
Пример #2
0
  public void setup() {

    DatasetGraph dsg = TDBFactory.createDatasetGraph();

    dsg.getContext().set(TDB.symUnionDefaultGraph, true);
    Dataset myDataset = DatasetFactory.create(dsg);

    baseModel = myDataset.getNamedModel("http://example.com/baseModel");
    baseModel = QueryEngineTest.populateModel(baseModel);

    dftModel = Factory.getInstance(eval, "http://example.com/securedModel", baseModel);

    dataset = DatasetFactory.createMem();
    dataset.setDefaultModel(dftModel);
  }