waisda/commit

add load_data/0

authorMichiel Hildebrand
Mon Mar 7 12:19:55 2011 +0100
committerMichiel Hildebrand
Mon Mar 7 12:19:55 2011 +0100
commite5704350398f973215d228e06f55549bcdf32ae0
tree17bcedb364b255f4ac3adfa3c1a1a6a8fb3a6b90
parent2c517ba85f216f5ddc87181b2589be696c89ffaa
Diff style: patch stat
diff --git a/config-available/waisda.pl b/config-available/waisda.pl
index c6382c7..3a5eb3a 100644
--- a/config-available/waisda.pl
+++ b/config-available/waisda.pl
@@ -1,24 +1,26 @@
-:- module(conf_waisda, []).
+:- module(conf_waisda,
+	  [ load_data/0
+	  ]).
 
 :- use_module(library(http/http_dispatch)).
 :- use_module(library(semweb/rdf_zlib_plugin)).
 :- use_module(library(semweb/rdf_library)).
 :- use_module(config_available(skos)).
+:- use_module(config_available(yaz)).
 :- use_module(applications(yaz_user)).
 
 /** <module> Management of user-generated metadata for Waisda video labeling game
 */
 
 /* RDF data
+   We assume the Waisda rdf is available at ../rdf
    We assume vocabularies are available above the root directory in ../vocs
 */
 
-:- rdf_attach_library(waisda(rdf)).
+:- rdf_attach_library('../rdf').
+:- rdf_attach_library('../vocs').
 
-user:file_search_path(rdf, '../vocs').
-
-
-/* Home page 
+/* Home page
    We set it to the YAZ start page
 */
 
@@ -26,3 +28,14 @@ user:file_search_path(rdf, '../vocs').
 
 home(Request) :-
         http_yaz_home(Request).
+
+
+%%	load_data
+%
+%	Load all data to run the Waisda UGM managment demo.
+
+load_data :-
+	rdf_load_library(waisdadump),
+	rdf_load_library(gtaa),
+	rdf_load_library(cornetto).
+