{"id":19230521,"url":"https://github.com/ctron/sbom-age-test","last_synced_at":"2025-08-27T15:11:29.223Z","repository":{"id":238458147,"uuid":"796598692","full_name":"ctron/sbom-age-test","owner":"ctron","description":"Playing with SBOMs and Apache AGE","archived":false,"fork":false,"pushed_at":"2024-05-13T07:15:30.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T11:17:23.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ctron.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":"2024-05-06T09:05:20.000Z","updated_at":"2024-05-13T07:15:34.000Z","dependencies_parsed_at":"2024-05-13T08:30:56.564Z","dependency_job_id":null,"html_url":"https://github.com/ctron/sbom-age-test","commit_stats":null,"previous_names":["ctron/sbom-age-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctron/sbom-age-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fsbom-age-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fsbom-age-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fsbom-age-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fsbom-age-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctron","download_url":"https://codeload.github.com/ctron/sbom-age-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fsbom-age-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272343072,"owners_count":24917772,"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-08-27T02:00:09.397Z","response_time":76,"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-09T15:39:39.557Z","updated_at":"2025-08-27T15:11:29.173Z","avatar_url":"https://github.com/ctron.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing Apache AGE\n\nThe goal is to get a better understanding of SBOMs (SPDX SBOMs) in the context of graph databases. Using Apache AGE.\n\n## Fetching an initial dataset\n\nThis needs to be done at least once.\n\n```bash\nmkdir -p data/current\nsbom download https://access.redhat.com/security/data/sbom/beta -k https://access.redhat.com/security/data/97f5eac4.txt#77E79ABE93673533ED09EBE2DCE3823597F5EAC4 -d data/current \n```\n\n## Starting services (PostgreSQL with AGE)\n\n```bash\npodman-compose up\n```\n\n\u003e [!IMPORTANT]  \n\u003e The compose setup exposes Postgres on port 5433 instead of the default port.\n\n## Ingesting data\n\n```bash\ncargo run\n```\n\nYou can use `RUST_LOG=info` to get more info.\n\n\u003e [!IMPORTANT]  \n\u003e Re-running the ingesting will drop and re-create the graph instance.\n\n### Ingesting a subset\n\nYou can use `-p prefix` or `--prefix prefix` to limit the files ingested. The prefix is checked again the start of\nthe file name.\n\n### SPDX license expressions\n\n\u003e [!NOTE]  \n\u003e The ingesting process will replace all invalid license expressions with `NOASSERTION`. It will also store\n\u003e all files with a `.processed` extension to speed up re-running the process.\n\n## Playing with the data\n\nConnect to PostgreSQL and execute the following commands before interactive with the data:\n\n```sql\nLOAD 'age';\nSET search_path = ag_catalog, \"$user\", public;\n```\n\nThen you can play with the data. See [`test.sql`](test.sql) for some examples.\n\n## Loading a prepared database dump\n\nDownload the `dq.sql.xz` file and decompress it and rename it to `db.sql`:\n\n```bash\nwget https://sbom.dentrassi.de/age-test/db-20240507.sql.xz\nmv db-20240507.sql.xz db.sql.xz\nxz -d db.sql.xz\n```\n\nThe load it into a newly created (empty) Postgres instance:\n\n```bash\npsql -h localhost -p 5433 -U postgres -d postgres -f db.sql\npsql -h localhost -p 5433 -U postgres -d postgres -f perf.sql\n```\n\n## age-viewer\n\nYou can inspect the data with the [age-viewer](https://github.com/apache/age-viewer).\n\n\u003e [!NOTE]\n\u003e As long as [PR #171] isn't merged, you need to use the fork. Otherwise, you can just clone `https://github.com/apache/age-viewer`.\n\nGet the code:\n\n```bash\ngit clone https://github.com/ctron/age-viewer -b feature/fix_pg_16_1\ncd age-viewer\nnpm run setup\nnpm run start\n```\n\nNavigate your browser to \u003chttp://localhost:3000\u003e and use the following credentials:\n\n* **Host:** `localhost`\n* **Port:** `5433`\n* **Username:** `postgres`\n* **Password:** `postgres`\n* **Database:** `postgres`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctron%2Fsbom-age-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctron%2Fsbom-age-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctron%2Fsbom-age-test/lists"}