Shu Higashi
    • 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
    # 政治家データをウィキデータに入れる方法 ## 1 どんなデータを入れるか ### 1.1 登録するデータの候補 [政治家](https://www.wikidata.org/wiki/Q82955)という項目の「適用プロパティ候補」に、以下のように候補となるプロパティ(≒データ項目)が記載されています。 ![政治家のプロパティ](https://i.gyazo.com/10cfa32ab2a634b20c70a0bcbc5360b6.png) かなり数がありますが、以下のようなものを優先して入れて行くと良いでしょう。 - 生年月日 - 性別 - 読み仮名 - 所属政党 - 出身校 - 職業 - 公職 - 公式ウェブサイト - 公式ブログ - 詳細情報URL - twitterアカウント - フェイスブックID ### 1.2 配慮事項 公人である政治家といえどもウィキペディア[「存命中の伝記」](https://ja.wikipedia.org/wiki/Wikipedia:%E5%AD%98%E5%91%BD%E4%BA%BA%E7%89%A9%E3%81%AE%E4%BC%9D%E8%A8%98)に記載されているような、存命中の個人に対する配慮は必要です。例えばウィキデータには「子」というプロパティがあり、その政治家の子供の名前を登録することができますが、実際に登録する範囲はいわゆる「公人」的な立場の「子」に留めるべきです。 例えば[石原慎太郎](https://www.wikidata.org/wiki/Q38849)氏の「子」は公人と思われるので名前を明記してもおそらく問題ありませんが、千葉市長[熊谷俊人](https://www.wikidata.org/wiki/Q11568706)氏の「子」は公人ではないので、「子」を「不明な値」として表現するか、せいぜい「実子の数」というデータ(プロパティと値のペア)で子供の数を表現するに留めるべきです。 ## 2 どこでデータを探すか ### 2.1 利用の可否に関する考え方 ウィキデータに入れるデータにはCC0という著作権を放棄するライセンス(正確には各国の法で許される範囲での最大限のパブリック・ドメインへの献呈宣言)が自動的に適用されます。従って、転記元のデータはパブリッック・ドメインに置いても問題の無いものである必要があります。 このため写真や文章などの著作物をCC0にするには著作権者に了解を得る必要がありますが、上記にあるような「所属政党」などの事実情報は一般的に著作権の対象外とされていますので、ウェブサイトや書籍などから転記することについては誰かに了解を得る必要は、基本的にありません。大量データのインポートなど、やり方によっては著作権以外の権利を侵害する場合がありますが、手作業での事実情報のコピーはまず問題ありません。 ### 2.2 具体的なデータ入手先の例 政党の公式サイト、議員の公式サイト、官公庁のサイトや刊行物などから入手できます。 また[政治ナビより許諾いただいたデータ](https://docs.google.com/spreadsheets/d/1T6BhIk_TU9KAOmBou8buvMkj_yK4c72jcJMGMOFUAg0/edit#gid=0)も利用可能です。 ## 3 どうやってデータを入れるか ### 3.1 事前準備 [ウィキデータ](https://www.wikidata.org/wiki/Wikidata:%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8)で[アカウントを作成](https://www.wikidata.org/w/index.php?title=Special:CreateAccount&returnto=Wikidata%3A%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8)してからログインしてください。ウィキペディアのアカウントがあれば新たに作成せずとも同じものが使えます。 ウィキデータは他言語対応しているので、自分が利用する言語を、個人ページに[バベル](https://ja.wikipedia.org/wiki/Wikipedia:%E3%83%90%E3%83%99%E3%83%AB)というテンプレートで登録しておくと言語切替が便利です。 アカウントを作ってログインすると、画面上部に自分のアカウント名が表示されるので ![](https://i.gyazo.com/50ddc09e696dd103c067e770cdd5fb53.png) クリック(上記画面例では「Higa4」をクリック) ![](https://i.gyazo.com/2108d0fee83ef2701b2973b8bf0e91dc.png) 右側にあるのがバベルのテンプレートから表示された内容で、日本語が母語で、英語がレベル2(中程度)ということを表しています。画面上段の「編集」タブで編集モードにすると、この個人ページを編集できます。下記に記述されている「{{#babel:ja|en-2}}」の部分を真似てコピペして、画面下で「保存」するとバベルテンプレートが登録され、以後、初期値として日本語が、2番めの候補に英語が選ばれるようになります。 ![](https://i.gyazo.com/dd6954e85c95981bedc22b9210c3ace9.png) ウィキデータで[別表](https://docs.google.com/spreadsheets/d/182l2CexnCqZ0GPSg9sp2XMMfvUC4muuvYFdJp2Q-vkI/edit#gid=0)の先頭にある「稲津久」を検索してみましょう。右上の検索窓で入力します。 ![検索窓](https://i.gyazo.com/eae08e162593a64f89c51003e910ca19.png) 入力したキーワードを含む項目が検索窓の下に候補が現れるので(ありましたね)選択します。 ![全体](https://i.gyazo.com/3915308b329158b84f45aef4de509515.png) 既に基本的なデータは入っていますので、足りないものを補足入力することにしましょう。 手始めに、プロパティではありませんが、この項目が何なのかを表す「説明」が空欄なのでこれを入れてみます。「説明」欄にはできるだけ変更が無いような短い説明をサブタイトル的に記述します。例えば「市長」と書くと任期が切れた時に書き換えなければならないので、より抽象的な「政治家」といった表現がベターです。 項目の右上「編集」ボタンをクリック ![](https://i.gyazo.com/b297e48c50f1795a2d9378e2ffd1c1a8.png) 説明欄が入力可能な状態となるので、日本語で「日本の政治家」、英語で「Japanese politician」と入れてみましょう。(まずは日本語だけでもOKです) ![](https://i.gyazo.com/e1429b031f03b3a681e0c5cc940c1f1a.png) 「保存」をクリックして、できました。 ![](https://i.gyazo.com/db785c0901d2ad94e1b6b4e91d98520e.png) ### 3.2 入力元になるデータが得られるウェブサイトを検索して[項目](https://www.wikidata.org/wiki/Help:Items/ja)を更新 [別表](https://docs.google.com/spreadsheets/d/182l2CexnCqZ0GPSg9sp2XMMfvUC4muuvYFdJp2Q-vkI/edit#gid=0)の先頭にある「稲津久」を検索してみると以下のようなサイトが見つかります。 1. [衆議院議員 いなつ久](http://www.inatsu.com/) 2. [稲津久 - Wikipedia](https://ja.wikipedia.org/wiki/%E7%A8%B2%E6%B4%A5%E4%B9%85) 3. [稲津 久 | プロフィール | 公明党](https://www.komei.or.jp/member/detail/01021030) 4. [いなつ久 (@InatsuHisashi) | Twitter](https://twitter.com/inatsuhisashi) 5. [稲津久君 - 衆議院](http://www.shugiin.go.jp/internet/itdb_giinprof.nsf/html/profile/056.html) 6. [稲津 久 - Home | Facebook](https://www.facebook.com/inatsu.komei/) 情報が比較的豊富にあります。情報が全て正しければどれを選んでもあまり問題ないのですが、インターネット上の情報には割と誤りが混入しやすいので、できるだけオフィシャルな感じの情報を優先的に使用します。この中では5番目の衆議院のサイトがいちばんオフィシャルな感じなのでまずこれを見てみます。(スクリーンショット割愛) いちばん信頼できそうだけど情報が少ないですね。それでも読み仮名が「いなつ ひさし」であることは分かりましたので、これを入れてみましょう。 #### 3.2.1 「読み仮名」の追加 ![追加](https://i.gyazo.com/f4d9d31003e59b5e99aa60b92ce72fe6.png) [文](https://www.wikidata.org/wiki/Help:Statements/ja)(プロパティと値のペア)のいちばん下、識別子の直前に「追加」ボタンがあるのでこれをクリックします。 ![文追加](https://i.gyazo.com/14501c44424aee521ddf69ee2749345b.png) 文追加ができる状態になりました。左側にプロパティ(ここでは読み仮名)、右側にその値(ここでは「いなつ ひさし」)を入力します。なお、読み仮名の姓と名の間には半角スペースを入れます。 ![文追加](https://i.gyazo.com/368d16bfd6fda819da414a53c5f3ac61.png) 入力が終わったら値の右側の「保存」をクリック。 続けて[情報源](https://www.wikidata.org/wiki/Help:Sources/ja)を入力します。 ![情報源](https://i.gyazo.com/3643bafc09e115ee1fa599c023d9df15.png) 文「読み仮名」の右側にある「編集」ボタンをクリック。 ![](https://i.gyazo.com/16058d0dcd293fead2bb84e4253e257e.png) さらに右側の「情報源を追加」をクリック ![](https://i.gyazo.com/f39c3c48e6d6b984d80483e5a001263b.png) プロパティ欄に「出典URL」、値欄に上記衆議院サイトの該当ページのURLを入力 ![](https://i.gyazo.com/6ccd4580f423eb847f6861205d5e4987.png) さらに右側の「追加」ボタンをクリックして「閲覧日」と「本日の日付」を入力 ![](https://i.gyazo.com/ffd7cf181df0c18b7ed107524a2161ee.png) 右上の「保存」をクリック ![](https://i.gyazo.com/a58f32a8adbe0bcb4dbe474c3c3b1ed7.png) これで読み仮名が入力できました。 #### 3.2.2 「公式ウェブサイト」「フェイスブックID」の追加 次に政党のウェブサイトの[議員プロフィールページ](https://www.komei.or.jp/member/detail/01021030)を見てみましょう。ここから以下のようなプロパティと値が入手できます。 - 公式ウェブサイト:http://www.inatsu.com/ - フェイスブックID:inatsu.komei 上記「読み仮名」と同様に入力します。 ![](https://i.gyazo.com/d6dca145e5c3e58b2a61e573e117fbba.png) ![](https://i.gyazo.com/0be27bb2c5fba9ee507a07457c9650e6.png) 注意点として、公式ウェブサイトのURLや情報源として利用した出典URLは、その内容が書き換えられることはよくあるため、[インターネット・アーカイブ](https://archive.org/web/)などでその時点のアーカイブを取っておくとベターです。 画面右下「Save Page Now」欄に対象URLを入力して「SAVE PAGE」 ![](https://i.gyazo.com/b5dbf90aeea7ca1206b0938ac847a42c.png) しばらくしてアーカイブが完了するとブラウザのURL欄よりアーカイブURLが取得できるので、 ![](https://i.gyazo.com/c02a26355e3c10c650305155721efb54.png) その値を「公式ウェブサイト」プロパティを編集モードで開き、「修飾子を追加」をクリックして「アーカイブURL」に対するURL値として登録し「保存」します。 ![](https://i.gyazo.com/bd6647b732dab34f8b78b67674a374c1.png) ![](https://i.gyazo.com/37b4fcef6707378610f544683663fde7.png) ![](https://i.gyazo.com/014a975dfc2e8cc27a1a2cf923bc1cad.png) ### 3.3 項目の新規作成 [別表](https://docs.google.com/spreadsheets/d/182l2CexnCqZ0GPSg9sp2XMMfvUC4muuvYFdJp2Q-vkI/edit#gid=0)のA列「wikidata」が空欄の行は、その項目がまだウィキデータに存在していないことを示しています。3行目「女鹿武」の項目を新規に作成してみます。 まず検索窓で同名の項目が無いことを確認します。 ![](https://i.gyazo.com/b84579e10026c4a57f5e19a2f54a715a.png) ウィキペディアに記事がある場合はウィキデータの項目もある場合が多いので、念の為ウィキペディアも検索してみます。 ![](https://i.gyazo.com/a3ca25f745151d11e9c49f3767ee3d6e.png) ウィキペディアにも無いようですね。 ウィキデータの画面に戻り、画面左パネル「新規作成」をクリック ![](https://i.gyazo.com/9d6bc6bd1e8954c1db84c3d5618f021d.png) 新規作成画面が表示されます。 ![](https://i.gyazo.com/4bf7cb4573d192ea56407348b79ed802.png) ラベル欄に「女鹿武」、説明欄に「日本の政治家」と入力します。別名は現時点では不明なのでそのまま。 ![](https://i.gyazo.com/d4ba8ee1e8136b0ae1c2a31c2ca3a1d1.png) 入力したら画面下の「作成」ボタンをクリック ![](https://i.gyazo.com/05e61d9e61d474af2de7f0d755572cad.png) これで「ラベル」と「説明」だけの最低限の「項目」ができました。 次に、この項目はいったい何なのかということを「分類」プロパティと値のペアで示します。政治家の基本的な分類は「ヒト」です。 ![](https://i.gyazo.com/f6d5d6306b4506d268ac0a1efa213f71.png) 政治家がヒトであることは自明すぎて情報源がみつけにくいので情報源は空欄で構いません。 ![](https://i.gyazo.com/28a06e3ccb94cb2c0e0c5af59e6ca312.png) 以下、前段と同様にデータを探しながら、適宜プロパティと値のペアを入力して、この項目を充実させて行きます。 ## 4 補足情報 ### 4.1 データ登録済みのサンプル インターネット上で入手できるデータをおおよそ登録した例です。政党ごとにかなり濃淡があり、また入力されているプロパティを全て登録する必要はありませんが、入力方法がわからない時の参考にしてください。 - 玄葉光一郎(民進党->?) https://www.wikidata.org/wiki/Q58213 - 稲津久(公明党) https://www.wikidata.org/wiki/Q11596723 - 女鹿武(共産党) https://www.wikidata.org/wiki/Q41583708

    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