Integration of skosprovider in pyramid
Project description
pyramid_skosprovider
This library integrates skosprovider in a pyramid application.
Installation
To install pyramid_skosprovider, use pip
pip install pyramid_skosprovider
Setup
To activate pyramid_skosprovider
config = Configurator()
config.include('pyramid_skosprovider')
This will create a skosprovider.registry and add it to the pyramid application registry.
Usage
To get a skosprovider.registry instance, call get_skos_registry with the current application registry. Eg. in a view:
from pyramid_skosprovider import get_skos_registry
def my_view(request):
skos = get_skos_registry(request.registry)
providers = skos.get_providers()
# ...
Exposed information
This library takes your skosproviders and makes them available as REST services. The following API is planned:
GET /conceptschemes: Get all registered concept schemes.
GET /conceptschemes/{scheme_id}: Get information about a concept scheme.
GET /conceptschemes/{scheme_id}/concepts: Search for concepts in a scheme.
GET /conceptschemes/{scheme_id}/concepts/{concept_id}: Get information about a concept
GET /concepts: Search for concepts in one or more schemes.
GET /concepts/{scheme_id}/{concept_id}: Get information about a concept, is an alias for /conceptschemes/{scheme_id}/concepts/{concept_id}.
History
0.1.0 (2013-05-16)
Initial version
Includes json views based on the interfaces skosprovider offers.
Adds a skosprovider registry to the pyramid request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for pyramid_skosprovider-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c801036692cf68a6b7b40cf48531739699127997eb9fa844efb781f133b100f |
|
MD5 | c45ebe6a085a757ba81a25e807d191d4 |
|
BLAKE2b-256 | f8f47f156d6d68271f0544befa92c95bfdf53c8037557f67f14c086bcf7cfb9b |