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: 8 months ago
JSON representation
Tutorials for Entity Resolved Knowledge Graphs
- Host: GitHub
- URL: https://github.com/louisguitton/erkg-tutorials
- Owner: louisguitton
- Created: 2024-08-09T16:36:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T11:04:46.000Z (over 1 year ago)
- Last Synced: 2025-01-31T03:25:49.734Z (over 1 year ago)
- Topics: entity-resolved-knowlege-graph, graph-data-science, graph-database, knowledge-graph, neo4j, senzing-community
- Language: Jupyter Notebook
- Homepage:
- Size: 27 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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}"
```