{"id":37428159,"url":"https://github.com/dcdpr/jsonld-cpp","last_synced_at":"2026-01-16T06:32:36.904Z","repository":{"id":46230646,"uuid":"220539528","full_name":"dcdpr/jsonld-cpp","owner":"dcdpr","description":"JSON-LD Implementation for C++","archived":false,"fork":false,"pushed_at":"2024-05-20T23:11:54.000Z","size":4166,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T01:12:38.634Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcdpr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-11-08T20:05:36.000Z","updated_at":"2024-05-20T23:11:58.000Z","dependencies_parsed_at":"2024-04-24T15:44:50.750Z","dependency_job_id":null,"html_url":"https://github.com/dcdpr/jsonld-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcdpr/jsonld-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Fjsonld-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Fjsonld-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Fjsonld-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Fjsonld-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcdpr","download_url":"https://codeload.github.com/dcdpr/jsonld-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdpr%2Fjsonld-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-16T06:32:36.693Z","updated_at":"2026-01-16T06:32:36.832Z","avatar_url":"https://github.com/dcdpr.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonld-cpp\nJSON-LD Implementation for C++\n\nThis is a C++ implementation of JSON-LD 1.1 Processing Algorithms and API (http://json-ld.org)\n\nDevelopment is still in progress--this library currently only supports the\n[```expand()```](https://www.w3.org/TR/json-ld11-api/#expansion-algorithm) and\n[```toRdf()```](https://www.w3.org/TR/json-ld11-api/#deserialize-json-ld-to-rdf-algorithm)\nprocessing algorithms.\n\n## Implementation Notes\n\nSome parts of the JSON-LD API spec make note of using Promises to return\nAPI results. This C++ library does not support any Promise-like capability.\n\nThe RemoteDocument implementation currently only supports local files, not\ndocuments from arbitrary URLs.\n\n\n## Building jsonld-cpp\n\nTo build jsonld-cpp, you will need:\n\n* cmake\n* g++, clang or Visual Studio (community edition)\n\njsonld-cpp uses [http-link-header-cpp](https://github.com/dcdpr/http-link-header-cpp.git)\nand includes it as a submodule.  When cloning, use ```git clone --recursive```\nto include the submodule.\n\njsonld-cpp uses a pretty standard cmake build system:\n\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\nYou can also run all the tests:\n\n```\nmake test\n```\n\n### Installing prerequisites\n\nIf the above doesn't work, you probably need to install some\nprerequisites. For example, on a fresh Debian 12 (\"bookworm\") system:\n\n```\n$ sudo apt update\n$ sudo apt install make cmake g++ libssl-dev\n```\n\nNow you can again try to build jsonld-cpp.\n\n## Examples\n\nThe ```examples``` directory contains a simple application called\n```jsonld2rdf``` that shows how to interface with the library. It can\nconvert a JSON-LD document into RDF data in NQuads format. As part of\nthe conversion to RDF, the JSON-LD document is first ```expanded```.\n\n```\n$ cd jsonld-cpp/build\n$ ./jsonld-cpp-examples-prefix/src/jsonld-cpp-examples-build/jsonld2rdf examples/ex01a.jsonld\n\u003chttp://example.com/people/dave\u003e \u003chttp://xmlns.com/foaf/0.1/knows\u003e \u003chttp://example.com/people/markus\u003e .\n\u003chttp://example.com/people/dave\u003e \u003chttp://xmlns.com/foaf/0.1/name\u003e \"Dave Longley\" .\n\u003chttp://example.com/people/gregg\u003e \u003chttp://xmlns.com/foaf/0.1/knows\u003e \u003chttp://example.com/people/markus\u003e .\n\u003chttp://example.com/people/gregg\u003e \u003chttp://xmlns.com/foaf/0.1/name\u003e \"Gregg Kellogg\" .\n\u003chttp://example.com/people/markus\u003e \u003chttp://xmlns.com/foaf/0.1/name\u003e \"Markus Lanthaler\" .\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdpr%2Fjsonld-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcdpr%2Fjsonld-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdpr%2Fjsonld-cpp/lists"}