{"id":289,"date":"2009-09-24T15:34:31","date_gmt":"2009-09-24T15:34:31","guid":{"rendered":"https:\/\/www.arg.tech\/?page_id=289"},"modified":"2009-09-24T15:34:31","modified_gmt":"2009-09-24T15:34:31","slug":"argdb-user-guide","status":"publish","type":"page","link":"https:\/\/www.arg.tech\/index.php\/research\/argdb\/argdb-user-guide\/","title":{"rendered":"ArgDB User Guide"},"content":{"rendered":"<p>ArgDB can be used in one of two ways: you can either communicate with a public-facing database created on the server hosted here at the university, or you can deploy ArgDB installation on a server of your own. This guide will take you through both processes.<\/p>\n<h2>Communicating with the UoD server<\/h2>\n<p>We host a public-facing database here at the university, which allows you to store AIF for use in your own applications, or just to contribute to a collaborative database of argumentation.<\/p>\n<p>Communication is via a RESTful API, using the following base URL:<\/p>\n<blockquote><p>http:\/\/argdb.computing.dundee.ac.uk<\/p><\/blockquote>\n<p>The following commands can then be appended to this URL (e.g. http:\/\/argdb.computing.dundee.ac.uk<strong>\/public_db<\/strong>). The return format is stated next to the description of the command<\/p>\n<h3>Database Information (<a href=\"http:\/\/en.wikipedia.org\/wiki\/JSON\">JSON<\/a>)<\/h3>\n<blockquote><p>GET \/public_db<\/p><\/blockquote>\n<h3>Insert Argument (Plain-text ID number)<\/h3>\n<blockquote><p>POST \/public_db<\/p><\/blockquote>\n<h3>Retrieve Argument (Argument Interchange Format)<\/h3>\n<blockquote><p>GET \/public_db\/{argument_id}<\/p><\/blockquote>\n<p>(where {argument_id} is the ID of an argument stored in the database)<\/p>\n<h2>Deploying your own instance<\/h2>\n<p>ArgDB is available for download (coming soon!), meaning you can deploy your own instance.<\/p>\n<p>At present, the software requires both MySQL and Apache CouchDB regardless of your intended deployment size. However, work is underway on a version that provide the option of an internal storage solution, allowing small-scale deployments to take place without requiring external software.<\/p>\n<p>The following guide assumes that you have set up both <a href=\"http:\/\/www.mysql.com\">MySQL<\/a> and <a href=\"http:\/\/couchdb.apache.org\/\">CouchDB<\/a> as per the instructions on the relative websites. It also assumes you have set up a MySQL user with SPECIAL permissions (i.e. permission to CREATE and DROP database schemas).<\/p>\n<h3>Installation<\/h3>\n<p>(Note: at present, we only provide an installation script for Debian-based Linux systems. However, being Java-based, ArgDB can run on most popular operating systems, including Microsoft Windows)<\/p>\n<ol>\n<li>Upload the &#8216;argdb&#8217; folder to a folder on your server<\/li>\n<li>In a terminal window, navigate into this folder<\/li>\n<li>Run the following command:<br \/>\n<blockquote><p>sudo chmod 777 install.sh<\/p><\/blockquote>\n<\/li>\n<li>Run:<br \/>\n<blockquote><p>sudo .\/install.sh<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<p>ArgDB should now be installed. To test, open up a web browser and visit:<\/p>\n<blockquote><p>http:\/\/&lt;your-server-IP&gt;:8182\/<\/p><\/blockquote>\n<p>If the installation has been successful, you will see a page with a link leading to a configuration screen. Click this link.<\/p>\n<h2>Configuration<\/h2>\n<p>On the configuration screen, enter your database connection parameters and ArgDB is ready to use.<\/p>\n<p>The following sections of this guide all require you to be on the page:<\/p>\n<blockquote><p>http:\/\/&lt;your-server-IP&gt;:8182\/_utils<\/p><\/blockquote>\n<h2>Creating a Database<\/h2>\n<p>Databases are created from the main page of ArgDB. You have two parameters: a name and a password.<\/p>\n<p><strong>Name<\/strong> &#8211; this is required, and will be used to identify the database. It cannot contain spaces<\/p>\n<p><strong>Password<\/strong> &#8211; this is optional and used to provide a basic level of authentication for applications that POST to the database<\/p>\n<h2>Deleting a Database<\/h2>\n<p>To delete a database, click &#8220;[Delete]&#8221; next to its name in the database listing.<\/p>\n<h2>Viewing Database Information<\/h2>\n<p>To view information about a database (in JSON format), click its name in the database listing. This includes information about:<\/p>\n<ul>\n<li>The schemes stored in the database<\/li>\n<li>The names of analysts who have contributed to the database<\/li>\n<li>The number of arguments stored in the database<\/li>\n<\/ul>\n<h2>Code Libraries<\/h2>\n<p>Code libraries to allow easy communication with ArgDB are currently under development.<\/p>\n<p>If you have any problems with ArgDB, either communicating with our server or deploying your own instance, please contact <a href=\"http:\/\/www.computing.dundee.ac.uk\/staff\/creed\/index.html\">Chris<\/a>, <a href=\"http:\/\/www.simonwells.org\/\">Simon<\/a> or <a href=\"http:\/\/marksnaith.co.uk\">Mark<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ArgDB can be used in one of two ways: you can either communicate with a public-facing database created on the server hosted here at the university, or you can deploy ArgDB installation on a server of your own. This guide will take you through both processes. Communicating with the UoD server We host a public-facing [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":259,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-289","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/pages\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":6,"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/pages\/289\/revisions"}],"predecessor-version":[{"id":715,"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/pages\/289\/revisions\/715"}],"up":[{"embeddable":true,"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/pages\/259"}],"wp:attachment":[{"href":"https:\/\/www.arg.tech\/index.php\/wp-json\/wp\/v2\/media?parent=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}