Mercurial > hg > dml-home
changeset 6:b39b8b8f7e83
Added cliopatria config directory.
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/010-packs.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,32 @@ +/* Generated file + This file defines the search-path for added packs +*/ + +:- module(conf_packs, []). + +:- multifile user:file_search_path/2. +:- dynamic user:file_search_path/2. +:- multifile cpack:registered_cpack/2. + +:- cpack_register(owl,'cpack/owl',[home_url('http://cliopatria.swi-prolog.org/packs/owl'),requires([])]). +:- cpack_register(jquery,'cpack/jquery',[home_url('http://cliopatria.swi-prolog.org/packs/jquery'),requires([])]). +:- cpack_register(statistics,'cpack/statistics',[home_url('http://cliopatria.swi-prolog.org/packs/statistics'),requires([])]). +:- cpack_register(foaf,'cpack/foaf',[home_url('http://cliopatria.swi-prolog.org/packs/foaf'),requires([])]). +:- cpack_register(foaf_user,'cpack/foaf_user',[home_url('http://cliopatria.swi-prolog.org/packs/foaf_user'),requires([foaf])]). +:- cpack_register(cloud,'cpack/cloud',[home_url('http://cliopatria.swi-prolog.org/packs/cloud'),requires([])]). +:- cpack_register(find_resource,'cpack/find_resource',[home_url('http://cliopatria.swi-prolog.org/packs/find_resource'),requires([])]). +:- cpack_register(skos,'cpack/skos',[home_url('http://cliopatria.swi-prolog.org/packs/skos'),requires([])]). +:- cpack_register(autocompletion,'cpack/autocompletion',[home_url('http://cliopatria.swi-prolog.org/packs/autocompletion'),requires([find_resource,skos])]). +:- cpack_register(musicont,'cpack/musicont',[]). +:- cpack_register(swic,'cpack/swic',[]). +:- cpack_register(p2r,'cpack/p2r',[]). +:- cpack_register(dbpedia,'cpack/dbpedia',[]). +:- cpack_register(swish,'cpack/swish',[home_url('http://cliopatria.swi-prolog.org/packs/swish'),requires([])]). +:- cpack_register(isearch,'cpack/isearch',[home_url('http://cliopatria.swi-prolog.org/packs/isearch'),requires([jquery,owl,statistics])]). +:- cpack_register(prov,'cpack/prov',[home_url('http://cliopatria.swi-prolog.org/packs/prov'),requires([])]). +:- cpack_register(xmlrdf,'cpack/xmlrdf',[home_url('http://cliopatria.swi-prolog.org/packs/xmlrdf'),requires([foaf,skos])]). +:- cpack_register('rdf-mt','cpack/rdf-mt',[home_url('http://cliopatria.swi-prolog.org/packs/rdf-mt'),requires([xmlrdf])]). +:- cpack_register(rdf_qa,'cpack/rdf_qa',[home_url('http://cliopatria.swi-prolog.org/packs/rdf_qa'),requires([])]). +:- cpack_register(yui3,'cpack/yui3',[home_url('http://cliopatria.swi-prolog.org/packs/yui3'),requires([])]). +:- cpack_register(skos_browser,'cpack/skos_browser',[home_url('http://cliopatria.swi-prolog.org/packs/skos_browser'),requires([skos,yui3])]). +:- cpack_register(dml,'cpack/dml',[]).
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/020-prefixes.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,21 @@ +:- module(conf_prefixes, []). +:- use_module(library(semweb/rdf_db)). + +/** <module> Configure prefixes (namespaces) + +Register additional prefixes. Registering a prefix serves three +purposes: + + * It can be used in code, e.g., rdf(X, rdf:type, rdfs:'Class') + * It can be used in the same fashion from the toplevel + * It is used by the web-services to present resources more compact. + +@see rdf_register_ns/2 and rdf_register_ns/3 +*/ + +% :- rdf_register_ns(cornetto, 'http://purl.org/vocabularies/cornetto/'). + +:- rdf_register_ns(geo, 'http://www.geonames.org/ontology#'). +:- rdf_register_ns(tags,'http://www.holygoat.co.uk/owl/redwood/0.1/tags/'). +:- rdf_register_ns(bio, 'http://purl.org/vocab/bio/0.1/'). +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/README.txt Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,21 @@ +---+ ClioPatria Application configuration + +This directory was automatically created by the ClioPatria setup script. +It can be filled with Prolog source-files that configure your +application for your specific needs. ClioPatria contains several example +config files, which are located in the directory: + + /home/dml/src/github/ClioPatria/config-available + +For example, to enhance the system setup for development, you may wish +to do: + + == + ln -s /home/dml/src/github/ClioPatria/config-available/debug.pl + == + +This application may provide additional application-specific example +configuration files. + +@see /home/dml/src/github/ClioPatria/config-available/README.txt +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/cache.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../../../src/github/ClioPatria/config-available/cache.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/cloud.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/cloud/config-available/cloud.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/config.done Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,35 @@ +/* Generated file + Keep track of installed config files +*/ + +file('debug.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('config.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('store.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('network.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('zlib.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('pengines.pl','/home/dml/src/github/ClioPatria/config-available',1407433651). +file('pirates.pl','cpack/pirates/config-available',1407434336). +file('jquery.pl','cpack/jquery/config-available',1407435716). +file('jquery.pl','cpack/jquery/config-available',1407435728). +file('isearch.pl','cpack/isearch/config-available',1407435728). +file('foaf_user.pl','cpack/foaf_user/config-available',1407435775). +file('jquery.pl','cpack/jquery/config-available',1407435775). +file('isearch.pl','cpack/isearch/config-available',1407435775). +file('cpack_repository.pl','cpack/cpack_repository/config-available',1407435775). +file('cpack_server.pl','cpack/cpack_repository/config-available',1407435775). +file('cloud.pl','cpack/cloud/config-available',1407435816). +file('find_resource.pl','cpack/find_resource/config-available',1407435827). +file('skos.pl','cpack/skos/config-available',1407435827). +file('autocompletion.pl','cpack/autocompletion/config-available',1407435827). +file('swish.pl','cpack/swish/config-available',1416247146). +file('jquery.pl','cpack/jquery/config-available',1417175604). +file('isearch.pl','cpack/isearch/config-available',1417175604). +file('prov.pl','cpack/prov/config-available',1417175700). +file('skos.pl','cpack/skos/config-available',1417175715). +file('xmlrdf.pl','cpack/xmlrdf/config-available',1417175715). +file('rdf-mt.pl','cpack/rdf-mt/config-available',1417175715). +file('rdf_qa.pl','cpack/rdf_qa/config-available',1417175721). +file('yui3.pl','cpack/yui3/config-available',1417175790). +file('skos.pl','cpack/skos/config-available',1417175817). +file('yui3.pl','cpack/yui3/config-available',1417175817). +file('skos_browser.pl','cpack/skos_browser/config-available',1417175817).
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/config.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../../../src/github/ClioPatria/config-available/config.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/debug.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,55 @@ +:- module(conf_debug, [ tmon/0 ]). +:- use_module(library(debug)). + +/** <module> Set options for development + +This module make ClioPatria more suitable for development. In +particular, it implements the following methods: + + * Load library(http/http_error), which causes uncaught Prolog + exceptions to produce an HTML page holding a stack-trace. + * Load library(semweb/rdf_portray), which prints RDF resources + in a more compact way. + * Load library(semweb/rdf_db) into the module =user=. This allows + usage of rdf/3, rdf_load/1, etc. from the toplevel without + specifying the module. + * Use debug/1 on the _topic_ http(request), which causes the + toplevel to print basic information on the HTTP requests processed. + Using copy/paste of the HTTP path, one can assemble a command that + edits the implementation of a page. + + == + ?- edit('/http/path/to/handler'). + == + * Define tmon/0 that brings up a graphical tool showing thread + activity. + +@see http://www.swi-prolog.org/howto/http/Developing.html +*/ + +:- use_module(library(http/http_error)). % Print stack on error +:- use_module(library(semweb/rdf_portray)). % Print e.g., rdf:type +:- use_module(user:library(semweb/rdf_db)). % Allow ?- rdf(S,P,O). in toplevel + +:- debug_message_context(+time). % Add time to debug message +%:- debug(http(request)). % Print request and reply + +%% prepare_editor +% +% Start XPCE as edit requests comming from the document server can +% only be handled if XPCE is running. + +prepare_editor :- + current_prolog_flag(editor, pce_emacs), !, + start_emacs. +prepare_editor. + +:- prepare_editor. + +%% tmon +% +% Show the graphical thread-monitor. Can be useful to examine and +% debug active goals. + +tmon :- + call(prolog_ide(thread_monitor)).
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/dml.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/dml/config-available/dml.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/find_resource.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/find_resource/config-available/find_resource.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/foaf_user.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/foaf_user/config-available/foaf_user.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/isearch.pl.disabled Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,30 @@ +:- module(conf_isearch, []). +:- use_module(library(http/http_dispatch)). +:- use_module(isearch(applications/isearch)). +:- use_module(cliopatria(hooks)). + +/** <module> Interactive search + +Provide interactive search based on property-chains and multi-facetted +browsing. + +@author Michiel Hildebrand +*/ + +% Hijack the search-field, redirecting the queries to the interactive +% search page. + +% SA- disabled +% :- http_handler(cliopatria(isearch_literal), +% isearch_page([ header(false), +% query_type(literal) +% ]), +% [id(list_triples_with_literal), priority(10)]). +% :- http_handler(cliopatria(isearch), +% isearch_page([ header(false) +% ]), +% [id(search), priority(10)]). + + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/jquery.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/jquery/config-available/jquery.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/network.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../../../src/github/ClioPatria/config-available/network.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/pengines.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../../../src/github/ClioPatria/config-available/pengines.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/prov.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/prov/config-available/prov.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/rdf-mt.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/rdf-mt/config-available/rdf-mt.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/rdf_qa.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/rdf_qa/config-available/rdf_qa.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/skos.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/skos/config-available/skos.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/skos_browser.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,20 @@ +:- module(conf_skos_browser, []). + +:- use_module(library(semweb/rdf_library)). +:- use_module(library(skos_schema)). +:- use_module(cliopatria(hooks)). + +/** <module> SKOS vocabulary browser +*/ + +http:location(skosbrowser, cliopatria(skos/browse), []). +http:location(skosapi, cliopatria(skos/api), []). + +:- use_module(api(skos_concepts)). +:- use_module(applications(skos_browser)). + +% I rather have the application do stuff like this: +% :- rdf_attach_library(vocs). + +% SA - Added menu item for browser +cliopatria:menu_item(900=places/http_skos_browser, 'SKOS Concept browser').
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/swish.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/swish/config-available/swish.pl \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/var/dml/config-enabled/xmlrdf.pl Sun Jan 18 21:05:38 2015 +0000 @@ -0,0 +1,1 @@ +../cpack/xmlrdf/config-available/xmlrdf.pl \ No newline at end of file