NIHVIVO-1333 Lots of work on display of ontology properties on individual page (nothing visible yet).

This commit is contained in:
rjy7 2010-12-01 22:28:54 +00:00
parent f00e8bf585
commit 10dc4d3e1f
30 changed files with 775 additions and 221 deletions

View file

@ -3,7 +3,9 @@
package edu.cornell.mannlib.vitro.webapp.dao.jena;
import org.apache.log4j.Level;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.hp.hpl.jena.ontology.DatatypeProperty;
@ -11,10 +13,12 @@ import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntModelSpec;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler;
import com.hp.hpl.jena.vocabulary.OWL;
import com.hp.hpl.jena.vocabulary.RDF;
import com.hp.hpl.jena.vocabulary.RDFS;
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
import edu.cornell.mannlib.vitro.webapp.beans.DataProperty;
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
@ -23,8 +27,8 @@ import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
*
*/
public class DataPropertyDaoJenaTest {
public class DataPropertyDaoJenaTest extends AbstractTestClass {
@Test
// Test that the DataPropertyDaoJena::updateDataProperty method will only update the jena model for
// those properties in DataProperty that have a different value from what is already in the

View file

@ -2,23 +2,27 @@
package edu.cornell.mannlib.vitro.webapp.dao.jena;
import org.apache.log4j.Level;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntModelSpec;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler;
import com.hp.hpl.jena.vocabulary.RDFS;
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
import edu.cornell.mannlib.vitro.webapp.beans.ObjectProperty;
import edu.cornell.mannlib.vitro.webapp.dao.InsertException;
import edu.cornell.mannlib.vitro.webapp.dao.VitroVocabulary;
import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory;
public class ObjectPropertyDaoJenaTest {
public class ObjectPropertyDaoJenaTest extends AbstractTestClass {
@Test
public void testCollateBySubclass(){
/* Check that we can save collateBySubclass */