Skip to content

dorbarker/campyOntology

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Campy Database

A triplestore database for the epidemiological and biological data related to the bacteria Campylobacter Jejuni. Complete with ontologies and web application for querying and updating data. Meant to run on a Blazegraph server with the namespace campy. Sripts/csvToDB.py serves the purpose of cleaning and making triples out of legacy data that is stored on a csv that is stored privately (it can't be public as it contains sensitive info).

The ontology campyOntology2.0.owl is the primarily used ontology and all SPARQL queries in the web app are built around it. It imports LabTests.owl.

To run:

  • cd WebApp, then run sh install.sh. install.sh will start a virual environment and download flask and all required python packages.
  • Start a Blazegraph server on port 9999 (change the port number in Scripts/endpoint.py if you wish)
  • Create a new namespace named campy. Set TruthMaintence to True and change com.bigdata.rdf.axioms.NoAxioms to com.bigdata.rdf.axioms.OwlAxioms.
  • Upload campyOntology2.0.owl and LabTests.owl to Blazegraph (both are in Turtle format)
  • If you were me you would then upload the csv with the legacy data upto the Blazegraph server using csvToDB.py, but like I said the csv is stored privately.
  • Run ./run.py (in the WebApp dir)
  • The web app should now be running locally on port 5000.

At this point, you can run a query that fetches the names of all the isolates in the database by clicking the names link and you can add data to the database by clicking the add isolate link (though right now it just prints the triple to the terminal; we're still in the testing stages).

Have fun.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Web Ontology Language 48.7%
  • Python 47.7%
  • HTML 2.9%
  • Other 0.7%