/*
* Created on Oct 13, 2004
*/
package examples;
/**
* An example that finds service matches for composition. The outputs of services are matched with
* the inputs of services using one of EXACT, SUBSUME and RELAXED match criteria. Pellet reasoner is
* used to find matches but can be replaced with any other reasoner.
*
* @author Evren Sirin
*/
public class Matchmaker {
public static class Match {
int matchType;
boolean listMatch;
}
if(listMatch)
str += ".LIST";
str += " -> ";
return str;
}
}
public Matchmaker() {
}
}
}
"SELECT * " +
"WHERE " +
" (?process rdf:type process:Process)" +
"USING " +
" process FOR <http://www.daml.org/services/owl-s/1.1/Process.owl#>";
}
return findServices(true);
}
return findServices(false);
}
else
}
while( i.hasNext() ) {
while( j.hasNext() ) {
// System.out.println("Trying " +
// URIUtils.getLocalName(outputType.getURI()) + " " +
// URIUtils.getLocalName(inputType.getURI()) + " " +
// producer.getLocalName() + " " +
// output.getLocalName() + " " +
// consumer.getLocalName() + " " +
// input.getLocalName()
// );
}
}
return matches;
}
if(i.hasNext()) {
while (i.hasNext())
}
else
}
}
}
}