Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cthoyt/selventa-knowledge
Updated versions of the Selventa Small and Large Corpus
https://github.com/cthoyt/selventa-knowledge
Last synced: about 1 month ago
JSON representation
Updated versions of the Selventa Small and Large Corpus
- Host: GitHub
- URL: https://github.com/cthoyt/selventa-knowledge
- Owner: cthoyt
- License: mit
- Created: 2019-07-29T17:44:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-12T16:23:15.000Z (about 1 year ago)
- Last Synced: 2024-09-14T22:26:37.748Z (about 2 months ago)
- Language: Python
- Size: 122 MB
- Stars: 0
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Selventa Knowledge
==================
Updated versions of the Selventa Small and Large CorpusLicenses
--------
- Code in this repository is licensed under the MIT License
- Both the Selvanta Small Corpus and Selventa Large Corpus are distributed under
the Creative Commons Attribution-Non-Commercial-ShareAlike 3.0 Unported
License.Installation
------------
``selventa_knowledge`` can be installed from `PyPI `_ with:.. code-block:: sh
$ pip install selventa-knowledge
``selventa_knowledge`` can be installed from `GitHub `_ with:
.. code-block:: sh
$ pip install git+https://github.com/cthoyt/selventa-knowledge.git
Usage
-----
The combine graph can be loaded with:.. code-block:: python
>>> import selventa_knowledge
>>> graph = selventa_knowledge.get_graph()If you need granularity, you can load each graph in a dictionary where
all of the names of the files creating each graph are the keys and the
values are also BEL graphs with:.. code-block:: python
>>> import selventa_knowledge
>>> graphs = selventa_knowledge.get_graphs()The functions from each of the previous examples are simply
exposing the bound functions from the BELRepository object,
which can be accessed with:.. code-block:: python
>>> import selventa_knowledge
>>> repository = selventa_knowledge.repositoryIf you want to use this knowledge with INDRA, there's a method:
.. code-block:: python
>>> import selventa_knowledge
>>> statements = selventa_knowledge.repository.get_indra_statements()More BEL Content
----------------
See `A Listing of Publicly Available Content in the Biological Expression Language (BEL)
`_ on Charles Tapley Hoyt's blog
for more BEL content.