protected SortedSet syntacticFilter(Service queryService, Vector queryInputs, Vector queryOutputs, SortedSet semanticResults) throws NotUnfoldableException, URISyntaxException, MatchingException {
SortedSet result = new TreeSet();
String input = reason.unfoldURIs(queryInputs);
String output = reason.unfoldURIs(queryOutputs);
double sim_input, sim_output;
MatchingResult info;
Iterator iter = semanticResults.iterator();
while(iter.hasNext()) {
sim_input=0.0;
sim_output=0.0;
info = (MatchingResult) iter.next();