Mercurial > hg > dbtune-rdf-services
view 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 |
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/peel.rdf'). :- rdf_db:rdf_load('static-rdf/dbpedia-johnpeel/dbpedia-johnpeel-agents.rdf'). :- rdf_db:rdf_load('static-rdf/dbpedia-johnpeel/dbpedia-johnpeel-works.rdf'). :- set_setting_default(http:prefix, '/bbc/peel/cliopatria'). :- set_setting_default(http:logfile, 'server.log'). :- set_setting_default(http:cors, [*]). :- http_daemon([port(3030), fork(false)]).