Skip to content

A flask application to perform SPARQL queries on buildings brick schema

License

Notifications You must be signed in to change notification settings

RobertoChiosa/brick-query-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brick Query UI

This repository contains a Flask application used to perform interactive queries on a Brick ontology semantic model. The objective is to provide a quick and easy way to write validate and perform queries.

Local deployment

Install required packages from the requirement file.

pip install -r requirements.txt

Run flask application with the following command:

flask run

You should see something like this:

* Environment: production
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Now visit http://127.0.0.1:5000/ to access the flask application.

Docker deployment

Execute the following commands to create the Docker network, build a container and run the resulting image:

export $(grep -v '^#' .env | xargs)
# create a network
docker network create brick-query-app-network
# build container uncomment if already built
docker image build -t brick-query-app .
# starts app database on localhost
docker run -d --net brick-query-app-network --name brick-query-app -p 127.0.0.1:5000:5000 brick-query-app

Once the script finishes running, use the following command to list all running containers:

docker ps

When you finish close the containers and delete te network with the following commands

docker stop brick-query-app
docker rm brick-query-app
docker network rm brick-query-app-network

Notes

Distributed under MIT License and built with

About

A flask application to perform SPARQL queries on buildings brick schema

Topics

Resources

License

Stars

Watchers

Forks

Languages