amalgame/commit

exploit new Options parameter of concept_results to pass strategy to check concept mappings from non-materialized graphs

authorJacco van Ossenbruggen
Sun Aug 31 21:58:58 2014 +0200
committerJacco van Ossenbruggen
Sun Aug 31 21:58:58 2014 +0200
commit3eae356a89fbd55bdcab1cc0b262ec05d9f1eb83
tree0ca1c531836947832bdc7eff16e1b424c9a32e93
parent17f80f1658b68be4d4ef945dce3b0621476008ba
Diff style: patch stat
diff --git a/api/virtual_concepts.pl b/api/virtual_concepts.pl
index 4f81e67..8f1c41d 100644
--- a/api/virtual_concepts.pl
+++ b/api/virtual_concepts.pl
@@ -37,16 +37,20 @@ http_virtual_concepts(Request) :-
 			  graph(Graphs,
 				[zero_or_more,
 				 description('Named graph to restrict the concepts by')
-				])
+				]),
+			  strategy(Strategy,
+				   [description('Strategy to use to create the concepts')
+				   ])
 			]),
 	(   voc_property(Parent, virtual(false))
 	->  http_concepts(Request)
-	;   findall(Label-Concept, concept_of(Type, Parent, Query, Concept, Label), Concepts),
+	;   findall(Label-Concept,
+		    concept_of(Type, Parent, Query, Concept, Label), Concepts),
 	    sort(Concepts, Sorted),
 	    length(Sorted, Total),
 	    list_offset(Sorted, Offset, OffsetResults),
 	    list_limit(OffsetResults, Limit, LimitResults, _),
-	    concept_results(LimitResults, Graphs, JSONResults),
+	    concept_results(LimitResults, Graphs, JSONResults, [strategy(Strategy)]),
 	    reply_json(json([parent=Parent,
 			 offset=Offset,
 			 limit=Limit,