Skip to main content

No project description provided

Project description

PyPI version Build Status badge

libOmexMeta

LibOMEXmeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models. The COMBINE modeling community has developed consensus around how best to annotate models and how to package these models into archives (OMEX files) that include the modeling source code, the annotations, files that describe parameters and settings needed for simulations (in a SEDML file), and potentially the data used for these modeling efforts. This consensus was initially described in the publication "Harmonizing semantic annotations for computational models in biology" (Briefings in Bioinformatics, 2018).

The goal of semantic annotations are to make explicit the biology that underlies the semantics of biosimulation models. By using standard knowledge resources about biology and biological processes (such as CheBI, Uniprot, and ontologies of anatomy), we can make the models more understandable, reusable and reproducible. More information can be found at the OMEX Metadata Specification web page.

LibOMEXmeta is a C++ library with a C interface that is used to build a Python front end (pyomexmeta). LibOMEXmeta uses RDF as a framework for representing these annotations. At the core of libOmexMeta are the Redland libraries: - raptor2 for parsing RDF syntax into RDF graphs and serializing the output - rasqal for querying RDF graphs - librdf as a front end to raptor2 and rasqal and for triple stores.

Features

Parsers

  • rdfxml, ntriples, turtle, trig, rss-tag-soup, grddl, guess, rdfa, nquads, guess

Serializers

  • ntriples, turtle, rdfxml-xmp, rdfxml-abbrev, rdfxml, rss-1.0, atom, dot, json-triples, json, nquads, html

Querying

  • Languages
  • Query result formats:
    • xml, json, table, csv, mkr, tsv, html, turtle, rdfxml,

Storages modules

  • hashes, memory, file, mysql, sqlite, uri, tstore (may be supported on request), postgresql (supported but not tested), virtuoso (may be supported on request),

Platform

  • Windows
  • Linux Ubuntu 18.04, untested on other flavours.

libOmexMeta has not been tested on a Mac.

Documentation

https://sys-bio.github.io/libOmexMeta/

Note: documentation is being written presently

Installation

Python

Use pip.

$ pip install pyomexmeta
# verify its worked
$ ipython -c "import pyomexmeta"

Python 3 only - if you're not using Python 3, I recommend you upgrade.

Docker

You can get a docker image using

$ docker pull ciaranwelsh/libomexmeta:v1.1.0

This is an Ubuntu 18.04 based container that has libOmexMeta prebuilt and installed under /libOmexMeta/install-docker. See dockerfile for full set of commands to build libOmexMeta on ubuntu. Conda is preconfigured and pyomexmeta is installed.

Downloading Binaries

You can download binaries from the releases tab

Building from source

See the azure-pipelines.yml file to see how we build libOmexMeta on Azure Pipelines.

We use vcpkg for acquiring the dependencies that we need on all platforms. Therefore, the following works on windows, linux and macOS. Note that on linux you need gcc-9 or greater. libOmexMeta was developed with gcc-10.2.

# set variable to hold vcpkg location: 
VCPKG_INSTALL_PREFIX="/full/path/to/vcpkg"
git clone https://github.com/microsoft/vcpkg.git $VCPKG_INSTALL_PREFIX
cd $VCPKG_INSTALL_PREFIX
./bootstrap-vcpkg.sh
vcpkg integrate install
vcpkg install curl pcre openssl yajl sqlite3 liblzma

Now build libOmexMeta

git clone https://github.com/sys-bio/libOmexMeta.git
cd libOmexMeta
mkdir build
cd build
cmake -DVCPKG_ROOT=$VCPKG_INSTALL_PREFIX -DCMAKE_INSTALL_PREFIX="/full/path/to/where/you/want/to/install/libomexmeta" -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON=ON ..
cmake --build . --target install --config Release -j 12

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyomexmeta-1.2.6-cp39-cp39-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pyomexmeta-1.2.6-cp39-cp39-manylinux2014_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.9

pyomexmeta-1.2.6-cp39-cp39-macosx_10_15_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

pyomexmeta-1.2.6-cp38-cp38-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pyomexmeta-1.2.6-cp38-cp38-manylinux2014_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.8

pyomexmeta-1.2.6-cp38-cp38-macosx_10_15_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

pyomexmeta-1.2.6-cp37-cp37m-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pyomexmeta-1.2.6-cp37-cp37m-macosx_10_15_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

pyomexmeta-1.2.6-cp37-cp37-manylinux2014_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.7

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page