{"id":21660316,"url":"https://github.com/slub/jsonld2compactjsonldldj","last_synced_at":"2025-10-20T08:05:21.814Z","repository":{"id":41281067,"uuid":"128192428","full_name":"slub/jsonld2compactjsonldldj","owner":"slub","description":"a commandline command (Python3 program) that transforms a given JSON-LD record array to line-delimited, compact JSON-LD records","archived":false,"fork":false,"pushed_at":"2018-06-08T08:30:16.000Z","size":7,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-25T18:45:10.675Z","etag":null,"topics":["cli","command-line-tool","json","json-ld","line-delimited-json","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-05T10:41:23.000Z","updated_at":"2023-12-16T01:44:34.000Z","dependencies_parsed_at":"2022-09-21T00:41:09.566Z","dependency_job_id":null,"html_url":"https://github.com/slub/jsonld2compactjsonldldj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fjsonld2compactjsonldldj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fjsonld2compactjsonldldj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fjsonld2compactjsonldldj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slub%2Fjsonld2compactjsonldldj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slub","download_url":"https://codeload.github.com/slub/jsonld2compactjsonldldj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248493022,"owners_count":21113159,"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","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":["cli","command-line-tool","json","json-ld","line-delimited-json","python"],"created_at":"2024-11-25T09:32:52.976Z","updated_at":"2025-10-20T08:05:16.774Z","avatar_url":"https://github.com/slub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonld2compactjsonldldj - JSON-LD to compact JSON-LD line-delimited JSON records transformator\n\njsonld2compactjsonldldj is a commandline command (Python3 program) that transforms a given JSON-LD record array to line-delimited, compact JSON-LD records\n\nIt (usually) reads from stdin and prints to stdout.\n\n## Usage\n\n```\njsonld2compactjsonldldj\n\nrequired arguments:\n  -context CONTEXT              The JSON-LD context file (default: None)\n\noptional arguments:\n  -h, --help                    show this help message and exit\n  -input INPUT                  the input JSON-LD record array (default: None)\n  -record-field RECORD_FIELD    A field that should be contained in all records, e.g., a record identifier (this field will be used to identify records) (default: None)\n  -context-url CONTEXT_URL      A JSON-LD context URL that should be set to reference to the JSON-LD context (instead of inline the JSON-LD context) (default: None)\n```\n\n* example:\n    ```\n    jsonld2compactjsonldldj -context [PATH TO THE JSON-LD CONTEXT FILE] \u003c [PATH TO THE INPUT JSON-LD FILE] \u003e [PATH TO THE OUPUT JSON-LD LINE-DELIMITED JSON RECORDS FILE]\n    ```\n\n### Note\n\nThis program is not optimized for processing of large input files at the moment, i.e., there is no parallelization involved nor stream processing. So processing larger input files requires much (free) RAM and a bit of time ;)\n\n## Requirements\n\n[PyLD](https://github.com/digitalbazaar/pyld)\n\ne.g.\n```\nsudo -H pip3 install PyLD\n```\n\n## Run\n\n* install PyLD\n* clone this git repo or just download the [jsonld2compactjsonldldj.py](jsonld2compactjsonldldj/jsonld2compactjsonldldj.py) file\n* run ./jsonld2compactjsonldldj.py\n* for a hackish way to use jsonld2compactjsonldldj system-wide, copy to /usr/local/bin\n\n### Install system-wide via pip\n\n```\nsudo -H pip3 install --upgrade [ABSOLUTE PATH TO YOUR LOCAL GIT REPOSITORY OF JSONLD2COMPACTJSONLDLDJ]\n```\n(which provides you ```jsonld2compactjsonldldj``` as a system-wide commandline command)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fjsonld2compactjsonldldj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslub%2Fjsonld2compactjsonldldj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslub%2Fjsonld2compactjsonldldj/lists"}