amalgame/commit

added select/remove

authorJacco van Ossenbruggen
Sat Jun 22 20:35:42 2013 +0200
committerJacco van Ossenbruggen
Sat Jun 22 20:35:42 2013 +0200
commitb6e6378d202a60108455477a19679b190d07ae9e
tree141475213355f8dba1c8c9b588657981627f852d
parent369a28eeccc6c56ca2f23c9660ac0589fc2e41a7
Diff style: patch stat
diff --git a/lib/ag_modules/propvalue_select.pl b/lib/ag_modules/propvalue_select.pl
index 3c638a0..8dcaccd 100644
--- a/lib/ag_modules/propvalue_select.pl
+++ b/lib/ag_modules/propvalue_select.pl
@@ -10,10 +10,17 @@ parameter(property, uri, '',
 	  'RDF property by which to select the concepts').
 parameter(value, uri, '',
 	  'RDF object/property value by which to select the concepts').
+parameter(mode, oneof([select, remove]), select, 'select or remove concepts with this property/value pair').
 
 % a bit naive at the moment: we simply change the query that should be
 % done.
 
 selecter(Scheme, and((Scheme), propvalue(Property, Value)), Options) :-
+	option(mode(select), Options),
+	option(property(Property), Options),
+	option(value(Value), Options).
+
+selecter(Scheme, and((Scheme), not(propvalue(Property, Value))), Options) :-
+	option(mode(remove), Options),
 	option(property(Property), Options),
 	option(value(Value), Options).