# -*- config:utf-8 -*-
from whyis import autonomic, importer
from {{cookiecutter.project_slug}}.agent import *

SITE_NAME = "{{cookiecutter.project_name}}"
SITE_DESCRIPTION = '{{cookiecutter.project_short_description}}'
LOD_PREFIX = '{{cookiecutter.linked_data_prefix}}'
SECURITY_EMAIL_SENDER = "{{cookiecutter.author}} <{{cookiecutter.email}}>"
DEFAULT_LANGUAGE = 'en'
BASE_RATE_PROBABILITY = 0.5
VOCAB_FILE = "vocab.ttl"

# EMAIL CONFIGURATION
## MAIL_SERVER = "",
## MAIL_PORT = 587,
## MAIL_USE_TLS = True,
## MAIL_USE_SSL = False,
## MAIL_DEBUG = False,
## MAIL_USERNAME = '',
## MAIL_PASSWORD = '',
## DEFAULT_MAIL_SENDER = "{{cookiecutter.author}} <{{cookiecutter.email}}>",

NAMESPACES = [
    importer.LinkedData(
        prefix = LOD_PREFIX+'/doi/',
        url = 'http://dx.doi.org/%s',
        headers={'Accept':'text/turtle'},
        format='turtle',
        postprocess_update= '''insert {
            graph ?g {
                ?pub a <http://purl.org/ontology/bibo/AcademicArticle>.
            }
        } where {
            graph ?g {
                ?pub <http://purl.org/ontology/bibo/doi> ?doi.
            }
        }
        '''
    ),
    importer.LinkedData(
        prefix = LOD_PREFIX+'/dbpedia/',
        url = 'http://dbpedia.org/resource/%s',
        headers={'Accept':'text/turtle'},
        format='turtle',
        postprocess_update= '''insert {
            graph ?g {
                ?article <http://purl.org/dc/terms/abstract> ?abstract.
            }
        } where {
            graph ?g {
                ?article <http://dbpedia.org/ontology/abstract> ?abstract.
            }
        }
        '''
    )
]

INFERENCERS = {
    "SETLr": autonomic.SETLr(),
    "SETLMaker": autonomic.SETLMaker(),
    "SDDAgent": autonomic.SDDAgent()
}

INFERENCE_TASKS = [
]
