Skip to content

Commit

Permalink
Update empty scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
koenedaele committed May 22, 2020
1 parent e7393ea commit 440fbdc
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# -*- coding: utf-8 -*-
from skosprovider.registry import Registry
from skosprovider.uri import UriPatternGenerator
from skosprovider_sqlalchemy.providers import SQLAlchemyProvider

import logging
log = logging.getLogger(__name__)


def includeme(config):
skosregis = config.get_skos_registry()
def create_registry(request):
# create the SKOS registry
registry = Registry(instance_scope='threaded_thread')

# create your own providers
#
# TREES = SQLAlchemyProvider(
# {'id': 'TREES', 'conceptscheme_id': 1},
# request.db
# )

# Add your custom provider to the registry
# registry.register_provider(TREES)

# return the SKOS registry
return registry

0 comments on commit 440fbdc

Please sign in to comment.