API 与数据集
谱系数据可通过公开 API 和数据集直接获取。读取 API 无需认证,并允许跨域访问(CORS)。
本站为静态部署。它不提供实时 API,而是提供构建时生成的 JSON 数据与 SVG 徽章。如需查询类 API(/api/search、/api/scan、/api/claims),请用 Docker 镜像以服务器模式运行。
静态文件
| GET | /CISS/data/algorithms.json全部算法及荣誉指标。 |
| GET | /CISS/data/algorithms/quicksort.json算法详情:起源、上游与派生边、实现、谱系。 |
| GET | /CISS/data/authors.json贡献者排行。 |
| GET | /CISS/data/authors/hoare.json贡献者详情及分领域得分。 |
| GET | /CISS/data/graph.json完整谱系图(节点与边)。 |
| GET | /CISS/data/search-en.json浏览器内搜索使用的分语言索引(ko、en、ja、zh)。 |
| GET | /CISS/data/dataset.json完整数据集的 JSON 导出(schema 为 ciss-lineage/1)。 |
| GET | /CISS/data/csv/derivations.csv按表导出的 CSV:algorithms、origins、derivations、authors、implementations。 |
| GET | /CISS/badge/algorithm/quicksort.svgREADME 用 SVG 徽章。另有 /badge/author/{slug}.svg。 |
使用示例
curl
curl -s https://team-pj-lab.github.io/CISS/data/algorithms/transformer.json | jq '.parents[].from'JavaScript
const res = await fetch('https://team-pj-lab.github.io/CISS/data/algorithms.json');
const { algorithms } = await res.json();
console.log(algorithms.filter((a) => a.field === 'graphics').map((a) => a.name));README 徽章
在各算法或贡献者页面复制 Markdown 代码并粘贴到 README 中,即可在仓库首页注明所用算法的原作者。
运营政策
- 读取 API 可从任意来源调用(CORS *)。
- 数据采用 CC BY 4.0,可自由使用,但须注明出处,例如“Data: CISS (Team PJ), https://team-pj-lab.github.io/CISS, CC BY 4.0”。代码采用 AGPL-3.0。
- 贡献主张与异议通过 GitHub Issue 公开提交,请勿填写联系方式。