Program: 9460
Project: 9460
Buggy source:
@Test public void testRunDBpedia() throws Exception {
  OWLObjectProperty op=df.getOWLObjectProperty(IRI.create("String_Node_Str"));
  SparqlEndpointKS ks=new SparqlEndpointKS(SparqlEndpoint.getEndpointDBpedia());
  ks.setCache(CacheUtilsH2.createCacheFrontend("String_Node_Str",true,TimeUnit.DAYS.toMillis(1)));
  SPARQLReasoner reasoner=new SPARQLReasoner(ks);
  reasoner.init();
  reasoner.precomputePopularities(PopularityType.OBJECT_PROPERTY);
  List<Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>>> la=new ArrayList<Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>>>();
  la.add(DisjointObjectPropertyAxiomLearner.class);
  la.add(SubObjectPropertyOfAxiomLearner.class);
  la.add(EquivalentObjectPropertyAxiomLearner.class);
  la.add(FunctionalObjectPropertyAxiomLearner.class);
  la.add(InverseFunctionalObjectPropertyAxiomLearner.class);
  la.add(ReflexiveObjectPropertyAxiomLearner.class);
  la.add(IrreflexiveObjectPropertyAxiomLearner.class);
  for (  Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>> cls : la) {
    try {
      Constructor<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>> constructor=cls.getConstructor(SparqlEndpointKS.class);
      ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom> learner=(ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>)constructor.newInstance(ks);
      learner.setPropertyToDescribe(op);
      learner.init();
      learner.start();
      List<?> axioms=learner.getCurrentlyBestEvaluatedAxioms(10);
      System.out.println(axioms);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Test public void testRunDBpedia() throws Exception {
  OWLObjectProperty op=df.getOWLObjectProperty(IRI.create("String_Node_Str"));
  SparqlEndpointKS ks=new SparqlEndpointKS(SparqlEndpoint.getEndpointDBpedia());
  ks.setCache(CacheUtilsH2.createCacheFrontend("String_Node_Str",true,TimeUnit.DAYS.toMillis(1)));
  SPARQLReasoner reasoner=new SPARQLReasoner(ks);
  reasoner.init();
  reasoner.precomputePopularities(PopularityType.OBJECT_PROPERTY);
  List<Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>>> la=new ArrayList<Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>>>();
  la.add(DisjointObjectPropertyAxiomLearner.class);
  la.add(SubObjectPropertyOfAxiomLearner.class);
  la.add(EquivalentObjectPropertyAxiomLearner.class);
  la.add(FunctionalObjectPropertyAxiomLearner.class);
  la.add(InverseFunctionalObjectPropertyAxiomLearner.class);
  la.add(ReflexiveObjectPropertyAxiomLearner.class);
  la.add(IrreflexiveObjectPropertyAxiomLearner.class);
  for (  Class<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>> cls : la) {
    try {
      Constructor<? extends ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>> constructor=cls.getConstructor(SparqlEndpointKS.class);
      ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom> learner=(ObjectPropertyAxiomLearner<? extends OWLObjectPropertyAxiom>)constructor.newInstance(ks);
      learner.setEntityToDescribe(op);
      learner.init();
      learner.start();
      List<?> axioms=learner.getCurrentlyBestEvaluatedAxioms(10);
      System.out.println(axioms);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}