Spatrem does not use a traditional relational database to store its data, choosing instead to represent the information it has collected as RDF knowledge graphs. These graphs are constructed from data tables created by Spatrem's researchers, using an [[ https://repository.ifla.org/handle/123456789/2217][international standard ontology]]. Once built, these graphs may be loaded into a general-purpose graph database and queried using the SPARQL query language.
This repository contains code for a simple web application that may be used to explore the information using a tabular representation.
Prerequisites
A Macintosh computer running OS 13 or higher, or a Linux-based computer
Some knowledge of "the command line" (i.e., the Bash shell or Zsh) and familiarity with installing software.
A graph database engine; Spatrem has used [[https://graphdb.ontotext.com/][GraphDB Free]]
Building the Web Application Begin by cloning this repository to your computer:
git clone git@github.com:cwulfman/spatreme.git
This will create a folder called spatreme (a code name for the application), but you may name the folder whatever you like.
Switch into this folder, create a Python virtual environment, and activate it:
cd spatreme python -m venv venv source venv/bin/activate
Now use the ~pip~ program to install the program's dependencies (you should update ~pip~ first):
pip install -U pip pip install -r requirements.txt
Now you should be able to start the web application:
sh ./spatreme.sh
Creating the Knowledge Graphs [ Instructions on installing and using the parser to come. ]
You must build the translation graphs before you build the translator graphs, or they will not link up properly.
poetry run python process_translations_file.py translations/DE_Translations.csv ~/Desktop/graphs poetry run python process_translators_file.py translators/DE_Translators.csv translations/DE_Translations.csv ~/Desktop/graphs
Loading the Graph Database Spatrem's graph database is hosted at this address: http://147.182.188.37:7200. It is an instance of GraphDB Free, which has a very user-friendly Desktop interface that makes it easy to update the knowledge graph.
[ Details to come; will teach Marina. ]