Skip to main content

Integration of skosprovider in pyramid

Project description

pyramid_skosprovider

This library integrates skosprovider in a pyramid application.

https://travis-ci.org/koenedaele/pyramid_skosprovider.png

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


Download files

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

Source Distribution

pyramid_skosprovider-0.1.0.tar.gz (7.5 kB view hashes)

Uploaded Source

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