Metadata-Version: 2.4
Name: cognite-neat
Version: 0.121.1
Summary: Knowledge graph transformation
Project-URL: Documentation, https://cognite-neat.readthedocs-hosted.com/
Project-URL: Homepage, https://cognite-neat.readthedocs-hosted.com/
Project-URL: GitHub, https://github.com/cognitedata/neat
Project-URL: Changelog, https://github.com/cognitedata/neat/releases
Author-email: Nikola Vasiljevic <nikola.vasiljevic@cognite.com>, Anders Albert <anders.albert@cognite.com>, Rogerio Júnior <rogerio.junior@cognite.com>
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: backports-strenum<2.0.0,>=1.2; python_version < '3.11'
Requires-Dist: cognite-sdk<8.0.0,>=7.73.4
Requires-Dist: elementpath<5.0.0,>=4.0.0
Requires-Dist: exceptiongroup<2.0.0,>=1.1.3; python_version < '3.11'
Requires-Dist: jsonpath-python<2.0.0,>=1.0.6
Requires-Dist: mixpanel<5.0.0,>=4.10.1
Requires-Dist: networkx<4.0.0,>=3.4.2
Requires-Dist: openpyxl<4.0.0,>=3.0.10
Requires-Dist: packaging<25.0,>=22.0
Requires-Dist: pandas<3.0.0,>=1.5.3
Requires-Dist: pydantic<3.0.0,>=2.0.0
Requires-Dist: pyvis<1.0.0,>=0.3.2
Requires-Dist: pyyaml<7.0.0,>=6.0.1
Requires-Dist: rdflib<8.0.0,>=7.0.0
Requires-Dist: requests<3.0.0,>=2.28.1
Requires-Dist: rich[jupyter]<14.0.0,>=13.7.1
Requires-Dist: tomli<3.0.0,>=2.0.1; python_version < '3.11'
Requires-Dist: typing-extensions<5.0.0,>=4.8.0; python_version < '3.11'
Requires-Dist: urllib3<3.0.0,>=1.26.15
Provides-Extra: docs
Requires-Dist: mistune==3.0.2; extra == 'docs'
Requires-Dist: mkdocs-autorefs<1.0.0,>=0.5.0; extra == 'docs'
Requires-Dist: mkdocs-git-authors-plugin<1.0.0,>=0.9.4; extra == 'docs'
Requires-Dist: mkdocs-git-revision-date-localized-plugin; extra == 'docs'
Requires-Dist: mkdocs-gitbook<1.0.0,>=0.0.1; extra == 'docs'
Requires-Dist: mkdocs-glightbox<1.0.0,>=0.4.0; extra == 'docs'
Requires-Dist: mkdocs-jupyter<1.0.0,>=0.25.1; extra == 'docs'
Requires-Dist: mkdocs-material-extensions<2.0.0,>=1.3.1; extra == 'docs'
Requires-Dist: mkdocs<2.0.0,>=1.4.0; extra == 'docs'
Requires-Dist: mkdocstrings[python]<1.0.0,>=0.25.2; extra == 'docs'
Requires-Dist: pymdown-extensions<11.0.0,>=10.14.3; extra == 'docs'
Provides-Extra: google
Requires-Dist: google-api-python-client<3.0.0,>=2.70.0; extra == 'google'
Requires-Dist: google-auth-oauthlib<2.0.0,>=1.0.0; extra == 'google'
Requires-Dist: gspread<6.0.0,>=5.0.0; extra == 'google'
Provides-Extra: lxml
Requires-Dist: lxml<6.0.0,>=5.3.0; extra == 'lxml'
Provides-Extra: pyoxigraph
Requires-Dist: oxrdflib<0.5.0,>=0.4.0; extra == 'pyoxigraph'
Requires-Dist: pyoxigraph<0.5.0,>=0.4.3; extra == 'pyoxigraph'
Description-Content-Type: text/markdown

# kNowlEdge grAph Transformer (NEAT)

