SPARQL Endpoint

This SPARQL endpoint enables users to query this Ontology knowledge base via the SPARQL language as shown in the box below. As you see, results are typically returned in one or more machine-processable formats. Therefore, this SPARQL endpoint is mostly conceived as a machine-friendly interface towards this knowledge base. Both the formulation of the queries and the human-readable presentation of the results should typically be implemented by the calling software, and not be done manually by human users.

SPARQL Query


Output Format:

Sample Queries


Sample (JAVA) for Mashup

  String query = "select ?p ?o where {?s ?p ?o } limit 500"; 
  query = URLEncoder.encode(query,"UTF-8"); 
  String urlString = "http://library.k-history.kr/sparql?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(); 
  }
  

SPARQL endpoint : http://library.k-history.kr/sparql