0
0

More than 3 years have passed since last update.

dbpediaの研究 その22

Posted at

概要

dbpediaが難解なので、手出してみる。
vb.netで、取得してみた。

サンプルコード

imports system.net
imports System.Text
imports System.io

public class compiler
  shared function Main as integer
    Dim url As String = "http://ja.dbpedia.org/sparql"
    Dim wc As New System.Net.WebClient
    Dim ps As New System.Collections.Specialized.NameValueCollection    
    ps.Add("query", "SELECT DISTINCT * WHERE { dbpedia-ja:デ・トマソ dbpedia-owl:abstract ?abstract .}")
    Dim resData As Byte() = wc.UploadValues(url, ps)
    wc.Dispose()
    Dim resText As String = System.Text.Encoding.UTF8.GetString(resData)
    Console.WriteLine(resText)
    Console.WriteLine ("XXXXXXXX")
    return 0
  End function
end class

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0