From: Mike P. <mrp...@us...> - 2007-02-17 03:08:06
|
Update of /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24378/bigdata-rdf/src/test/com/bigdata/rdf/inf Modified Files: TestMagicSets.java AbstractInferenceEngineTestCase.java Added Files: TestTempStore.java Log Message: Converted entailment collection arrays to btrees. Index: AbstractInferenceEngineTestCase.java =================================================================== RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/AbstractInferenceEngineTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AbstractInferenceEngineTestCase.java 11 Feb 2007 17:34:24 -0000 1.4 --- AbstractInferenceEngineTestCase.java 17 Feb 2007 03:08:00 -0000 1.5 *************** *** 119,123 **** protected BufferMode getBufferMode() { ! return BufferMode.Transient; } --- 119,123 ---- protected BufferMode getBufferMode() { ! return BufferMode.Direct; } *************** *** 133,136 **** --- 133,138 ---- File file = new File(filename); + System.err.println( "store file: " + file.getAbsolutePath() ); + if(file.exists() && ! file.delete() ) { Index: TestMagicSets.java =================================================================== RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/TestMagicSets.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TestMagicSets.java 9 Feb 2007 20:18:56 -0000 1.4 --- TestMagicSets.java 17 Feb 2007 03:08:00 -0000 1.5 *************** *** 55,58 **** --- 55,59 ---- import org.openrdf.vocabulary.RDFS; + import com.bigdata.rdf.TempTripleStore; import com.bigdata.rdf.TripleStore; *************** *** 159,171 **** * Applies the base rule iff the {@link Magic} is matched. */ ! public int apply() { if(match()) { ! return rule.apply(); } ! return 0; } --- 160,172 ---- * Applies the base rule iff the {@link Magic} is matched. */ ! public Rule.Stats apply( TempTripleStore entailments ) { if(match()) { ! return rule.apply( entailments ); } ! return null; } --- NEW FILE: TestTempStore.java --- /** The Notice below must appear in each file of the Source Code of any copy you distribute of the Licensed Product. Contributors to any Modifications may add their own copyright notices to identify their own contributions. License: The contents of this file are subject to the CognitiveWeb Open Source License Version 1.1 (the License). You may not copy or use this file, in either source code or executable form, except in compliance with the License. You may obtain a copy of the License from http://www.CognitiveWeb.org/legal/license/ Software distributed under the License is distributed on an AS IS basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Copyrights: Portions created by or assigned to CognitiveWeb are Copyright (c) 2003-2003 CognitiveWeb. All Rights Reserved. Contact information for CognitiveWeb is available at http://www.CognitiveWeb.org Portions Copyright (c) 2002-2003 Bryan Thompson. Acknowledgements: Special thanks to the developers of the Jabber Open Source License 1.0 (JOSL), from which this License was derived. This License contains terms that differ from JOSL. Special thanks to the CognitiveWeb Open Source Contributors for their suggestions and support of the Cognitive Web. Modifications: */ /* * Created on Jan 26, 2007 */ package com.bigdata.rdf.inf; import java.io.File; import java.io.IOException; /** * Test suite for full forward closure. * * @author <a href="mailto:tho...@us...">Bryan Thompson</a> * @version $Id: TestTempStore.java,v 1.1 2007/02/17 03:08:00 mrpersonick Exp $ */ public class TestTempStore extends AbstractInferenceEngineTestCase { /** * */ public TestTempStore() { } /** * @param name */ public TestTempStore(String name) { super(name); } /** * Test of full forward closure. * * @throws IOException */ public void testFullForwardClosure01() throws IOException { /* * @todo this is committing the data first we do not want to do if we * know that we are closing the store. * * @todo use a dataset that we can add to CVS for a performance test and * hand-crafted data sets to test the rule implementations. */ store.loadData(new File("data/alibaba_v41.rdf"),""); // store.loadData(new File("data/nciOncology.owl"),""); store.fullForwardClosure(); store.commit(); } } |