Update of /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5139/src/test/com/bigdata/rdf/inf
Modified Files:
TestFullForwardClosure.java TestMagicSets.java
Log Message:
Fussed with the inference engine and got a modest performance boost. Rdfs5/11 needs to be rewritten to be smart about exploiting the bufferes triples, e.g., using a binary search on the buffer to locate matches in the self-join.
Index: TestFullForwardClosure.java
===================================================================
RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/TestFullForwardClosure.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestFullForwardClosure.java 12 Apr 2007 23:59:21 -0000 1.5
--- TestFullForwardClosure.java 13 Apr 2007 20:37:04 -0000 1.6
***************
*** 83,88 ****
* hand-crafted data sets to test the rule implementations.
*/
! store.loadData(new File("data/alibaba_v41.rdf"),"",false);
! // store.loadData(new File("data/nciOncology.owl"),"");
store.fullForwardClosure();
--- 83,88 ----
* hand-crafted data sets to test the rule implementations.
*/
! // store.loadData(new File("data/alibaba_v41.rdf"),"",false);
! store.loadData(new File("data/nciOncology.owl"),"",false);
store.fullForwardClosure();
Index: TestMagicSets.java
===================================================================
RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/TestMagicSets.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TestMagicSets.java 27 Mar 2007 14:35:08 -0000 1.7
--- TestMagicSets.java 13 Apr 2007 20:37:04 -0000 1.8
***************
*** 161,169 ****
* Applies the base rule iff the {@link Magic} is matched.
*/
! public Rule.Stats apply( TempTripleStore entailments ) {
if(match()) {
! return rule.apply( entailments );
}
--- 161,169 ----
* Applies the base rule iff the {@link Magic} is matched.
*/
! public Rule.Stats apply( Stats stats, SPO[] buffer, TempTripleStore tmpStore ) {
if(match()) {
! return rule.apply( stats, buffer, tmpStore );
}
|