annotate peel/static-rdf-server.pl @ 27:d95e683fbd35 tip

Enable CORS on urispace redirects as well
author Chris Cannam
date Tue, 20 Feb 2018 14:52:02 +0000
parents a93fe6c02d20
children
rev   line source
Chris@7 1 #!/usr/local/bin/swipl
Chris@7 2
Chris@7 3 :- assertz(file_search_path(cliopatria, '/var/www/sites/ClioPatria')).
Chris@7 4
Chris@7 5 :- use_module(library(http/http_unix_daemon)).
Chris@21 6 :- use_module(library(http/http_log)).
Chris@7 7 :- use_module(cliopatria(cliopatria)).
Chris@7 8
Chris@7 9 :- rdf_db:rdf_load('static-rdf/peel.rdf').
Chris@7 10 :- rdf_db:rdf_load('static-rdf/dbpedia-johnpeel/dbpedia-johnpeel-agents.rdf').
Chris@7 11 :- rdf_db:rdf_load('static-rdf/dbpedia-johnpeel/dbpedia-johnpeel-works.rdf').
Chris@7 12
Chris@7 13 :- set_setting_default(http:prefix, '/bbc/peel/cliopatria').
Chris@21 14 :- set_setting_default(http:logfile, 'server.log').
Chris@26 15 :- set_setting_default(http:cors, [*]).
Chris@7 16
Chris@7 17 :- http_daemon([port(3030), fork(false)]).
Chris@7 18