{"id":20566157,"url":"https://github.com/aces/data-query-tool","last_synced_at":"2025-10-10T05:08:51.126Z","repository":{"id":71967544,"uuid":"10460549","full_name":"aces/Data-Query-Tool","owner":"aces","description":"LORIS's Data Query Tool, written as a CouchApp","archived":false,"fork":false,"pushed_at":"2022-12-09T14:04:38.000Z","size":2436,"stargazers_count":2,"open_issues_count":1,"forks_count":8,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-09-08T23:28:33.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aces.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-03T17:42:10.000Z","updated_at":"2022-12-09T14:04:45.000Z","dependencies_parsed_at":"2023-03-03T13:15:32.035Z","dependency_job_id":null,"html_url":"https://github.com/aces/Data-Query-Tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aces/Data-Query-Tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2FData-Query-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2FData-Query-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2FData-Query-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2FData-Query-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aces","download_url":"https://codeload.github.com/aces/Data-Query-Tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aces%2FData-Query-Tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002789,"owners_count":26083468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T04:40:16.688Z","updated_at":"2025-10-10T05:08:51.097Z","avatar_url":"https://github.com/aces.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DQT 2.0\n\nThe new Loris Data Query Tool.\n\n## Prerequisites\n\nBefore using this code, you must have the following prerequisites installed\n\n* CouchDB \u003e= 1.2 (http://couchdb.apache.org)\n\n## Installation\n\n### The Easy Way\n\nCreate a database on your local CouchDB instance\n\n```bash\ncurl -X PUT $YOURCOUCHDBADMIN:$YOURCOUCHADMINPASS@127.0.0.1:5984/$YOURDATABASENAME\n```\n\nClone the code from the server http://couchdb.loris.ca:5984/dataquerytool-$VERSION where `$VERSION` is separated by underscores rather than dots (because dots are not allowed in CouchDB database names.)\n\nExample:\n\n```bash\ncurl -H 'Content-Type: application/json' -X POST http://$YOURCOUCHDBADMIN:$YOURCOUCHADMINPASS@$YOURSERVERNAME:5984/_replicate -d '{\"source\":\"http://couchdb.loris.ca:5984/dataquerytool-1_0_0\", \"target\":\"$YOURDATABASENAME\"}'\n```\n\n### The Hard Way (for development)\n\nYou will need the following dependency:\n\n* Erica (https://github.com/benoitc/erica)\n\nFirst, create a CouchDB database using Futon (http://127.0.0.1:5984/_utils/index.html).\nIn the following example, the database is named \"dqg\".\n\nNext, clone this repository:\n\n```bash\ngit clone git@github.com:aces/Data-Query-Tool.git\n```\n\nFinally, push to CouchDB using erica\n\n```bash\ncd Data-Query-Tool\nerica push http://adminuser:adminpass@127.0.0.1:5984/dqg\n```\n\nVisit http://127.0.0.1:5984/dqg/_design/DQG-2.0/_rewrite/ to ensure code was pushed.\n\n## Populating data from Loris\n\nAmend the section of your LORIS config.xml\n\n```xml\n\u003cCouchDB\u003e\n    \u003cSyncAccounts\u003etrue\u003c/SyncAccounts\u003e\n    \u003cdatabase\u003edqg\u003c/database\u003e\n    \u003chostname\u003elocalhost\u003c/hostname\u003e\n    \u003cport\u003e5984\u003c/port\u003e\n    \u003cadmin\u003eadminuser\u003c/admin\u003e\n    \u003cadminpass\u003eadminpass\u003c/adminpass\u003e\n\u003c/CouchDB\u003e\n```\n\nIn your Loris tools directory run the `CouchDB_Import_*` scripts\n\n```bash\ncd $lorisroot/tools\n\n# Import the base candidate data\nphp CouchDB_Import_Demographics.php\n\n# Import the Loris instrument data\n# This step is optional and not required if\n# only the MRI portion of Loris is used\nphp CouchDB_Import_Instruments.php\n\n# Import the Loris MRI data\n# This step is optional and not required\n# if the MRI portion of Loris isn't installed\nphp CouchDB_Import_MRI.php\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Fdata-query-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faces%2Fdata-query-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faces%2Fdata-query-tool/lists"}