Package org.mindswap.owls.service

Examples of org.mindswap.owls.service.Service


     * @see owlsmx.Matchmaker#addService(java.lang.Integer, org.mindswap.owls.service.Service)
     */
    public void addService(Integer integer, URI profileURI){    
    try {
      org.mindswap.owl.OWLOntology onto = base.read(profileURI);
      Service service = onto.getService();
      addService(integer, onto, MatchmakerUtils.getURIList(service.getProfile().getInputs()), MatchmakerUtils.getURIList(service.getProfile().getOutputs()) );
    } catch (FileNotFoundException e) {
      ErrorLog.instanceOf().report(this.getClass().toString() + "|addService: Could not add service from this URI" + profileURI.toString());
      e.printStackTrace();
    }
    base.unload(profileURI);
View Full Code Here


     */
    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);
          }
View Full Code Here

TOP

Related Classes of org.mindswap.owls.service.Service

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.