# Licensing and asset rights

Xinbaopedia is a mixed-material repository. The root [MIT License](LICENSE)
does not apply to every tracked file. This document maps each category to its
license or rights status. A file-specific notice or an upstream license listed
in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) takes precedence over the
general scopes below.

## Project software: MIT

The [MIT License](LICENSE) applies to project-authored software, tests,
automation, and engineering configuration in these paths:

- `.github/**`;
- `app/**`, `components/**`, `lib/**`, `scripts/**`, and `evals/**`;
- `.gitignore`, `.nvmrc`, `.vercelignore`, `next-env.d.ts`,
  `next.config.mjs`, `package.json`, `package-lock.json`, and
  `tsconfig.json`;
- `docs/chat/env.example`;
- `wiki/maintenance-schema.json`; and
- `public/977ab55cdd7bd5149d5143f5be4a88cc.txt`.

This grant covers only copyright and other rights that the applicable
rightsholder is authorized to license. Dependencies retain their own licenses.

## Original text and knowledge metadata: CC BY 4.0

Except where otherwise noted, original textual content and knowledge-graph
metadata authored for Xinbaopedia are licensed under the
[Creative Commons Attribution 4.0 International License](LICENSES/CC-BY-4.0.txt),
to the extent the licensor owns rights that can be licensed. This scope covers:

- `README.md`, `CONTRIBUTING.md`, `SECURITY.md`, `LICENSING.md`,
  `THIRD_PARTY_NOTICES.md`, and `ASSET_PROVENANCE.md`;
- project-authored Markdown under `docs/**`;
- `wiki/*.md`;
- `wiki/pages.json`, `wiki/graph.json`, `wiki/quality-report.json`, and
  `wiki/source-registry.json`; and
- the generated `public/okf/**` export, only as a representation of its
  corresponding licensed canonical content and metadata.

Recommended attribution is: "Xinbao Qiao and Xinbaopedia contributors,
Xinbaopedia, https://github.com/XinbaoQiao/XinbaoWiki, CC BY 4.0." Indicate
whether changes were made and retain a link to the license.

The CC BY 4.0 grant does not assert ownership over facts, publication titles,
bibliographic records, cited external material, short phrases, third-party
excerpts, or other material outside the licensor's copyright. The generated
OKF bundle does not create a broader license than its canonical source.

`CODE_OF_CONDUCT.md` is adapted from Contributor Covenant 2.1 under CC BY
4.0. Its upstream attribution is retained in that file.

## Visitor activity map geometry: upstream terms

`public/maps/world-land-dots.svg` is generated from `world-atlas` 2.0.2 and
Natural Earth geometry. It is excluded from Xinbaopedia's blanket MIT and CC BY
4.0 grants and remains under the upstream terms recorded in
[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md): the World Atlas distribution
is ISC licensed, while Natural Earth declares its source map data to be public
domain. The corresponding World Atlas notice is retained in
`LICENSES/ISC-world-atlas.txt`.

These copyright terms do not establish cartographic accuracy, official-map
status, regulatory approval, or permission to imply government endorsement.

## Files outside the project MIT and CC BY grants

No license is granted by this repository for the following files, except for
the separate upstream terms identified in
[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md):

- `CV.tex` and `public/files/**`;
- `assets/cv-fonts/**`;
- `public/images/**`;
- `public/institutions/**`;
- `public/maps/**`;
- `public/papers/**`;
- `public/topics/**`;
- `public/site-icons/**`, `public/site-logos/**`, and
  `public/xinbaopedia-icon.png`.

These paths include personal likenesses, a CV and its layout, institutional
insignia, paper figures, generated illustrations, bundled fonts, and project
brand assets. Their presence in a public repository does not mean that Xinbao
Qiao owns every underlying right or that an institution, venue, publisher,
photographer, co-author, model provider, or other party endorses the project.
Reuse requires an independent rights assessment and, where applicable,
permission from the relevant rightsholder.

Third-party trademarks, service marks, trade names, publication branding,
institutional emblems, and remotely loaded badge logos remain the property of
their respective owners. Neither MIT nor CC BY 4.0 grants trademark, patent,
privacy, publicity, personality, moral-right, or endorsement permissions
beyond what the applicable license expressly provides.

The standard license texts in `LICENSES/**` are reproduced for compliance and
reference; they are not themselves relicensed by Xinbaopedia.

## Contributions

Unless a pull request states and the maintainers accept different compatible
terms, code contributions are accepted under MIT, original textual and
knowledge-metadata contributions under CC BY 4.0, and assets only under their
documented compatible terms. Contributors must have the right to submit the
material. See [CONTRIBUTING.md](CONTRIBUTING.md).

This file documents repository policy and is not legal advice.
