rdf_qa/commit

minor

authorJacco van Ossenbruggen
Tue Jan 31 13:57:34 2012 +0100
committerJacco van Ossenbruggen
Tue Jan 31 13:57:34 2012 +0100
commit21e56af83f0f7af675c72429057e85056c661b6a
tree0a79bd8f9f3fb13aaca52fb31949c55f06d78b67
parentd716a2b472d3e96400c09da197f9273aa3070c99
Diff style: patch stat
diff --git a/components/qa_default_heuristics.pl b/components/qa_default_heuristics.pl
index 41cba13..3d0f5e6 100644
--- a/components/qa_default_heuristics.pl
+++ b/components/qa_default_heuristics.pl
@@ -1,3 +1,4 @@
 :- module(qa_defaults, []).
 
 :- use_module(qa_cycle_prop).
+:- use_module(qa_empty_repo).
diff --git a/components/qa_empty_repo.pl b/components/qa_empty_repo.pl
new file mode 100644
index 0000000..0c49e2f
--- /dev/null
+++ b/components/qa_empty_repo.pl
@@ -0,0 +1,13 @@
+:- module(qa_empty_repo, []).
+
+:- use_module(qa_heuristics).
+:- use_module(library(semweb/rdf_db)).
+:- use_module(library(http/html_write)).
+
+
+qa:rdf_warning(qa_empty_repo, R) :-
+	\+ rdf_graph(_),
+	rdf_equal(R, rdf:'Resource').
+
+qa:class_label(qa_empty_repo) -->
+        html(['No RDF data loaded, please load using the "Repository" menu entries.']).