王文
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 歷史的刻痕--轉型正義資料庫wikidata化計畫 * 時間:2020/3/14 * 地點 * 線上,[g0v hackath38n 第參拾捌次在家黑客松](https://g0v.hackmd.io/@jothon/g0v-hackath38n/) * 時間 0900 - 1800 * [雲端聊天室](https://meet.jit.si/g0v3810) ## 本共筆短網址 https://tg.pe/1uA * 專案討論 Slack [g0v slack #wikidatataiwan](https://join.g0v.tw/) * [提案內容說明](https://youtu.be/q0p3BgaM9U8) [Dashboard](https://outreachdashboard.wmflabs.org/courses/Wikimedia_Taiwan,_A_Room_of_WikiWomen's_Own/Wikiwomen_Taiwan_Meetup_-_June_(202006)?enroll=) [工作分配](https://docs.google.com/spreadsheets/d/1dS_OLLVAwywPAGTB4cQOmJbiuz6rDL46MoRdUDvmAaY/edit?usp=sharing) ## 緣起 臺灣轉型正義資料庫在近日釋出,內容涵蓋所有當時的受害者、審判者與相關的判決資料,這是第一次有完整且檢索功能相對完善的資料平台網站上線。 然而,這只是一切的開端。這個資料庫提供了一個很好的資料基礎,讓我們能透過將其導入至 Wikidata 中,進一步去做其他平台線上資料的編輯與現有維基百科資料的補充。 以 [丁窈窕](https://www.wikidata.org/wiki/Q21040401) 為例,我們可以透過轉型正義資料庫去補充Wikidata中現有的資料,同時進行線上資料的檢索;將線上所有的有關資料,以參考文獻的方式添加進入 Wikidata 中。除了能夠增進 Wikidata 內的條目資料品質外,也能提供後續研究者能直接在 Wikidata 條目中,索引到大部分線上資料的頁面位置。 透過將人物建立在 Wikidata 中,可以使資料的分析更加容易。現有的臺灣轉型資料庫可能因為資料授權的問題,或是其餘的技術問題;除了資料還無法透過開放授權釋出之外,目前提供的分析資料仍為 xslx 或 ods ,彈性仍不及其他格式來得大。 以 Wikidata 目前可提供的分析,可以很精確的做到人物與人物之間的脈絡比較與爬梳,同時以 CC0 釋出的資料庫與其他的人物分析平台能有更好的授權兼容性。 最後,這個專案究竟有找人來做什麼呢?我們今天希望找人來一起蒐集資料、整理資料,同時把轉型正義資料庫中的人物,建立在 Wikidata 中。 如果,已經有條目的人物就透過轉型正義資料庫與線上資料去增補資料內容。沒有條目的人物就進行條目建立;除了以轉型正義資料庫為參考資料外,也透過線上資料的蒐集轉進 Wikidata 參考文獻中。 ### 資料填寫重點 * 性質 P31 -> 人類Q5 * 必填 * 性別 P21 * 必填 * 男性(Q6581097) * 女性(Q6581072) * 雙性人(Q1097630) * 女跨性别者(Q1052281) * 男跨性别者(Q2449503) * 如果新增的非男性或女性是其他選項,請務必添加參考來源 * 國籍 P27 * 必填 * 中華民國 Q865 * 姓氏 P734 * 必填 * 出生地 P19 * 請至少新增至縣、市等級 * 請勿寫出生於哪一國 * 出生日期 P569 * 西元年月日 * 請務必新增參考文獻 * 死亡日期 P570 * 西元年月日 * 請務必新增參考文獻 * 死亡地 P20 * 請至少新增至縣、市等級 * 請勿寫死亡於哪一國 * 死亡方式 P1196 * 自然死亡 * 意外 * 殺害 * 有待調查 * 死刑 * 未知數值 * 非正常死亡 * 安樂死 * 戰死 * 緩和鎮靜 * 謀殺 * 自殺 * 請務必新增參考文獻 * 不知道可略過 * 死因 P509 * 請務必新增參考文獻 * 不知道可略過 * 墓地 * 實際地點 * 不知道可略過 ### 參考文獻 * 載於 * 轉型正義資料庫 Q87472037 * 如果從資料庫轉錄的內容請一定要新增這一筆 * 來源網址 * 必填 * 作品與名稱語言 * 必填 * 只要是中華民國境內的中文文本都是 「中華民國國語」 * 檢索日期 * 必填 * 20200314 * 依實際檢索時間填寫 ## 資料源 * 主要參照資料 [轉型正義資料庫](https://twtjcdb.tjc.gov.tw/Search) * 可參照 https://sheethub.com/billy3321/%E6%88%B0%E5%BE%8C%E6%94%BF%E6%B2%BB%E6%A1%88%E4%BB%B6%E5%8F%8A%E5%8F%97%E9%9B%A3%E8%80%85?page=35 ## 任務分配 > 範圍以轉型正義資料庫內的籍貫地理區域分類 * [ ]KOKUYO:死刑(請大家跳過死刑犯之編輯) * [ ]Allen:籍貫新北市 * [x]Frank:籍貫澎湖縣 * [ ]Frank:籍貫台南縣(死刑除外) * [ ]Jamie:籍貫台南市 ## 討論區 > 歡迎大家在下面開槓 ```go // This tool depends on "github.com/jd3main/gowd" (commit id: 74060fd) package main import ( "encoding/json" "fmt" "html" "io/ioutil" "strconv" "strings" gowd "github.com/jd3main/gowd" ) var client *gowd.Client type SearchResults struct { SearchInfo interface{} Values []ItemInfo `json:"search"` } type ItemInfo struct { Id string Label string Description string } func main() { client = &gowd.Client{ AcceptFormat: "json", Languages: []string{"zh-tw", "zh-hant", "zh"}} names := getNames() fmt.Printf("%v\n", names) // Search Existence for _, name := range names { res, err := searchEntity(name) if err != nil { fmt.Println(err) return } if len(res.Values) == 0 { fmt.Printf("%v: no result\n", name) continue } fmt.Printf("%v: %v: %v\n", name, res.Values[0].Id, res.Values[0].Label) } } func getNames() []string { siteURL := "https://twtjcdb.tjc.gov.tw/Search/S?C4=%E8%87%BA%E7%81%A3%E7%9C%81&CI=%E8%87%BA%E5%8D%97%E5%B8%82&O=a" names, err := getNamesFromPage(siteURL, 1) if err != nil { fmt.Println(err) } return names } func getNamesFromPage(siteURL string, page int) (names []string, err error) { fullURL := siteURL + "&N=" + strconv.Itoa(page) fmt.Printf("URL: %v\n", fullURL) resp, err := client.Get(fullURL) fmt.Printf("resp.Body = %v\n", resp.Body) defer resp.Body.Close() content, err := ioutil.ReadAll(resp.Body) if err != nil { return } doc := string(content) fmt.Printf("len(doc) = %v\n", len(doc)) for { tagIndex := strings.Index(doc, "<a href=\"/Search/Detail") if tagIndex == -1 { break } nameBegIndex := tagIndex + strings.Index(doc[tagIndex:], ">") + 1 nameEndIndex := nameBegIndex + strings.Index(doc[nameBegIndex:], "<") name := html.UnescapeString(doc[nameBegIndex:nameEndIndex]) names = append(names, name) doc = doc[nameEndIndex:] } return } func searchEntity(name string) (res SearchResults, err error) { reader, _, err := client.CallMwApi(gowd.SearchEntities(name, "zh")) blob, _ := ioutil.ReadAll(reader) err = json.Unmarshal(blob, &res) return } ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully