{"id":25740096,"url":"https://github.com/rocketsoftware/zumasys_mvquery","last_synced_at":"2026-06-15T15:31:54.464Z","repository":{"id":67280146,"uuid":"434687395","full_name":"RocketSoftware/zumasys_mvquery","owner":"RocketSoftware","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-03T17:57:21.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T08:38:54.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/RocketSoftware.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":"2021-12-03T17:57:12.000Z","updated_at":"2021-12-03T17:57:24.000Z","dependencies_parsed_at":"2023-06-10T13:30:24.604Z","dependency_job_id":null,"html_url":"https://github.com/RocketSoftware/zumasys_mvquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RocketSoftware/zumasys_mvquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RocketSoftware%2Fzumasys_mvquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RocketSoftware%2Fzumasys_mvquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RocketSoftware%2Fzumasys_mvquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RocketSoftware%2Fzumasys_mvquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RocketSoftware","download_url":"https://codeload.github.com/RocketSoftware/zumasys_mvquery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RocketSoftware%2Fzumasys_mvquery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34369840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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":"2025-02-26T08:36:14.913Z","updated_at":"2026-06-15T15:31:54.427Z","avatar_url":"https://github.com/RocketSoftware.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MVQUERY\n\nThis is a very beta jql to json tool.  It will take any jql statement and product json output.\n\nNote: This only works on jBASE 5.7+\n\n\n## Installation\n\nYou will either git clone this repository or download it and unpack it.  Once you have done this create\na F pointer pointing at the project.  The root directory is the dictionary and the directory MVQUERY.BP\nis the data section.  You then compile the two main programs and create the WDB.RESOURCE entry.\n\nWarning:  There is NO security attached to the demostration MVQUERY endpoint.  It is recommended you \nadd some type of security.  \n\n```\nED MD MVQUERY.BP\n1\u003eF\n2\u003e\u003cpath to git project or project\u003e/MVQUERY.BP\n3\u003e\u003cpath to git project or project\u003e\nFI\n\nBASIC MVQUERY.BP MVJQLTOJSON.RTNE\nCATALOG MVQUERY.BP MVJQLTOJSON.RTNE\nBASIC MVQUERY.BP MVQUERY.RTNE\nCATALOG MVQUERY.BP MVQUERY.RTNE\n\nED WDB.RESOURCE API*MVQUERY\n1\u003eP\n2\u003eMV QUERY RTNE\n3\u003eMVQUERY.RTNE\n4\u003e\n5\u003e1\n6\u003e1\nFI\n```\n\n## Usage\n\n```\ncurl http://\u003cip\u003e:\u003cport\u003e/api/mvquery?query=SORT MD\n```\n\nYou can also test the function from jsh\n\n```\nMVQUERY.RTNE [SORT MD\n```\n\n\n## Extended Schema\n\nTo facilitate multi-value collections a schema design is implemented.  Put a item SCHEMA.JSON\ninto the dictionary of a file.\n\n```\n{\n    \"Attribute\": {\n        \"group\": \"Collectionname\",\n        \"type\": \"array or collection\"\n    }\n}\n```\n\n### Collection\n\nWhen assigned to a collection an array of objects will be generated. The array will be named the group name.\nEach array entry will be a object associated to each value in the attributes.  Each dictionary item assigned\nto the group will be a field/pair in that object.  This function converts pick collections into typical\njson array object groups.\n\n### Array\n\nWhen assigned to an array that attribute will generate a an array named by the group name.  All values\nwill be shown as a string value in that array.\n\n## Data Conversion\n\nVery simple data conversions are done.  In the future the plan is to add more data type fields to the schema file\nto assist with data type conversions.\n\n1. DICT\u003c7\u003e[1,2]=\"MD\" - Data will be a number versus a string.  All $, in the data will be removed.\n2. Everything else is displayed as a string and the data is left as is\n\n### DEMO.FILE example\n\n```\nMAKE-DEMO-FILE\n\u003cname the file DEMO.FILE\u003e\n\nED DICT DEMO.FILE SCHEMA.JSON\n{\n    \"11\": {\n       \"group\": \"products\",\n       \"type\": \"collection\"\n    },\n    \"12\": {\n       \"group\": \"products\",\n       \"type\": \"collection\"\n    },\n    \"13\": {\n       \"group\": \"products\",\n       \"type\": \"collection\"\n    },\n    \"14\": {\n       \"group\": \"products\",\n       \"type\": \"collection\"\n    }\n }\n FI\n \n \n jsh JBASEDEV ~ --\u003eMVQUERY.RTNE [LIST DEMO.FILE \"0001\" LASTNAME OS HARDWARE\nContent-type: application/json\nCache-Control: no-cache\n\n{\n        \"result\":[\n                {\n                        \"DEMO_FILE\":\"0001\",\n                        \"LASTNAME\":\"MURPHY\",\n                        \"products\":[\n                                {\n                                        \"OS\":\"TRU64\",\n                                        \"HARDWARE\":\"ASUS\"\n                                },\n                                {\n                                        \"OS\":\"LINUX RH7\",\n                                        \"HARDWARE\":\"COMPAQ\"\n                                },\n                                {\n                                        \"OS\":\"LINUX RH7\",\n                                        \"HARDWARE\":\"DIGITAL\"\n                                },\n                                {\n                                        \"OS\":\"CENTOS7\",\n                                        \"HARDWARE\":\"ZSERIES\"\n                                }\n                        ]\n                }\n        ],\n        \"runtime\":8,\n        \"numitems\":1,\n        \"resultmsg\":\"\",\n        \"ranquery\":\"LIST DEMO.FILE \\\"0001\\\" LASTNAME OS HARDWARE\"\n}\njsh JBASEDEV ~ --\u003e\n```\n\n\n## Todo\n\n* Create additional data type schema entries to convert data\n  * DATE\n  * TIME\n* Subvalue groups\n* Pagination\n* Plugin authentication\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketsoftware%2Fzumasys_mvquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocketsoftware%2Fzumasys_mvquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketsoftware%2Fzumasys_mvquery/lists"}