rdf_qa/commit

added object only heuristic

authorJacco van Ossenbruggen
Tue May 28 20:34:01 2013 +0200
committerJacco van Ossenbruggen
Tue May 28 20:34:01 2013 +0200
commit3fcfd401a05db2415327cd7a3a7e39374ac106d5
treee03077f9ce012d88274a485d6d3896d3abb0fe09
parent5cefc38a0cdeae4e478f46f4659119c49252fbae
Diff style: patch stat
diff --git a/components/qa_cycle_prop.pl b/components/qa_cycle_prop.pl
index f329c34..7e77e86 100644
--- a/components/qa_cycle_prop.pl
+++ b/components/qa_cycle_prop.pl
@@ -1,4 +1,4 @@
-:- module(cycle_prop, []).
+:- module(qa_cycle_prop, []).
 
 :- use_module(qa_heuristics).
 :- use_module(library(semweb/rdf_db)).
diff --git a/components/qa_default_heuristics.pl b/components/qa_default_heuristics.pl
index 0203d61..71bd0b5 100644
--- a/components/qa_default_heuristics.pl
+++ b/components/qa_default_heuristics.pl
@@ -2,4 +2,5 @@
 
 :- use_module(qa_cycle_prop).
 :- use_module(qa_empty_repo).
+:- use_module(qa_object_only).
 :- use_module(qa_no_label).
diff --git a/components/qa_object_only.pl b/components/qa_object_only.pl
new file mode 100644
index 0000000..bd952de
--- /dev/null
+++ b/components/qa_object_only.pl
@@ -0,0 +1,13 @@
+:- module(qa_object_only, []).
+
+:- use_module(qa_heuristics).
+:- use_module(library(semweb/rdf_db)).
+:- use_module(library(http/html_write)).
+
+
+qa:rdf_warning(object_only, rdf(S,P,O)) :-
+        rdf(S, P, O),
+	\+ O = literal(_),
+        \+ rdf_subject(O).
+qa:class_label(object_only) -->
+        html(['Triples with ', i('Object that is never a Subject')]).