Skip to content

Introduction

“Politigraph” is a Thai politics database developed by WeVis, a Thai civic-technology team. The code is open-source and accessible via GitHub

Politigraph store the data in the “Graph” structure which consist of

  1. “Node” representing each entity in the database (has circle symbol). Each node have they own data called “property” such as a node representing person might have properties of first name, last name, birthdate, etc.

  2. “Relationship” or sometime called edge (has arrow symbol) representing a relationship between two nodes.

Graph data structure

Due to the large number of nodes and relationships in Politigraph, we need to extract data for each point of interest. We call the code writing process to select nodes and relationships of interest “query” and the returned data “response”, which is in JSON format: machine-readable and convenient for further use. However, to make it easier to visualize, we will visualize the response in this documentation in the form of a graph.

For example, if we want to know “Which vote event did Anutin Charnvirakul were agreeing with?” We can query a node representing him and the relationships that lead to the votes he were agreeing and the vote event.

Anutin CharnvirakulAgreeร่างพระราชบัญญัติควบ...Agreeร่างพระราชบัญญัติยกเ...Agreeร่างพระราชบัญญัติการ...Agreeร่างพระราชบัญญัติบริ...Agreeร่าง พ.ร.บ. งบประมาณ...Agreeร่าง พ.ร.บ. หอการค้า...Agreeร่าง พ.ร.บ. ยาเสพติด...Agreeร่างพระราชบัญญัติอาส...Agreeร่าง พ.ร.บ. งบประมาณ...Agreeร่าง พ.ร.บ. งบประมาณ...Agreeร่างพระราชบัญญัติงบป...Agreeร่างพระราชบัญญัติการ...Agreeร่างพระราชบัญญัติกอง...Agreeร่างพระราชบัญญัติกัญ...Agreeร่างพระราชบัญญัติงบป...Agreeร่าง พ.ร.บ. งบประมาณ...Agreeร่าง พ.ร.บ. การปรับเ...Agreeร่างพระราชบัญญัติองค...Agreeร่างพระราชบัญญัติสร้...Agreeร่างพระราชบัญญัติสร้...Agreeร่างพระราชบัญญัติสร้...Agreeร่าง พ.ร.บ. งบประมาณ...
VoteEvent
Person
Vote
Person

บุคคลที่เกี่ยวข้องทางการเมือง เช่น สมาชิกสภา สมาชิกพรรคการเมือง ฯลฯ

  • id: 4cc8dfaf-e5ce-41f4-94d3-53bf858308b4
  • name: อนุทิน ชาญวีรกูล
  • name_en: Anutin Charnvirakul
  • image: https://politigraph.wevis.info/assets/people/อนุทิน-ชาญวีรกูล.webp
  • votes:
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree
    • Agree

*Only showing nodes, properties, and relationships from the query see full schema