Examples of runSPARQL()


Examples of org.apache.stanbol.commons.owl.RunSingleSPARQL.runSPARQL()

        map.put("owl","<http://www.w3.org/2000/01/rdf-schema#>");
        map.put("rdf","<http://www.w3.org/1999/02/22-rdf-syntax-ns#>");
        map.put("ex","<http://www.semanticweb.org/ontologies/2010/6/ProvaParent.owl#>");
        String query = "SELECT * WHERE {?p rdf:type ex:Person .}";
        RunSingleSPARQL instance = new RunSingleSPARQL(owl,map);
        ResultSet result = instance.runSPARQL(query);

        if(result!=null){
            int m = 0;
            while(result.hasNext()){
                result.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.