view classical/static-rdf-server.pl @ 21:9e70cd92f14e

Add CMN; add logging outputs
author Chris Cannam
date Wed, 08 Nov 2017 11:56:02 +0000
parents 94ae77e787b8
children a93fe6c02d20
line wrap: on
line source
#!/usr/local/bin/swipl

:- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')).

:- use_module(library(http/http_unix_daemon)).
:- use_module(library(http/http_log)).
:- use_module(cliopatria(cliopatria)).

:- rdf_db:rdf_load('static-rdf/classicaldb-20091211-d.ttl').

:- set_setting_default(http:prefix, '/classical/cliopatria').
:- set_setting_default(http:logfile, 'server.log').

:- http_daemon([port(2145), fork(false)]).