Data sets


SPARQL Endpoint

SPARQL Endpoint
http://library.k-history.kr/sparql
Sample(JAVA) for Mashup
String query = "select ?s ?p ?o where {?s ?p ?o } limit 500"; 
query = URLEncoder.encode(query,"UTF-8"); 
String urlString = "http://library.k-history.kr/sparql/index.jsp?query="+query+"&type1=xml"; 
String result; 
URL url; 
BufferedReader br = null; 
try { 
  	url = new URL(urlString); 
  	URLConnection conn = url.openConnection (); 
  	br = new BufferedReader(new InputStreamReader(conn.getInputStream())); 
  	StringBuffer sb = new StringBuffer(); 
  	String line; 
  	while ((line = br.readLine()) != null) 
  	sb.append(line); 
  	result = sb.toString(); 
  	System.out.println("result : \n" + result); 
} catch (MalformedURLException e) { 
  	e.printStackTrace(); 
} catch (IOException e) {	
  	e.printStackTrace(); 
} finally{ 
  	br.close(); 
}