@@ -0,0 +1,1408 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage sparql_projet;%0A%0Aimport java.net.URL;%0Aimport java.util.*;%0A%0A%0A/**%0A *%0A * @author vlungenstr%0A */%0Apublic class Sparql_projet %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    public static void main(String%5B%5D args) %7B%0A        ArrayList%3CString%3E uris = new ArrayList%3CString%3E();%0A        uris.add(%22http://dbpedia.org/resource/Student&gt%22);%0A        uris.add(%22http://dbpedia.org/resource/Michelle_Obama%22);%0A        %0A        String queryString = makeQuery(uris);%0A        %0A        URL url = new URL(%22http://stackoverflow.com%22);%0A%0A        try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), %22UTF-8%22))) %7B%0A            for (String line; (line = reader.readLine()) != null;) %7B%0A                System.out.println(line);%0A            %7D%0A        %7D%0A        %0A        %0A       %0A        %0A        %0A    %7D%0A    %0A    public static String makeQuery(ArrayList%3CString%3E uris)%7B%0A        String queryString = %22SELECT * WHERE %7B ?s ?p ?o. FILTER(?s in(%22;%0A            for(String s : uris)%7B%0A                queryString += %22%3C%22 + s + %22%3E%22 + %22,%22;%0A            %7D%0A        %0A        queryString = queryString.substring(0, queryString.length()-1);%0A        queryString += %22))%7D%22;%0A        return queryString;%0A    %7D%0A    %0A%7D%0A

Create sparql.java