Skip to content

Instantly share code, notes, and snippets.

@alexrutherford
Last active September 22, 2015 00:29
Show Gist options
  • Select an option

  • Save alexrutherford/d7fa42634d963fa01355 to your computer and use it in GitHub Desktop.

Select an option

Save alexrutherford/d7fa42634d963fa01355 to your computer and use it in GitHub Desktop.
Visualisation of hierarchical constitution ontology
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
cursor: pointer;
}
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 1.5px;
}
.node text {
font: 10px sans-serif;
}
.link {
fill: none;
stroke: #ccc;
stroke-width: 1.5px;
}
</style>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script>
var margin = {top: 20, right: 120, bottom: 20, left: 120},
width = 960 - margin.right - margin.left,
height = 800 - margin.top - margin.bottom;
var i = 0,
duration = 750,
root;
var tree = d3.layout.tree()
.size([height, width]);
var diagonal = d3.svg.diagonal()
.projection(function(d) { return [d.y, d.x]; });
var svg = d3.select("body").append("svg")
.attr("width", width + margin.right + margin.left)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
d3.json("tree_ontology.json", function(error, flare) {
if (error) throw error;
root = flare;
root.x0 = height / 2;
root.y0 = 0;
function collapse(d) {
if (d.children) {
d._children = d.children;
d._children.forEach(collapse);
d.children = null;
}
}
root.children.forEach(collapse);
update(root);
});
d3.select(self.frameElement).style("height", "800px");
function update(source) {
// Compute the new tree layout.
var nodes = tree.nodes(root).reverse(),
links = tree.links(nodes);
// Normalize for fixed-depth.
nodes.forEach(function(d) { d.y = d.depth * 180; });
// Update the nodes…
var node = svg.selectAll("g.node")
.data(nodes, function(d) { return d.id || (d.id = ++i); });
// Enter any new nodes at the parent's previous position.
var nodeEnter = node.enter().append("g")
.attr("class", "node")
.attr("transform", function(d) { return "translate(" + source.y0 + "," + source.x0 + ")"; })
.on("click", click);
nodeEnter.append("circle")
.attr("r", 1e-6)
.style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; });
nodeEnter.append("text")
.attr("x", function(d) { return d.children || d._children ? -10 : 10; })
.attr("dy", ".35em")
.attr("text-anchor", function(d) { return d.children || d._children ? "end" : "start"; })
.text(function(d) { return d.name; })
.style("fill-opacity", 1e-6);
// Transition nodes to their new position.
var nodeUpdate = node.transition()
.duration(duration)
.attr("transform", function(d) { return "translate(" + d.y + "," + d.x + ")"; });
nodeUpdate.select("circle")
.attr("r", 4.5)
.style("fill", function(d) { return d._children ? "lightsteelblue" : "#fff"; });
nodeUpdate.select("text")
.style("fill-opacity", 1);
// Transition exiting nodes to the parent's new position.
var nodeExit = node.exit().transition()
.duration(duration)
.attr("transform", function(d) { return "translate(" + source.y + "," + source.x + ")"; })
.remove();
nodeExit.select("circle")
.attr("r", 1e-6);
nodeExit.select("text")
.style("fill-opacity", 1e-6);
// Update the links…
var link = svg.selectAll("path.link")
.data(links, function(d) { return d.target.id; });
// Enter any new links at the parent's previous position.
link.enter().insert("path", "g")
.attr("class", "link")
.attr("d", function(d) {
var o = {x: source.x0, y: source.y0};
return diagonal({source: o, target: o});
});
// Transition links to their new position.
link.transition()
.duration(duration)
.attr("d", diagonal);
// Transition exiting nodes to the parent's new position.
link.exit().transition()
.duration(duration)
.attr("d", function(d) {
var o = {x: source.x, y: source.y};
return diagonal({source: o, target: o});
})
.remove();
// Stash the old positions for transition.
nodes.forEach(function(d) {
d.x0 = d.x;
d.y0 = d.y;
});
}
// Toggle children on click.
function click(d) {
if (d.children) {
d._children = d.children;
d.children = null;
} else {
d.children = d._children;
d._children = null;
}
update(d);
}
</script>
{"name": "constitution", "children": [{"name": "Amendment", "children": [{"name": "Constitution amendment procedure", "size": 10}, {"name": "Unamendable provisions", "size": 10}]}, {"name": "Legislature", "children": [{"name": "First Chamber", "children": [{"name": "Eligibility for first chamber", "size": 10}, {"name": "First chamber representation quotas", "size": 10}, {"name": "First chamber reserved policy areas", "size": 10}, {"name": "First chamber selection", "size": 10}, {"name": "Leader of first chamber", "size": 10}, {"name": "Minimum age for first chamber", "size": 10}, {"name": "Size of first chamber", "size": 10}, {"name": "Term length for first chamber", "size": 10}, {"name": "Term limits for first chamber", "size": 10}]}, {"name": "Legislation", "children": [{"name": "Approval of general legislation", "size": 10}, {"name": "Division of labor between chambers", "size": 10}, {"name": "Initiation of general legislation", "size": 10}, {"name": "Supermajority required for legislation", "size": 10}, {"name": "Veto override procedure", "size": 10}]}, {"name": "Legislative Independence and Power", "children": [{"name": "Approval of general legislation", "size": 10}, {"name": "Dismissal of the legislature", "size": 10}, {"name": "Immunity of legislators", "size": 10}, {"name": "Removal of individual legislators", "size": 10}, {"name": "Replacement of legislators", "size": 10}, {"name": "Veto override procedure", "size": 10}]}, {"name": "Legislative Rules and Restrictions", "children": [{"name": "Attendance by legislators", "size": 10}, {"name": "Compensation of legislators", "size": 10}, {"name": "Earnings disclosure requirement", "size": 10}, {"name": "Extraordinary legislative sessions", "size": 10}, {"name": "Joint meetings of legislative chambers", "size": 10}, {"name": "Legislative oversight of the executive", "size": 10}, {"name": "Length of legislative sessions", "size": 10}, {"name": "Outside professions of legislators", "size": 10}, {"name": "Public or private sessions", "size": 10}, {"name": "Publication of deliberations", "size": 10}, {"name": "Quorum for legislative sessions", "size": 10}, {"name": "Secrecy of legislative votes", "size": 10}]}, {"name": "Removal and Replacement", "children": [{"name": "Dismissal of the legislature", "size": 10}, {"name": "Immunity of legislators", "size": 10}, {"name": "Removal of individual legislators", "size": 10}, {"name": "Replacement of legislators", "size": 10}]}, {"name": "Second Chamber", "children": [{"name": "Eligibility for second chamber", "size": 10}, {"name": "Leader of second chamber", "size": 10}, {"name": "Minimum age for second chamber", "size": 10}, {"name": "Second chamber representation quotas", "size": 10}, {"name": "Second chamber reserved policy areas", "size": 10}, {"name": "Second chamber selection", "size": 10}, {"name": "Size of second chamber", "size": 10}, {"name": "Term length of second chamber", "size": 10}, {"name": "Term limits of second chamber", "size": 10}]}, {"name": "Special Legislation", "children": [{"name": "Balanced budget", "size": 10}, {"name": "Budget bills", "size": 10}, {"name": "Economic plans", "size": 10}, {"name": "Finance bills", "size": 10}, {"name": "Organic laws", "size": 10}, {"name": "Spending bills", "size": 10}, {"name": "Tax bills", "size": 10}]}, {"name": "Structure of the Legislature", "children": [{"name": "Legislative committees", "size": 10}, {"name": "Standing committees", "size": 10}, {"name": "Structure of legislative chamber(s)", "size": 10}]}]}, {"name": "Culture and Identity", "children": [{"name": "Citizenship", "children": [{"name": "Citizenship of indigenous groups", "size": 10}, {"name": "Conditions for revoking citizenship", "size": 10}, {"name": "Equality regardless of nationality", "size": 10}, {"name": "Equality regardless of origin", "size": 10}, {"name": "Power to deport citizens", "size": 10}, {"name": "Requirements for birthright citizenship", "size": 10}, {"name": "Requirements for naturalization", "size": 10}, {"name": "Restrictions on entry or exit", "size": 10}, {"name": "Right to renounce citizenship", "size": 10}]}, {"name": "Indigenous Groups", "children": [{"name": "Citizenship of indigenous groups", "size": 10}, {"name": "Indigenous right not to pay taxes", "size": 10}, {"name": "Indigenous right to illegal activities", "size": 10}, {"name": "Indigenous right to political parties", "size": 10}, {"name": "Indigenous right to representation", "size": 10}, {"name": "Indigenous right to self governance", "size": 10}, {"name": "Indigenous right to vote", "size": 10}]}, {"name": "Language", "children": [{"name": "Equality regardless of language", "size": 10}, {"name": "Official or national languages", "size": 10}, {"name": "Protection of language use", "size": 10}, {"name": "Trial in native language of accused", "size": 10}]}, {"name": "Race and Ethnicity", "children": [{"name": "Equality regardless of race", "size": 10}, {"name": "Equality regardless of tribe or clan", "size": 10}, {"name": "Integration of ethnic communities", "size": 10}, {"name": "Provisions for wealth redistribution", "size": 10}]}, {"name": "Religion", "children": [{"name": "Equality regardless of creed or belief", "size": 10}, {"name": "Equality regardless of religion", "size": 10}, {"name": "Establishment of religious courts", "size": 10}, {"name": "Freedom of religion", "size": 10}, {"name": "God or other deities", "size": 10}, {"name": "Official religion", "size": 10}, {"name": "Separation of church and state", "size": 10}, {"name": "Status of religious law", "size": 10}, {"name": "Tax status of religious organizations", "size": 10}]}]}, {"name": "Executive", "children": [{"name": "Cabinet", "children": [{"name": "Cabinet removal", "size": 10}, {"name": "Cabinet selection", "size": 10}, {"name": "Eligibility for cabinet", "size": 10}, {"name": "Establishment of cabinet/ministers", "size": 10}, {"name": "Powers of cabinet", "size": 10}]}, {"name": "Executive Independence and Power", "children": [{"name": "Cabinet removal", "size": 10}, {"name": "Claim of executive independence", "size": 10}, {"name": "Designation of commander in chief", "size": 10}, {"name": "Eligibility for cabinet", "size": 10}, {"name": "Head of government decree power", "size": 10}, {"name": "Head of government immunity", "size": 10}, {"name": "Head of government powers", "size": 10}, {"name": "Head of government removal", "size": 10}, {"name": "Head of state decree power", "size": 10}, {"name": "Head of state powers", "size": 10}, {"name": "Head of state removal", "size": 10}, {"name": "Legislative oversight of the executive", "size": 10}, {"name": "Limits on removing head of government", "size": 10}, {"name": "Power to pardon", "size": 10}, {"name": "Powers of cabinet", "size": 10}]}, {"name": "Head of Government", "children": [{"name": "Eligibility for head of government", "size": 10}, {"name": "Head of government decree power", "size": 10}, {"name": "Head of government immunity", "size": 10}, {"name": "Head of government powers", "size": 10}, {"name": "Head of government removal", "size": 10}, {"name": "Head of government replacement", "size": 10}, {"name": "Head of government selection", "size": 10}, {"name": "Head of government term length", "size": 10}, {"name": "Head of government term limits", "size": 10}, {"name": "Head of government's role in the legislature", "size": 10}, {"name": "Limits on removing head of government", "size": 10}, {"name": "Minimum age of head of government", "size": 10}]}, {"name": "Head of State", "children": [{"name": "Advisory bodies to the head of state", "size": 10}, {"name": "Eligibility for head of state", "size": 10}, {"name": "Head of state decree power", "size": 10}, {"name": "Head of state immunity", "size": 10}, {"name": "Head of state powers", "size": 10}, {"name": "Head of state removal", "size": 10}, {"name": "Head of state replacement", "size": 10}, {"name": "Head of state selection", "size": 10}, {"name": "Head of state term length", "size": 10}, {"name": "Head of state term limits", "size": 10}, {"name": "Minimum age of head of state", "size": 10}]}, {"name": "Military", "children": [{"name": "Designation of commander in chief", "size": 10}, {"name": "Duty to serve in the military", "size": 10}, {"name": "Emergency provisions", "size": 10}, {"name": "Establishment of military courts", "size": 10}, {"name": "Power to declare/approve war", "size": 10}, {"name": "Restrictions on minister of defense", "size": 10}, {"name": "Restrictions on the armed forces", "size": 10}, {"name": "Selection of active-duty commanders", "size": 10}, {"name": "Terrorism", "size": 10}]}, {"name": "Structure of the Executive", "children": [{"name": "Attorney general", "size": 10}, {"name": "Deputy executive", "size": 10}, {"name": "Establishment of cabinet/ministers", "size": 10}, {"name": "Name/structure of executive(s)", "size": 10}]}]}, {"name": "Judiciary", "children": [{"name": "Administrative Courts", "children": [{"name": "Administrative court selection", "size": 10}, {"name": "Administrative court term length", "size": 10}, {"name": "Administrative court term limits", "size": 10}, {"name": "Eligibility for administrative judges", "size": 10}, {"name": "Establishment of administrative courts", "size": 10}, {"name": "Min age of administrative judges", "size": 10}, {"name": "Ultra-vires administrative actions", "size": 10}]}, {"name": "Constitutional Court", "children": [{"name": "Constitutional court opinions", "size": 10}, {"name": "Constitutional court powers", "size": 10}, {"name": "Constitutional court removal", "size": 10}, {"name": "Constitutional court selection", "size": 10}, {"name": "Constitutional court term length", "size": 10}, {"name": "Constitutional court term limits", "size": 10}, {"name": "Eligibility for const court judges", "size": 10}, {"name": "Establishment of constitutional court", "size": 10}, {"name": "Min age of const court judges", "size": 10}]}, {"name": "Electoral Courts", "children": [{"name": "Electoral court powers", "size": 10}, {"name": "Electoral court removal", "size": 10}, {"name": "Electoral court selection", "size": 10}, {"name": "Electoral court term length", "size": 10}, {"name": "Electoral court term limits", "size": 10}, {"name": "Eligibility for electoral court judges", "size": 10}, {"name": "Minimum age of electoral court judges", "size": 10}]}, {"name": "Judicial Autonomy and Power", "children": [{"name": "Constitutional court powers", "size": 10}, {"name": "Constitutional court removal", "size": 10}, {"name": "Constitutional interpretation", "size": 10}, {"name": "Constitutionality of legislation", "size": 10}, {"name": "Judicial independence", "size": 10}, {"name": "Judicial precedence", "size": 10}, {"name": "Mandatory retirement age for judges", "size": 10}, {"name": "Protection of judges' salaries", "size": 10}, {"name": "Supreme court powers", "size": 10}, {"name": "Supreme/ordinary court judge removal", "size": 10}]}, {"name": "Judicial Review", "children": [{"name": "Constitutional interpretation", "size": 10}, {"name": "Constitutionality of legislation", "size": 10}, {"name": "Right to amparo", "size": 10}, {"name": "Ultra-vires administrative actions", "size": 10}]}, {"name": "Ordinary Courts", "children": [{"name": "Eligibility for ordinary court judges", "size": 10}, {"name": "Minimum age of ordinary court judges", "size": 10}, {"name": "Ordinary court selection", "size": 10}, {"name": "Ordinary court term length", "size": 10}, {"name": "Ordinary court term limits", "size": 10}]}, {"name": "Structure of the Judiciary", "children": [{"name": "Courts for judging public officials", "size": 10}, {"name": "Establishment of administrative courts", "size": 10}, {"name": "Establishment of constitutional court", "size": 10}, {"name": "Establishment of courts of amparo", "size": 10}, {"name": "Establishment of judicial council", "size": 10}, {"name": "Establishment of labor courts", "size": 10}, {"name": "Establishment of military courts", "size": 10}, {"name": "Establishment of religious courts", "size": 10}, {"name": "Establishment of tax courts", "size": 10}, {"name": "Structure of the courts", "size": 10}]}, {"name": "Supreme Court", "children": [{"name": "Eligibility for supreme court judges", "size": 10}, {"name": "Minimum age of supreme court judges", "size": 10}, {"name": "Supreme court opinions", "size": 10}, {"name": "Supreme court powers", "size": 10}, {"name": "Supreme court selection", "size": 10}, {"name": "Supreme court term length", "size": 10}, {"name": "Supreme court term limits", "size": 10}]}]}, {"name": "Elections", "children": [{"name": "Electoral Oversight", "children": [{"name": "Electoral commission", "size": 10}, {"name": "Electoral court powers", "size": 10}, {"name": "Electoral court removal", "size": 10}, {"name": "Electoral court selection", "size": 10}, {"name": "Electoral court term length", "size": 10}, {"name": "Electoral court term limits", "size": 10}, {"name": "Eligibility for electoral court judges", "size": 10}, {"name": "Minimum age of electoral court judges", "size": 10}]}, {"name": "Electoral Rules and Regulations", "children": [{"name": "Campaign financing", "size": 10}, {"name": "Census", "size": 10}, {"name": "Electoral districts", "size": 10}, {"name": "Scheduling of elections", "size": 10}, {"name": "Secret ballot", "size": 10}]}, {"name": "Political Parties", "children": [{"name": "Duty to join a political party", "size": 10}, {"name": "Equality regardless of political party", "size": 10}, {"name": "Indigenous right to political parties", "size": 10}, {"name": "Preferred political parties", "size": 10}, {"name": "Prohibited political parties", "size": 10}, {"name": "Regulation of political parties", "size": 10}, {"name": "Restrictions on political parties", "size": 10}, {"name": "Right to form political parties", "size": 10}]}, {"name": "Referenda and Initiatives", "children": [{"name": "Legislative initiatives by citizens", "size": 10}, {"name": "Referenda", "size": 10}]}, {"name": "Suffrage and Turnout", "children": [{"name": "Claim of universal suffrage", "size": 10}, {"name": "Compulsory voting", "size": 10}, {"name": "Indigenous right to vote", "size": 10}, {"name": "Restrictions on voting", "size": 10}]}]}, {"name": "Principles and Symbols", "children": [{"name": "Basic Principles", "children": [{"name": "Civil service recruitment", "size": 10}, {"name": "Colonies", "size": 10}, {"name": "Crimes of the previous regime", "size": 10}, {"name": "Motives for writing constitution", "size": 10}, {"name": "Oaths to abide by constitution", "size": 10}, {"name": "Ownership of natural resources", "size": 10}, {"name": "Political theorists/figures", "size": 10}, {"name": "Reference to art", "size": 10}, {"name": "Reference to country's history", "size": 10}, {"name": "Reference to fraternity/solidarity", "size": 10}, {"name": "Reference to science", "size": 10}, {"name": "Regional group(s)", "size": 10}, {"name": "Source of constitutional authority", "size": 10}, {"name": "Type of government envisioned", "size": 10}]}, {"name": "State Definition and Symbols", "children": [{"name": "National anthem", "size": 10}, {"name": "National capital", "size": 10}, {"name": "National flag", "size": 10}, {"name": "National motto", "size": 10}]}]}, {"name": "Federalism", "children": [{"name": "Lawmaking Power", "children": [{"name": "Federal review of subnational legislation", "size": 10}, {"name": "National vs subnational laws", "size": 10}]}, {"name": "Secession and Accession", "children": [{"name": "Accession of territory", "size": 10}, {"name": "Secession of territory", "size": 10}]}, {"name": "Structure of the State", "children": [{"name": "Municipal government", "size": 10}, {"name": "Subsidiary unit government", "size": 10}]}]}, {"name": "International Law", "children": [{"name": "Explicit References to Int. Law", "children": [{"name": "Customary international law", "size": 10}, {"name": "International human rights treaties", "size": 10}, {"name": "International law", "size": 10}, {"name": "International organizations", "size": 10}]}, {"name": "Foreign Policy", "children": [{"name": "Foreign affairs representative", "size": 10}, {"name": "Power to declare/approve war", "size": 10}]}, {"name": "Treaties", "children": [{"name": "International human rights treaties", "size": 10}, {"name": "Legal status of treaties", "size": 10}, {"name": "Treaty ratification", "size": 10}]}]}, {"name": "Regulation and Oversight", "children": [{"name": "Elections", "children": [{"name": "Electoral commission", "size": 10}, {"name": "Electoral court powers", "size": 10}, {"name": "Electoral court removal", "size": 10}, {"name": "Electoral court selection", "size": 10}, {"name": "Electoral court term length", "size": 10}, {"name": "Electoral court term limits", "size": 10}, {"name": "Eligibility for electoral court judges", "size": 10}, {"name": "Minimum age of electoral court judges", "size": 10}, {"name": "Regulation of political parties", "size": 10}]}, {"name": "Independent Agencies and Commissions", "children": [{"name": "Central bank", "size": 10}, {"name": "Counter corruption commission", "size": 10}, {"name": "Electoral commission", "size": 10}, {"name": "Establishment of judicial council", "size": 10}, {"name": "Human rights commission", "size": 10}, {"name": "Media commission", "size": 10}, {"name": "Ombudsman", "size": 10}, {"name": "Truth and reconciliation commission", "size": 10}]}, {"name": "Media and Communications", "children": [{"name": "Media commission", "size": 10}, {"name": "Radio", "size": 10}, {"name": "State operation of the media", "size": 10}, {"name": "Telecommunications", "size": 10}, {"name": "Television", "size": 10}]}]}, {"name": "Rights and Duties", "children": [{"name": "Citizen Duties", "children": [{"name": "Duty to join a political party", "size": 10}, {"name": "Duty to pay taxes", "size": 10}, {"name": "Duty to serve in the military", "size": 10}, {"name": "Duty to work", "size": 10}]}, {"name": "Civil and Political Rights", "children": [{"name": "Claim of universal suffrage", "size": 10}, {"name": "Freedom of assembly", "size": 10}, {"name": "Freedom of association", "size": 10}, {"name": "Freedom of expression", "size": 10}, {"name": "Freedom of movement", "size": 10}, {"name": "Freedom of opinion/thought/conscience", "size": 10}, {"name": "Freedom of press", "size": 10}, {"name": "Freedom of religion", "size": 10}, {"name": "Human dignity", "size": 10}, {"name": "Provision for civil marriage", "size": 10}, {"name": "Right of petition", "size": 10}, {"name": "Right to academic freedom", "size": 10}, {"name": "Right to bear arms", "size": 10}, {"name": "Right to conscientious objection", "size": 10}, {"name": "Right to development of personality", "size": 10}, {"name": "Right to found a family", "size": 10}, {"name": "Right to information", "size": 10}, {"name": "Right to marry", "size": 10}, {"name": "Right to overthrow government", "size": 10}, {"name": "Right to privacy", "size": 10}, {"name": "Right to protect one's reputation", "size": 10}, {"name": "Right to renounce citizenship", "size": 10}, {"name": "Rights of children guaranteed", "size": 10}, {"name": "Rights of debtors", "size": 10}]}, {"name": "Economic Rights", "children": [{"name": "Protection from expropriation", "size": 10}, {"name": "Provisions for intellectual property", "size": 10}, {"name": "Right to choose occupation", "size": 10}, {"name": "Right to competitive marketplace", "size": 10}, {"name": "Right to establish a business", "size": 10}, {"name": "Right to own property", "size": 10}, {"name": "Right to transfer property", "size": 10}]}, {"name": "Enforcement", "children": [{"name": "Establishment of courts of amparo", "size": 10}, {"name": "Human rights commission", "size": 10}, {"name": "Inalienable rights", "size": 10}, {"name": "Ombudsman", "size": 10}, {"name": "Right to amparo", "size": 10}]}, {"name": "Equality, Gender, and Minority Rights", "children": [{"name": "Citizenship of indigenous groups", "size": 10}, {"name": "Equality for persons with disabilities", "size": 10}, {"name": "Equality regardless of age", "size": 10}, {"name": "Equality regardless of creed or belief", "size": 10}, {"name": "Equality regardless of financial status", "size": 10}, {"name": "Equality regardless of gender", "size": 10}, {"name": "Equality regardless of language", "size": 10}, {"name": "Equality regardless of nationality", "size": 10}, {"name": "Equality regardless of origin", "size": 10}, {"name": "Equality regardless of parentage", "size": 10}, {"name": "Equality regardless of political party", "size": 10}, {"name": "Equality regardless of race", "size": 10}, {"name": "Equality regardless of religion", "size": 10}, {"name": "Equality regardless of sexual orientation", "size": 10}, {"name": "Equality regardless of skin color", "size": 10}, {"name": "Equality regardless of social status", "size": 10}, {"name": "Equality regardless of tribe or clan", "size": 10}, {"name": "General guarantee of equality", "size": 10}, {"name": "Indigenous right not to pay taxes", "size": 10}, {"name": "Indigenous right to illegal activities", "size": 10}, {"name": "Indigenous right to political parties", "size": 10}, {"name": "Indigenous right to representation", "size": 10}, {"name": "Indigenous right to self governance", "size": 10}, {"name": "Indigenous right to vote", "size": 10}, {"name": "Mentions of social class", "size": 10}, {"name": "Protection of stateless persons", "size": 10}, {"name": "Provision for matrimonial equality", "size": 10}, {"name": "Restrictions on rights of groups", "size": 10}, {"name": "Right to culture", "size": 10}, {"name": "Right to self determination", "size": 10}]}, {"name": "General Duties", "children": [{"name": "Binding effect of const rights", "size": 10}, {"name": "Duty to obey the constitution", "size": 10}]}, {"name": "Legal Procedural Rights", "children": [{"name": "Extradition procedure", "size": 10}, {"name": "Guarantee of due process", "size": 10}, {"name": "Jury trials required", "size": 10}, {"name": "Presumption of innocence in trials", "size": 10}, {"name": "Principle of no punishment without law", "size": 10}, {"name": "Prison registry", "size": 10}, {"name": "Privileges for juveniles in criminal process", "size": 10}, {"name": "Prohibition of double jeopardy", "size": 10}, {"name": "Protection from ex post facto laws", "size": 10}, {"name": "Protection from false imprisonment", "size": 10}, {"name": "Protection from self-incrimination", "size": 10}, {"name": "Protection from unjustified restraint", "size": 10}, {"name": "Protection of victim's rights", "size": 10}, {"name": "Regulation of evidence collection", "size": 10}, {"name": "Right to amparo", "size": 10}, {"name": "Right to appeal judicial decisions", "size": 10}, {"name": "Right to counsel", "size": 10}, {"name": "Right to examine evidence/ witnesses", "size": 10}, {"name": "Right to fair trial", "size": 10}, {"name": "Right to pre-trial release", "size": 10}, {"name": "Right to public trial", "size": 10}, {"name": "Right to speedy trial", "size": 10}, {"name": "Trial in native language of accused", "size": 10}]}, {"name": "Physical Integrity Rights", "children": [{"name": "Prohibition of capital punishment", "size": 10}, {"name": "Prohibition of corporal punishment", "size": 10}, {"name": "Prohibition of cruel treatment", "size": 10}, {"name": "Prohibition of slavery", "size": 10}, {"name": "Prohibition of torture", "size": 10}, {"name": "Right to life", "size": 10}]}, {"name": "Social Rights", "children": [{"name": "Access to higher education", "size": 10}, {"name": "Compulsory education", "size": 10}, {"name": "Free education", "size": 10}, {"name": "General guarantee of social security", "size": 10}, {"name": "Limits in the employment of children", "size": 10}, {"name": "Protection of consumers", "size": 10}, {"name": "Protection of environment", "size": 10}, {"name": "Right to enjoy the benefits of science", "size": 10}, {"name": "Right to equal pay for work", "size": 10}, {"name": "Right to health care", "size": 10}, {"name": "Right to join trade unions", "size": 10}, {"name": "Right to reasonable standard of living", "size": 10}, {"name": "Right to rest and leisure", "size": 10}, {"name": "Right to safe work environment", "size": 10}, {"name": "Right to shelter", "size": 10}, {"name": "Right to strike", "size": 10}, {"name": "Right to work", "size": 10}, {"name": "State support for children", "size": 10}, {"name": "State support for the disabled", "size": 10}, {"name": "State support for the elderly", "size": 10}, {"name": "State support for the unemployed", "size": 10}]}]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment