Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/louisguitton/erkg-tutorials

Tutorials for Entity Resolved Knowledge Graphs
https://github.com/louisguitton/erkg-tutorials

entity-resolved-knowlege-graph graph-data-science graph-database knowledge-graph neo4j senzing-community

Last synced: 2 months ago
JSON representation

Tutorials for Entity Resolved Knowledge Graphs

Awesome Lists containing this project

README

        

# erkg-tutorials

> Tutorials for Entity Resolved Knowledge Graphs, doing Entity Linking on ICIJ articles.

## Installation and Usage

```sh
pyenv local 3.12.5
poetry install
poetry shell
jupyter notebook
# open tutorial.ipynb
```

## [Ignore] Old setup notes

- Download and unzip the Senzing overlay:

- setup local Neo4j with GDS plugin and [Macos setting](https://neo4j.com/docs/graph-data-science/current/installation/#_graph_data_science_on_macos)
- run src.senzing_parser

```python
brew doctor
# do missing methods from brew doctor
brew upgrade
# ref https://sebhastian.com/error-metadata-generation-failed/
pip install --upgrade pip setuptools wheel
pip install spacy-ann-linker
```

### "SessionExpired: Failed to read from defunct connection" errors

graphdatascience==1.10 (the Py library)
Neo4j Desktop 1.6.0
Neo4j DB engine  5.18.1
GDS plugin 2.6.8

### debug Neo4j running locally

```sh
lsof -i tcp:5000-5005,6000-6005,7000-7005
```

```sh
pyenv install --list | grep " 3\.[(7)]"
brew install openssl readline sqlite3 xz zlib
pyenv install 3.7.17
pyenv local 3.7.17
python -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install flit
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=14.5 flit install --deps=all --symlink
spacy download en_core_web_md

brew install openblas
pip install --upgrade pip setuptools wheel
OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=14.5 pip install spacy-ann-linker

export OPENBLAS=$(brew --prefix openblas)

export CFLAGS="-falign-functions=8 ${CFLAGS}"
```