[![release](https://img.shields.io/github/actions/workflow/status/cognitedata/neat/release.yaml?style=for-the-badge)](https://github.com/cognitedata/neat/actions/workflows/release.yaml)
[![Documentation Status](https://readthedocs.com/projects/cognite-neat/badge/?version=latest&style=for-the-badge)](https://cognite-neat.readthedocs-hosted.com/en/latest/?badge=latest)
[![Github](https://shields.io/badge/github-cognite/neat-green?logo=github&style=for-the-badge)](https://github.com/cognitedata/neat)
[![PyPI](https://img.shields.io/pypi/v/cognite-neat?style=for-the-badge)](https://pypi.org/project/cognite-neat/)
[![Downloads](https://img.shields.io/pypi/dm/cognite-neat?style=for-the-badge)](https://pypistats.org/packages/cognite-neat)
[![Docker Pulls](https://img.shields.io/docker/pulls/cognite/neat?style=for-the-badge)](https://hub.docker.com/r/cognite/neat)
[![GitHub](https://img.shields.io/github/license/cognitedata/neat?style=for-the-badge)](https://github.com/cognitedata/neat/blob/master/LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge)](https://github.com/ambv/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&style=for-the-badge)](https://github.com/astral-sh/ruff)
[![mypy](https://img.shields.io/badge/mypy-checked-000000.svg?style=for-the-badge&color=blue)](http://mypy-lang.org)

NEAT is a domain expert centric and developer friendly solution for rapid:

- semantic data modeling
- creation, transformation and enrichment of knowledge graphs
- and ingestion of the models and graphs into [Cognite Data Fusion](https://www.cognite.com/en/product/cognite_data_fusion_industrial_dataops_platform)

NEAT is using open and globally recognized standards maintained by the [World Wide Web Consortium (W3C)](https://www.w3.org/RDF/).
NEAT represents an essential tool for creation of standardized, machine-actionable, linked and semantic (meta)data.

> NEAT is a funny acronym derived from k**N**owl**Ed**ge gr**A**ph **T**ransformer produced using [ACRONIMIFY](https://acronymify.com/NEAT/?q=knowledge+graph+transformer).


## History

NEAT emerged from years of experience in semantic tooling and knowledge graph development. The foundation was laid in 2020 with [sheet2rdf](https://github.com/nikokaoja/sheet2rdf), an Excel-based tool that trained data stewards to build domain-specific knowledge graphs and supported CI/CD processes in the Dutch Covid program and european wind energy community.

By mid of 2022, sheet2rdf was used in several POCs in Cognite. As Cognite's Data Modeling Service (DMS) development progressed, the need for simplified data modeling experience led to demonstration of proto-NEAT, known as [sheet2fdm](https://github.com/cognitedata/sheet2fdm), an extension of sheet2rdf, enabling semantic data model definitions in OWL, SHACL, Python and GraphQL (see e.g., [wind energy data model](https://cognitedata.github.io/wind-energy-data-model/)) using a simplified version of sheet2rdf Excel template.

Presented in various forums in 2022, this approach paved the way for NEAT’s formal development in November 2022 to enable cost-saving and empowerment of Cognite customers to self-sufficiently maintain and onboard knowledge graphs to Cognite Data Fusion.


## Authorship

### Authors
The plot below shows the NEAT authorship from the start until present day.

![NEAT authorship](./docs/artifacts/figs/authorship.png)

#### Current authors
- [Nikola Vasiljević](www.linkedin.com/in/thisisnikola)
- [Anders Albert](https://www.linkedin.com/in/anders-albert-00790483/)
- [Rogerio Júnior](https://www.linkedin.com/in/rogerio-saboia-j%C3%BAnior-087118a7/)

#### Former authors
- [Aleksandrs Livincovs](https://www.linkedin.com/in/aleksandrslivincovs/)
- [Julia Graham](https://www.linkedin.com/in/julia-graham-959a78a7/)

### Contributors
We are very grateful for the contributions made by:


- [Marie Solvik Lepoutre](https://www.linkedin.com/in/mslepoutre/), who improved RDF triples projections to Cognite Data Fusion
- [Bård Henning Tvedt](https://www.linkedin.com/in/bhtvedt/), who implemented IMF importer
- [Kristina Tomičić](https://www.linkedin.com/in/kristina-tomicic-6bb443108/), who implemented Data Model and Instances visualization


## Installation

```bash
pip install cognite-neat
```

## Usage

The user interface for `NEAT` is a notebook-based environment. Once you have set up your notebook
environment, you start by creating a `CogniteClient` and instantiate a `NeatSession` object.

```python
from cognite.neat import NeatSession, get_cognite_client

client = get_cognite_client(".env")

neat = NeatSession(client)

neat.read.cdf.data_model(("my_space", "MyDataModel", "v1"))
```

## Documentation

For more information, see the [documentation](https://cognite-neat.readthedocs-hosted.com/en/latest/)
