Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whyis 2.0 #298

Open
4 of 14 tasks
jpmccu opened this issue Dec 14, 2021 · 1 comment
Open
4 of 14 tasks

Whyis 2.0 #298

jpmccu opened this issue Dec 14, 2021 · 1 comment
Assignees

Comments

@jpmccu
Copy link
Member

jpmccu commented Dec 14, 2021

Now that the installers and new system architecture are in place, we need to make sure all of the sparql queries work with Fuseki, and get the unit tests and CI functional again. The CI should probably just build the package, run the tests, and confirm a working system install rather than go through the docker automation, which has become brittle.

  • SPARQL Queries Working
    • Resource View queries:
      • attributes
      • incoming
      • outgoing
    • full text search (Jamie)
    • nanopublications list
    • ontology view
    • vega editor (maybe check implementations like materialsmine for nonconformant queries)
    • ... (there are others, add as we think of them/ see them.
  • Unit Tests Pass
  • CI is functional
  • fix base page rendering
  • (optional) update default home page to be a bit more useful

Here's how to build whyis now for development:

Prerequisites:

  1. Python 3.7+ (for Ubuntu 18.04 you'll need to add the deadsnakes ppa)
  2. libdb or equivalent (berkeley-db@4 through homebrew)
  3. Python dev package, pip, and venv
  4. Nodejs and NPM.

To build:

  1. Clone the project and check out the fuseki_integration branch.
  2. Create a virtual environment called venv in the whyis repo with python 3.7 or later:
python3.9 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install setup requirements:
pip install wheel requests
  1. Install whyis in developer mode:
pip install -e .

You'll need a test KG application to work with. You can do this by making a directory, cd'ing into it, and running whyis.

mkdir test_kg
cd test_kg
whyis

This will generate an app and run whyis on it. The app will be available at http://localhost:5000 of the machine you loaded it on. If you're running it in a VM, you'll need to add the -h 0.0.0.0 argument to whyis to tell it to not be localhost only.

@stouffers
Copy link
Member

added build step 4 since requests is not present in a brand new venv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants