GithubHelp home page GithubHelp logo

ldesousa / prez Goto Github PK

View Code? Open in Web Editor NEW

This project forked from britishgeologicalsurvey/vocprez3

0.0 0.0 0.0 1.76 MB

License: BSD 3-Clause "New" or "Revised" License

JavaScript 2.05% Python 73.42% CSS 3.45% HTML 17.00% Dockerfile 0.08% SCSS 4.01%

prez's Introduction

NOTICE: the open source community now maintains Prez at RDFLib/Prez

Prez

Prez is a Linked Data API framework tool that delivers read-only access to Knowledge Graph data according to particular domain profiles.

Prez comes in two main profile flavours:

  • VocPrez - for vocabularies, based on the SKOS data model
  • SpacePrez - for spatial data, based on OGC API specification and the GeoSPARQL data model

Prez is pretty straight-forward to install and operate and all while being high-performance. It uses the modern FastAPI Python web framework.

Prez is quite simple and expects "high quality" data to work well. By requiring that you create high quality data for it, Prez can remain relatively simple and this ensures value is retained in the data and not in hidden code.

Running Prez

Environment variables for configuring prez are found in prez/config.py. A minimal set of environment variables with example values to run prez is listed below:

ENABLED_PREZS=["SpacePrez"] SPACEPREZ_SPARQL_ENDPOINT=http://localhost:3030/spaceprez

Using Python

Prez can be run directly using python by running: python run prez/app.py, NB though, Prez won't start unless the specified SPARQL endpoint(s) is/are found. To run a mock SPARQL endpoint, with some example data, you can run the following command: python tests/local_sparql_store/store.py You can then run prez against the local mock SPARQL endpoint by setting the SPACEPREZ_SPARQL_ENDPOINT environment variable to http://localhost:3030/spaceprez.

Using Docker

First build the docker image using the Dockerfile in this repo, or pull from Dockerhub: build: docker build -t prez . or pull: docker pull surroundaustralia/prez

Then run the image:

docker run -p 8000:8000 \
    -e ENABLED_PREZS=["SpacePrez", "VocPrez"] \
    -e SPACEPREZ_SPARQL_ENDPOINT=http://localhost:3030/spaceprez \
    -e VOCPREZ_SPARQL_ENDPOINT=http://localhost:3030/vocprez \
    surroundaustralia/prez

Installation, use development schedule and more are documented at https://surroundaustralia.github.io/Prez/.

Contact

This tool is actively developed and supported by SURROUND Australia Pty Ltd. Please contact SURROUND either by creating issues in the Issue Tracker or directly emailing the lead developers:

Jamie Feiss [email protected]

David Habgood [email protected]

Contributing

We love contributions to this tool and encourage you to create Issues in this repositories Issue Tracker as well as submitting Pull Requests with your own updates.

License

This version of Prez and the contents of this repository are also available under the BSD-3-Clause License. See this repository's LICENSE file for details.

prez's People

Contributors

adamdavis2 avatar jamiefeiss avatar nicholascar avatar recalcitrantsupplant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.