Program: 9755
Project: 9755
Buggy source:
/** 
 * Retrieve axioms for a given individual. Axiom types: SameAs, DifferentFrom, ClassAssertion, ObjectPropertyAssertion, DataPropertyAssertion
 * @param ind
 * @return
 */
private Set<OWLAxiom> retrieveAxiomsForIndividual(OWLNamedIndividual ind){
  logger.info("String_Node_Str" + ind);
  Set<OWLAxiom> axioms=new HashSet<OWLAxiom>();
  queryMonitor.start();
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str").append(ind.toStringID()).append("String_Node_Str").append("String_Node_Str").append("String_Node_Str");
  sb.append("String_Node_Str").append(RESULT_LIMIT);
  Query query=QueryFactory.create(sb.toString());
  QueryExecution queryExec=QueryExecutionFactory.sparqlService(endpointURI,query,DEFAULT_GRAPH_URI);
  ResultSet results=queryExec.execSelect();
  QuerySolution solution;
  RDFNode rdfNodePredicate;
  RDFNode rdfNodeObject;
  while (results.hasNext()) {
    solution=results.nextSolution();
    rdfNodePredicate=solution.getResource("String_Node_Str");
    rdfNodeObject=solution.get("String_Node_Str");
    if (rdfNodeObject.isAnon()) {
      continue;
    }
    if (rdfNodePredicate.equals(RDF.type)) {
      axioms.add(factory.getOWLClassAssertionAxiom(factory.getOWLClass(IRI.create(rdfNodeObject.toString())),ind));
    }
 else     if (rdfNodePredicate.equals(OWL.sameAs)) {
      axioms.add(factory.getOWLSameIndividualAxiom(ind,factory.getOWLNamedIndividual(IRI.create(rdfNodePredicate.toString()))));
    }
 else     if (rdfNodePredicate.equals(OWL.differentFrom)) {
      axioms.add(factory.getOWLDifferentIndividualsAxiom(ind,factory.getOWLNamedIndividual(IRI.create(rdfNodePredicate.toString()))));
    }
 else     if (rdfNodeObject.isLiteral()) {
      if (rdfNodeObject.equals(RDFS.comment)) {
      }
 else       if (rdfNodeObject.equals(RDFS.label)) {
      }
 else {
        axioms.add(factory.getOWLDataPropertyAssertionAxiom(factory.getOWLDataProperty(IRI.create(rdfNodePredicate.toString())),ind,rdfNodeObject.toString()));
      }
    }
 else     if (rdfNodeObject.isResource()) {
      axioms.add(factory.getOWLObjectPropertyAssertionAxiom(factory.getOWLObjectProperty(IRI.create(rdfNodePredicate.toString())),ind,factory.getOWLNamedIndividual(IRI.create(rdfNodeObject.toString()))));
    }
  }
  if (axioms.isEmpty()) {
    axioms.addAll(getAxiomsFromLinkedDataSource(ind.getIRI()));
  }
  queryMonitor.stop();
  logger.info("String_Node_Str" + axioms.size() + "String_Node_Str"+ queryMonitor.getLastValue()+ "String_Node_Str");
  return axioms;
}

Fixed version (ground truth):
/** 
 * Retrieve axioms for a given individual. Axiom types: SameAs, DifferentFrom, ClassAssertion, ObjectPropertyAssertion, DataPropertyAssertion
 * @param ind
 * @return
 */
private Set<OWLAxiom> retrieveAxiomsForIndividual(OWLNamedIndividual ind){
  logger.info("String_Node_Str" + ind);
  Set<OWLAxiom> axioms=new HashSet<OWLAxiom>();
  queryMonitor.start();
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str");
  sb.append("String_Node_Str").append(ind.toStringID()).append("String_Node_Str").append("String_Node_Str").append("String_Node_Str");
  sb.append("String_Node_Str").append(RESULT_LIMIT);
  Query query=QueryFactory.create(sb.toString());
  QueryExecution queryExec=QueryExecutionFactory.sparqlService(endpointURI,query,DEFAULT_GRAPH_URI);
  ResultSet results=queryExec.execSelect();
  QuerySolution solution;
  RDFNode rdfNodePredicate;
  RDFNode rdfNodeObject;
  while (results.hasNext()) {
    solution=results.nextSolution();
    rdfNodePredicate=solution.getResource("String_Node_Str");
    rdfNodeObject=solution.get("String_Node_Str");
    if (rdfNodeObject.isAnon()) {
      continue;
    }
    if (rdfNodePredicate.equals(RDF.type)) {
      axioms.add(factory.getOWLClassAssertionAxiom(factory.getOWLClass(IRI.create(rdfNodeObject.toString())),ind));
    }
 else     if (rdfNodePredicate.equals(OWL.sameAs)) {
      axioms.add(factory.getOWLSameIndividualAxiom(ind,factory.getOWLNamedIndividual(IRI.create(rdfNodeObject.toString()))));
    }
 else     if (rdfNodePredicate.equals(OWL.differentFrom)) {
      axioms.add(factory.getOWLDifferentIndividualsAxiom(ind,factory.getOWLNamedIndividual(IRI.create(rdfNodeObject.toString()))));
    }
 else     if (rdfNodeObject.isLiteral()) {
      if (rdfNodeObject.equals(RDFS.comment)) {
      }
 else       if (rdfNodeObject.equals(RDFS.label)) {
      }
 else {
        axioms.add(factory.getOWLDataPropertyAssertionAxiom(factory.getOWLDataProperty(IRI.create(rdfNodePredicate.toString())),ind,rdfNodeObject.toString()));
      }
    }
 else     if (rdfNodeObject.isResource()) {
      axioms.add(factory.getOWLObjectPropertyAssertionAxiom(factory.getOWLObjectProperty(IRI.create(rdfNodePredicate.toString())),ind,factory.getOWLNamedIndividual(IRI.create(rdfNodeObject.toString()))));
    }
  }
  if (axioms.isEmpty()) {
    axioms.addAll(getAxiomsFromLinkedDataSource(ind.getIRI()));
  }
  queryMonitor.stop();
  logger.info("String_Node_Str" + axioms.size() + "String_Node_Str"+ queryMonitor.getLastValue()+ "String_Node_Str");
  return axioms;
}