Package owlsmx.data

Examples of owlsmx.data.MatchedService


    public static ArrayList sortedSetToArrayList(SortedSet set,int query) {
        ArrayList array = new ArrayList();
        Iterator iter = set.iterator();
        String name="";
        MatchedService service;
        while(iter.hasNext()){
            service = (MatchedService)iter.next();
            name = (service).serviceURI.toString();
            log("" + query + " - " + service.toString());
            array.add(name.substring(name.lastIndexOf("/")+1));
        }
        return array;
    }
View Full Code Here


        }
    }
     
    private static void printResult(SortedSet result) {
        Iterator iter = result.iterator();
        MatchedService service;
        while(iter.hasNext()) {
            service = (MatchedService) iter.next();
            System.out.println(service.toString());
        }
    }
View Full Code Here

        ErrorLog.instanceOf().report("Reset treshold to 0.0 as syntactic matching is used");
        tresh = 0.0;
      }
      matcher.setSyntacticTreshold(tresh);
        SortedSet result = new TreeSet();       
        MatchedService entry;
        SortedSet OWLSMXResult = matchRequest(profileURI);
        //owlsmx.io.ErrorLog.instanceOf().debug("MXResult:\n   " + OWLSMXResult.toString());
        //matcher.print();
        for (Iterator iter = OWLSMXResult.iterator();iter.hasNext();) {
            entry = (MatchedService) iter.next();           
View Full Code Here

            while(iter.hasNext()) {
                entry =(MatchingResult)iter.next();
                if (advertisedServices.containsKey(new Integer(entry.serviceID))) {               
                  uri=new URI(((URI)advertisedServices.get(new Integer(entry.serviceID))).toString());           
//                  System.err.println(this.getClass().toString() + "matchRequest (" + entry.degreeOfMatch + "/"  + entry.similarity + ")");
                  Matchingresult.add(new MatchedService(entry,uri));
                  }             
            }

       return Matchingresult;
        }
View Full Code Here

TOP

Related Classes of owlsmx.data.MatchedService

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.