{"id":17540538,"url":"https://github.com/filip26/ld-cli","last_synced_at":"2025-04-23T22:52:13.582Z","repository":{"id":36949951,"uuid":"476720623","full_name":"filip26/ld-cli","owner":"filip26","description":" A command-line utility for processing JSON-LD, RDF, RDFC, JCS, and CBOR-LD, with native executables for Ubuntu, macOS, and Windows.","archived":false,"fork":false,"pushed_at":"2025-04-21T09:52:28.000Z","size":353,"stargazers_count":19,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T22:51:38.478Z","etag":null,"topics":["cbor","cbor-ld","cli","command-line","jcs","json","json-ld","linked-data","rdf","rdf-canonicalization","rdfc"],"latest_commit_sha":null,"homepage":"","language":"Java","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/filip26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["filip26"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://wise.com/share/filipk558","https://paypal.me/FilipKolarik"]}},"created_at":"2022-04-01T12:56:26.000Z","updated_at":"2025-04-21T09:52:26.000Z","dependencies_parsed_at":"2023-10-17T00:04:39.095Z","dependency_job_id":"c3c56dc6-d673-44d4-8478-12ef133f5f4f","html_url":"https://github.com/filip26/ld-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filip26%2Fld-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filip26%2Fld-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filip26%2Fld-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filip26%2Fld-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filip26","download_url":"https://codeload.github.com/filip26/ld-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528694,"owners_count":21445511,"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":["cbor","cbor-ld","cli","command-line","jcs","json","json-ld","linked-data","rdf","rdf-canonicalization","rdfc"],"created_at":"2024-10-20T22:24:13.112Z","updated_at":"2025-04-23T22:52:13.575Z","avatar_url":"https://github.com/filip26.png","language":"Java","funding_links":["https://github.com/sponsors/filip26","https://wise.com/share/filipk558","https://paypal.me/FilipKolarik"],"categories":["Tools"],"sub_categories":[],"readme":"\n\u003e [!IMPORTANT]\n\u003e Your feedback is essential to the improvement of this library. Please share any concerns, primary use cases, areas for enhancement, or challenges you have encountered. Your insights help refine and optimize the library to better meet user needs. Thank you for your time and contributions.\n\n# Linked Data CLI\n\nA simple command-line utility designed to process JSON-LD, RDF, and CBOR-LD documents. The goal is to provide native executables compiled for Ubuntu, macOS, and Windows.\n\n## Features\n\n* [W3C JSON-LD 1.1](https://www.w3.org/TR/json-ld/) \n* [W3C CBOR-LD 1.0](https://json-ld.github.io/cbor-ld-spec/)\n* [W3C Standard RDF Dataset Canonicalization Algorithm](https://www.w3.org/TR/rdf-canon/)\n* [RFC 8785 JSON Canonicalization Scheme (JCS)](https://www.rfc-editor.org/rfc/rfc8785)\n\n## Status\n\n[![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/filip26/ld-cli?include_prereleases)](https://github.com/filip26/ld-cli/releases)\n[![Downloads](https://img.shields.io/github/downloads/filip26/ld-cli/total)](https://github.com/filip26/ld-cli/releases)\n\n## Installation\n\n[Downloads](https://github.com/filip26/ld-cli/releases/)\n\n```bash\n\u003e unzip ld-cli-....zip\n\u003e chmod +x ld-cli\n```\n\n## Usage\n\n```bash\n\u003e ld-cli -h\nUsage: ld-cli [-hv] [COMMAND]\n\nLinked Data Command Line Processor\n\nOptions:\n  -h, --help      display help message\n  -v, --version   display a version\n\nCommands:\n  expand      Expand JSON-LD document\n  compact     Compact JSON-LD document using the context\n  flatten     Flatten JSON-LD document and optionally compact using a context\n  frame       Frame JSON-LD document using the frame\n  fromrdf     Transform N-Quads document into a JSON-LD document in an expanded form\n  tordf       Transform JSON-LD document into N-Quads document\n  compress    Compress JSON-LD document into CBOR-LD  \n  decompress  Decompress CBOR-LD document into JSON-LD\n  rdfc        Canonize an RDF N-Quads document with RDFC-1.0\n  jcs         Canonize a JSON document using the JSON Canonicalization Scheme (JCS)\n\n\u003e ld-cli expand -h\nUsage: ld-cli expand [-op] [-b=\u003cbase\u003e] [-c=\u003ccontext\u003e] [-i=\u003cinput\u003e] [-m=1.0|1.1]\n\nExpand JSON-LD document\n\nOptions:\n  -b, --base=\u003cbase\u003e         input document base IRI\n  -c, --context=\u003ccontext\u003e   context IRI\n  -i, --input=\u003cinput\u003e       input document IRI\n  -m, --mode=1.0|1.1        processing mode\n  -o, --ordered             certain algorithm processing steps are ordered\n                              lexicographically\n  -p, --pretty              pretty print output JSON\n\n```\n\n### Pipeline\n```bash\n\u003e cat document.json | ld-cli expand --ordered --pretty \u003e expanded.jsonld\n```\n\n### `https://` scheme support\n\n```bash\n\u003e ld-cli rdfc -i https://raw.githubusercontent.com/filip26/titanium-rdf-canon/refs/heads/main/src/test/resources/com/apicatalog/rdf/canon/rdfc10/test022-in.nq \n```\n\n### `file:/` scheme support\n\n```bash\n\u003e ld-cli compress -i file:/home/filip/example.jsonld\n```\n\n### Custom CBOR-LD dictionaries\n```bash\n\u003e ld-cli decompress --pretty --dictionary=./utopia-barcodes-dictionary-example.json \u003c\u003c\u003c 'd90664a60183198000198001198002189d82187618a418b8a3189c18a618ce18b218d01ae592208118baa2189c18a018a8447582002018be18aa18c0a5189c186c18d60418e018e618e258417ab7c2e56b49e2cce62184ce26818e15a8b173164401b5d3bb93ffd6d2b5eb8f6ac0971502ae3dd49d17ec66528164034c912685b8111bc04cdc9ec13dbadd91cc18e418ac'\n```\n\n## Contributing\n\nAll PR's welcome!\n\n### Building\n\n1. [Install GraalVM and Native Image](https://www.graalvm.org/latest/docs/)\n   - download and unpack ```graalvm-jdk-....tar.gz```\n   - set ```JAVA_HOME``` and ```PATH``` env variables\n3. ```mvn clean package -Pnative```\n4. ```./target/ld-cli```\n\n\n## Resources\n\n* [Titanium JSON-LD](https://github.com/filip26/titanium-json-ld)\n* [Titanium RDFC](https://github.com/filip26/titanium-rfc-canon)\n* [Titanium JCS](https://github.com/filip26/titanium-jcs)\n* [Iridium CBOR-LD](https://github.com/filip26/iridium-cbor-ld)\n\n## Sponsors\n\n\u003ca href=\"https://github.com/thadguidry\"\u003e\n  \u003cimg src=\"https://avatars.githubusercontent.com/u/986438?v=4\" width=\"40\" /\u003e\n\u003c/a\u003e \n\n## Commercial Support\nCommercial support is available at filip26@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilip26%2Fld-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilip26%2Fld-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilip26%2Fld-cli/lists"}