Esempio n. 1
0
 public void materialiseRestrictedly(DatalogProgram4Classification dProgram) {
   Program generalProgram = dProgram.getGeneral();
   MultiStageUpperProgram4Classification program =
       new MultiStageUpperProgram4Classification(
           generalProgram, dProgram.getUpperBottomStrategy());
   Treatment treatment = new Pick4NegativeConceptNaive(this, program);
   materialise(program, treatment, false);
   treatment.dispose();
 }
Esempio n. 2
0
 public Set<?>[] materialiseRestrictedlyAndGetGap(DatalogProgram4Classification dProgram) {
   Program generalProgram = dProgram.getGeneral();
   MultiStageUpperProgram4Classification program =
       new MultiStageUpperProgram4Classification(
           generalProgram, dProgram.getUpperBottomStrategy());
   Treatment treatment = new Treatment4Classification(this, program);
   Set<?>[] ret = materialise(program, treatment, true);
   treatment.dispose();
   return ret;
 }
Esempio n. 3
0
  //	public void materialiseMultiStage(DatalogProgram4Classification dProgram,
  // GapByStore4ID_registerInfoAboutInstantiationIndividualsOnly gap) {//inspired by
  // materialiseRestrictedly in this class originally
  //		materialise("lower program", dProgram.getRLprogram().toString());
  //		Program generalProgram = dProgram.getGeneral();
  //		MultiStageUpperProgram4Classification program = new
  // MultiStageUpperProgram4Classification(generalProgram, dProgram.getUpperBottomStrategy());
  //		Treatment4Classification treatment = new Treatment4Classification(this, program);
  //		materialiseMultiStage(program, treatment, gap);
  //		treatment.dispose();
  //	}
  public void materialiseMultiStage(
      DatalogProgram4Classification dProgram,
      String skolemAboxFileName,
      GapByStore4ID_registerInfoAboutInstantiationIndividualsOnly gap,
      BasicQueryEngine lowerStore) { // inspired by materialiseRestrictedly in this class originally
    addExtraTriplesFromLowerStore(lowerStore, indManager);

    Utility.printAllTriples(getDataStore());

    importRDFData("Skolem data", skolemAboxFileName);
    Program generalProgram = dProgram.getGeneral();
    MultiStageUpperProgram4Classification program =
        new MultiStageUpperProgram4Classification(
            generalProgram, dProgram.getUpperBottomStrategy());
    Treatment4Classification treatment = new Treatment4Classification(this, program);
    materialiseMultiStage(program, treatment, gap);
    treatment.dispose();
  }