sameTerms.add(new SameTerm(objVar.clone(), resource));
}
ValueExpr constraint = new Or(sameTerms);
result = new Filter(result, constraint);
ProjectionElemList projElemList = new ProjectionElemList();
projElemList.addElement(new ProjectionElem(subjVar.getName(), "subject"));
projElemList.addElement(new ProjectionElem(predVar.getName(), "predicate"));
projElemList.addElement(new ProjectionElem(objVar.getName(), "object"));