#!/usr/bin/python2.4

#
# (c)2005 LIRIS - University Claude Bernard Lyon 1
# http://liris.cnrs.fr/
#
# Author: Pierre-Antoine CHAMPIN
# http://champin.net/
#
# This software is distributed under the terms of the GNU LGPL v2.1.
# See LICENSE.txt for more details.
#

from cross import httpd

ak = "file:example/students_ak.owl"

print """Cross example HTTPd running on http://localhost:8090/

schema      http://localhost:8090/schema.owl
data        http://localhost:8090/data.owl
ak          http://localhost:8090/ak.owl
"""

httpd.run (
    protocol = "http",
    # socket configuration
    host = "localhost",
    port = "8090",
    # database connection - customize this according to your needs
    driver  = "sqlite",
    connect_args = ["example/students.db",],
    connect_kw   = {},
    datasource_kw = {},
    ak_url = ak,
    verbose = 1,
)
