Metadata-Version: 2.4
Name: atlas-research
Version: 1.4.4
Summary: Embed documents into a graph and explore semantic links between them (early alpha)
Author-email: Han Jeongwoo <jwhan00427@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://atlaslab.app
Project-URL: Repository, https://github.com/engineer0427/Atlas-Showcase
Project-URL: Documentation, https://pypi.org/project/atlas-research/
Project-URL: Issues, https://github.com/engineer0427/Atlas-Showcase/issues
Keywords: AI,Knowledge,Mapping,Visualization,Knowledge Graph,Machine Learning
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: networkx>=3.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: requests>=2.28.0
Provides-Extra: arxiv
Requires-Dist: arxiv>=2.1; extra == "arxiv"
Dynamic: license-file

# Atlas (`atlas-research`)

Atlas is an early-stage Python library for putting documents (papers, patents, your own notes) into one graph and exploring the links between them.

> **Status: alpha.** The API is unstable and several parts are still stubs (see [Known limitations](#known-limitations)). Use it for experiments, not for anything you depend on.

## What works today

- An in-memory, directed multigraph of typed nodes (for example `Paper`, `Dataset`, `Concept`) built on [NetworkX](https://networkx.org/).
- Adding typed relations between nodes (`cites`, `implements`, `uses`, `relates`).
- Neighborhood and path queries over the graph.
- Saving the graph to JSON and loading it back.

Semantic linking (connecting documents by meaning rather than by citation) and missing-link detection are the goals of the project but are **not** available in the installed package yet. See [Roadmap](#roadmap).

## Installation

```bash
pip install atlas-research
```

Requires Python 3.10 or newer. The core install depends only on `networkx>=3.0`, `pydantic>=2.0` and `requests>=2.28`. These lower bounds and Python 3.10 and 3.12 are tested in CI.

One optional extra is available:

| Extra | Installs | Used by |
|---|---|---|
| `arxiv` | `arxiv` | arXiv client (`atlas.data_sources.arxiv_client`, `Ingestor` arXiv fetch) |

```bash
pip install "atlas-research[arxiv]"
```

## Quickstart

```python
from atlas import Atlas

atlas = Atlas(name="demo")

# Node types are plain strings. add_node returns the node id ("<type>:<id>").
a = atlas.add_node("Paper", "paper-a", title="Example paper A")
b = atlas.add_node("Paper", "paper-b", title="Example paper B")
d = atlas.add_node("Dataset", "dataset-x", title="Example dataset")

atlas.link.cites(a, b)
atlas.link.uses(b, d)

print(atlas.store.g.number_of_nodes(), atlas.store.g.number_of_edges())  # 3 2
print(atlas.query.paths(a, d))  # [['Paper:paper-a', 'Paper:paper-b', 'Dataset:dataset-x']]

atlas.save("out/graph.json")

restored = Atlas(name="restored")
restored.load("out/graph.json")
print(restored.store.g.number_of_edges())  # 2
```

## Known limitations

These were checked against the installed 1.4.4 package:

- `add_edge` with an id that was not returned by `add_node` (for example `"a"` instead of `"Paper:a"`) creates an untyped node and emits a `UserWarning`. **From 1.5.0 this will raise `KeyError`.**
- Linker edges (`cites`, `uses`, …) keep their kind as the edge key from 1.4.4. Files saved by 1.4.3 or earlier store these edges as `relation: "related"` with an `etype` attribute, and are loaded as they are.
- `Linker.auto()` and `Atlas.run()` are placeholders. They do not create links or run an analysis.
- `export_pyvis()` writes the graph as JSON, not as an HTML visualization.
- No `atlas` command-line entry point is installed. `python -m atlas --version` can fail on consoles that cannot print non-ASCII characters (for example the default Windows Korean console).
- The semantic-search and insight modules used by the Atlas web service are not part of the package. In 1.4.2 they were shipped but could not be imported from the installed package; from 1.4.3 they are left out.

Saved graph files use the `links` key for the edge list on every NetworkX version, and `load()` accepts files written with either `links` or `edges` (NetworkX 3.6 and later write `edges` by default). This was checked with NetworkX 3.0, 3.4.2 and 3.7.

Node ids have the form `<type>:<id>` (for example `Paper:paper-a`) whether you pass `NodeType.PAPER` or the string `"Paper"`, on every Python version. Files saved by 1.4.3 or earlier on Python 3.11 or later contain ids like `NodeType.PAPER:paper-a`; `load()` renames them to the new form and logs a warning.

## Roadmap

Planned, not done:

1. Publish semantic search and link evidence as part of the library, with tests against the installed package.
2. Connect papers, patents and user documents in one graph by semantic similarity, and show the evidence for each link.
3. Detect "missing links", such as research topics with papers but no patents.

Detecting paper–patent gaps by comparing semantic similarity has been studied before (Shibata, Sakata et al., University of Tokyo, 2009–2011). Atlas aims to make this kind of analysis available as an open-source tool that can run on your own machine.

Analysis results are meant to support review. They are not a legal opinion on patentability or infringement.

Project overview: <https://github.com/engineer0427/Atlas-Showcase>

## License

Apache License 2.0. See [LICENSE](LICENSE).
