*/
public SortedSet matchRequest(URI profileURI) throws MatchingException{
try {
// System.err.println("Matching request: " + profileURI);
org.mindswap.owl.OWLOntology onto = base.read(profileURI);
Service service = onto.getService();
// System.err.println("Processing request" + service.getURI());
Vector inputurilist=MatchmakerUtils.getURIList(service.getProfile().getInputs());
Vector outputurilist=MatchmakerUtils.getURIList(service.getProfile().getOutputs());
Set conceptsToAdd = new HashSet();
conceptsToAdd.addAll(inputurilist);
conceptsToAdd.addAll(outputurilist);
// System.err.println("Parameters " + conceptsToAdd.toString());
localOntologyContainer.processClasses(base, conceptsToAdd);
updateReasoner();
base.unload(profileURI);
if (useSyntacticFilter()) {
SimpleIndex.instanceOf().addDocument(service.getURI().toString(),reason.unfoldURIs(inputurilist)+ " " + reason.unfoldURIs(outputurilist));
return syntacticFilter(service, inputurilist, outputurilist, semanticMatch(inputurilist, outputurilist) );
}
else {
return semanticMatch(inputurilist, outputurilist);
}