BlueBrain / nexus-forge

Building and Using Knowledge Graphs made easy
https://nexus-forge.readthedocs.io
GNU Lesser General Public License v3.0
38 stars 19 forks source link

Include common configurations within the package #229

Open mgeplf opened 2 years ago

mgeplf commented 2 years ago

Having to copy the contents, or download a link like https://raw.githubusercontent.com/BlueBrain/nexus-forge/master/examples/notebooks/use-cases/prod-forge-nexus.yml is cumbersome to make basic queries. Adding the file to the package when being deployed, and having a method to get them would make things much simpler.

Perhaps something like:

from kgforge import configurations
from kgforge.core import KnowledgeGraphForge

forge = KnowledgeGraphForge(configurations.get("BBPPublic"))

would make it easier to connect to instances.