You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/11/19 20:53:55 UTC
svn commit: r1411372 [2/4] - in /jena/trunk/jena-core: ./
src/main/java/com/hp/hpl/jena/n3/ src/main/java/com/hp/hpl/jena/ontology/
src/main/java/com/hp/hpl/jena/ontology/daml/
src/main/java/com/hp/hpl/jena/ontology/event/
src/main/java/com/hp/hpl/jena...
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestClassExpression.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestClassExpression.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestClassExpression.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestClassExpression.java Mon Nov 19 19:53:42 2012
@@ -72,7 +72,7 @@ public class TestClassExpression
@Override
public OntTestCase[] getTests() {
return new OntTestCase[] {
- new OntTestCase( "OntClass.super-class", true, true, true, true ) {
+ new OntTestCase( "OntClass.super-class", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -99,7 +99,7 @@ public class TestClassExpression
assertEquals( "Cardinality should be 0", 0, A.getCardinality( prof.SUB_CLASS_OF() ) );
}
},
- new OntTestCase( "OntClass.sub-class", true, true, true, true ) {
+ new OntTestCase( "OntClass.sub-class", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -126,7 +126,7 @@ public class TestClassExpression
assertTrue( "A should not have sub-class C", !A.hasSubClass( C, false ) );
}
},
- new OntTestCase( "OntClass.equivalentClass", true, true, true, false ) {
+ new OntTestCase( "OntClass.equivalentClass", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -153,7 +153,7 @@ public class TestClassExpression
assertEquals( "Cardinality should be 0", 0, A.getCardinality( prof.EQUIVALENT_CLASS() ) );
}
},
- new OntTestCase( "OntClass.disjointWith", true, false, true, false ) {
+ new OntTestCase( "OntClass.disjointWith", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -180,7 +180,7 @@ public class TestClassExpression
assertEquals( "Cardinality should be 0", 0, A.getCardinality( prof.DISJOINT_WITH() ) );
}
},
- new OntTestCase( "EnumeratedClass.oneOf", true, false, true, false ) {
+ new OntTestCase( "EnumeratedClass.oneOf", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -210,7 +210,7 @@ public class TestClassExpression
assertTrue( "Should not have b as an enum value", !A.hasOneOf( b ) );
}
},
- new OntTestCase( "IntersectionClass.intersectionOf", true, true, true, false ) {
+ new OntTestCase( "IntersectionClass.intersectionOf", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -244,7 +244,7 @@ public class TestClassExpression
assertTrue( "Should not have C as an operand", !A.hasOperand( C ) );
}
},
- new OntTestCase( "UnionClass.unionOf", true, false, true, false ) {
+ new OntTestCase( "UnionClass.unionOf", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -278,7 +278,7 @@ public class TestClassExpression
assertTrue( "Should not have C as an operand", !A.hasOperand( C ) );
}
},
- new OntTestCase( "ComplementClass.complementOf", true, false, true, false ) {
+ new OntTestCase( "ComplementClass.complementOf", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -314,7 +314,7 @@ public class TestClassExpression
assertTrue( "Should not have C as an operand", !A.hasOperand( C ) );
}
},
- new OntTestCase( "Restriction.onProperty", true, true, true, false ) {
+ new OntTestCase( "Restriction.onProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -342,7 +342,7 @@ public class TestClassExpression
assertTrue( "Should not have q as on property", !A.onProperty( q ) );
}
},
- new OntTestCase( "AllValuesFromRestriction.allValuesFrom", true, true, true, false ) {
+ new OntTestCase( "AllValuesFromRestriction.allValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -370,7 +370,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.ALL_VALUES_FROM() ));
}
},
- new OntTestCase( "AllValuesFromRestriction.allValuesFrom.datatype", true, true, true, false ) {
+ new OntTestCase( "AllValuesFromRestriction.allValuesFrom.datatype", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -396,7 +396,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.ALL_VALUES_FROM() ));
}
},
- new OntTestCase( "AllValuesFromRestriction.allValuesFrom.literal", true, true, true, false ) {
+ new OntTestCase( "AllValuesFromRestriction.allValuesFrom.literal", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -410,7 +410,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 1 ", 1, A.getCardinality( prof.ALL_VALUES_FROM() ));
}
},
- new OntTestCase( "AllValuesFromRestriction.allValuesFrom.datarange", true, false, false, false ) {
+ new OntTestCase( "AllValuesFromRestriction.allValuesFrom.datarange", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -433,7 +433,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.ALL_VALUES_FROM() ));
}
},
- new OntTestCase( "HasValueRestriction.hasValue", true, false, true, false ) {
+ new OntTestCase( "HasValueRestriction.hasValue", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -465,7 +465,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.HAS_VALUE() ));
}
},
- new OntTestCase( "SomeValuesFromRestriction.someValuesFrom", true, true, true, false ) {
+ new OntTestCase( "SomeValuesFromRestriction.someValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -493,7 +493,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.SOME_VALUES_FROM() ));
}
},
- new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.datatype", true, true, true, false ) {
+ new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.datatype", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -519,7 +519,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.SOME_VALUES_FROM() ));
}
},
- new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.literal", true, true, true, false ) {
+ new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.literal", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -533,7 +533,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 1 ", 1, A.getCardinality( prof.SOME_VALUES_FROM() ));
}
},
- new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.datarange", true, false, false, false ) {
+ new OntTestCase( "SomeValuesFromRestriction.SomeValuesFrom.datarange", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -556,7 +556,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.SOME_VALUES_FROM() ));
}
},
- new OntTestCase( "CardinalityRestriction.cardinality", true, true, true, false ) {
+ new OntTestCase( "CardinalityRestriction.cardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -583,7 +583,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.CARDINALITY() ));
}
},
- new OntTestCase( "MinCardinalityRestriction.minCardinality", true, true, true, false ) {
+ new OntTestCase( "MinCardinalityRestriction.minCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -610,7 +610,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.MIN_CARDINALITY() ));
}
},
- new OntTestCase( "MaxCardinalityRestriction.maxCardinality", true, true, true, false ) {
+ new OntTestCase( "MaxCardinalityRestriction.maxCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -637,7 +637,7 @@ public class TestClassExpression
assertEquals( "cardinality should be 0 ", 0, A.getCardinality( prof.MAX_CARDINALITY() ));
}
},
- new OntTestCase( "QualifiedRestriction.hasClassQ", false, false, true, false ) {
+ new OntTestCase( "QualifiedRestriction.hasClassQ", false, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p" );
@@ -662,7 +662,7 @@ public class TestClassExpression
assertFalse( "Should not be a qualified restriction", m.getResource( NS + nameA ).canAs( QualifiedRestriction.class ) );
}
},
- new OntTestCase( "CardinalityQRestriction.cardinality", false, false, true, false ) {
+ new OntTestCase( "CardinalityQRestriction.cardinality", false, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p" );
@@ -685,7 +685,7 @@ public class TestClassExpression
assertFalse( "Should not be a qualified cardinality restriction", m.getResource( NS + "A" ).canAs( CardinalityQRestriction.class ) );
}
},
- new OntTestCase( "MinCardinalityQRestriction.minCardinality", false, false, true, false ) {
+ new OntTestCase( "MinCardinalityQRestriction.minCardinality", false, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p" );
@@ -708,7 +708,7 @@ public class TestClassExpression
assertFalse( "Should not be a qualified min cardinality restriction", m.getResource( NS + "A" ).canAs( MinCardinalityQRestriction.class ) );
}
},
- new OntTestCase( "MaxCardinalityQRestriction.maxCardinality", false, false, true, false ) {
+ new OntTestCase( "MaxCardinalityQRestriction.maxCardinality", false, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p" );
@@ -733,10 +733,10 @@ public class TestClassExpression
},
// from file
- new OntTestCase( "OntClass.subclass.fromFile", true, true, true, true ) {
+ new OntTestCase( "OntClass.subclass.fromFile", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/ClassExpression/test.rdf";
m.read( fileName );
@@ -747,10 +747,10 @@ public class TestClassExpression
iteratorTest( B.listSubClasses(), new Object[] {A} );
}
},
- new OntTestCase( "OntClass.equivalentClass.fromFile", true, true, true, false ) {
+ new OntTestCase( "OntClass.equivalentClass.fromFile", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/ClassExpression/test.rdf";
m.read( fileName );
@@ -760,10 +760,10 @@ public class TestClassExpression
assertTrue( "A should be equiv to C", A.hasEquivalentClass( C ) );
}
},
- new OntTestCase( "OntClass.disjoint.fromFile", true, false, true, false ) {
+ new OntTestCase( "OntClass.disjoint.fromFile", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/ClassExpression/test.rdf";
m.read( fileName );
@@ -775,7 +775,7 @@ public class TestClassExpression
},
// type testing
- new OntTestCase( "OntClass.isEnumeratedClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.isEnumeratedClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -790,7 +790,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.isIntersectionClass", true, true, true, false ) {
+ new OntTestCase( "OntClass.isIntersectionClass", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -804,7 +804,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.isUnionClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.isUnionClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -818,7 +818,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.isComplementClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.isComplementClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -831,7 +831,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.isRestriction", true, true, true, false ) {
+ new OntTestCase( "OntClass.isRestriction", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createRestriction( null );
@@ -845,7 +845,7 @@ public class TestClassExpression
},
// conversion
- new OntTestCase( "OntClass.toEnumeratedClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.toEnumeratedClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createClass( NS + "A" );
@@ -868,7 +868,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.toIntersectionClass", true, true, true, false ) {
+ new OntTestCase( "OntClass.toIntersectionClass", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createClass( NS + "A" );
@@ -890,7 +890,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.toUnionClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.toUnionClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createClass( NS + "A" );
@@ -912,7 +912,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.toComplementClass", true, false, true, false ) {
+ new OntTestCase( "OntClass.toComplementClass", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createClass( NS + "A" );
@@ -933,7 +933,7 @@ public class TestClassExpression
assertTrue( "restriction test not correct", !a.isRestriction() );
}
},
- new OntTestCase( "OntClass.toRestriction", true, true, true, false ) {
+ new OntTestCase( "OntClass.toRestriction", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass a = m.createClass( NS + "A" );
@@ -957,7 +957,7 @@ public class TestClassExpression
// restriction type testing
- new OntTestCase( "Restriction.isAllValuesFrom", true, true, true, false ) {
+ new OntTestCase( "Restriction.isAllValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -972,7 +972,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.isSomeValuesFrom", true, true, true, false ) {
+ new OntTestCase( "Restriction.isSomeValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -987,7 +987,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.isHasValue", true, false, true, false ) {
+ new OntTestCase( "Restriction.isHasValue", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass b = m.createClass( NS + "B" );
@@ -1003,7 +1003,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.isCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.isCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1017,7 +1017,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.isMinCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.isMinCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1031,7 +1031,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.isMaxCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.isMaxCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1047,7 +1047,7 @@ public class TestClassExpression
},
// restriction conversions
- new OntTestCase( "Restriction.convertToAllValuesFrom", true, true, true, false ) {
+ new OntTestCase( "Restriction.convertToAllValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1071,7 +1071,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.convertToSomeValuesFrom", true, true, true, false ) {
+ new OntTestCase( "Restriction.convertToSomeValuesFrom", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1095,7 +1095,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.convertToHasValue", true, false, true, false ) {
+ new OntTestCase( "Restriction.convertToHasValue", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1120,7 +1120,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.convertCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.convertCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1143,7 +1143,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.convertMinCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.convertMinCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1166,7 +1166,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", !a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "Restriction.convertMaxCardinality", true, true, true, false ) {
+ new OntTestCase( "Restriction.convertMaxCardinality", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -1189,7 +1189,7 @@ public class TestClassExpression
assertTrue( "max cardinality test not correct", a.isMaxCardinalityRestriction() );
}
},
- new OntTestCase( "OntClass.listInstances", true, true, true, true ) {
+ new OntTestCase( "OntClass.listInstances", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -1204,7 +1204,7 @@ public class TestClassExpression
iteratorTest( A.listInstances(), new Object[] {a0, a1, b0} );
}
},
- new OntTestCase( "OntClass.listDefinedProperties", true, true, true, true ) {
+ new OntTestCase( "OntClass.listDefinedProperties", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -1235,7 +1235,7 @@ public class TestClassExpression
}
}
},
- new OntTestCase( "OntClass.listDefinedProperties.notAll", true, true, true, true ) {
+ new OntTestCase( "OntClass.listDefinedProperties.notAll", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -1257,7 +1257,7 @@ public class TestClassExpression
assertNotNull( "declared property should be an ont prop", C.listDeclaredProperties( false ).next() );
}
},
- new OntTestCase( "DataRange.oneOf", true, false, false, false ) {
+ new OntTestCase( "DataRange.oneOf", true, false, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Literal x = m.createTypedLiteral( 42 );
@@ -1292,7 +1292,7 @@ public class TestClassExpression
// Removal
- new OntTestCase( "Remove intersection", true, true, true, false ) {
+ new OntTestCase( "Remove intersection", true, true, false ) {
@Override
protected void ontTest(OntModel m) throws Exception {
String ns = "http://example.com/foo#";
@@ -1308,7 +1308,7 @@ public class TestClassExpression
assertEquals( old, m.size() );
}
},
- new OntTestCase( "Remove union", true, false, true, false ) {
+ new OntTestCase( "Remove union", true, false, false ) {
@Override
protected void ontTest(OntModel m) throws Exception {
String ns = "http://example.com/foo#";
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestCreate.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestCreate.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestCreate.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestCreate.java Mon Nov 19 19:53:42 2012
@@ -69,12 +69,6 @@ public class TestCreate
@Override
public boolean test( OntResource r ) { return r instanceof Ontology;}
},
- new CreateTestCase( "DAML create ontology", ProfileRegistry.DAML_LANG, BASE ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createOntology( BASE ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof Ontology;}
- },
new CreateTestCase( "OWL create class", ProfileRegistry.OWL_LANG, NS + "C" ) {
@Override
@@ -136,65 +130,6 @@ public class TestCreate
public boolean test( OntResource r ) { return r instanceof OntClass;}
},
- new CreateTestCase( "DAML create class", ProfileRegistry.DAML_LANG, NS + "C" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createClass( NS + "C" ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass;}
- },
- new CreateTestCase( "DAML create anon class", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createClass(); }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass;}
- },
-
- new CreateTestCase( "DAML create anon complement class", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createComplementClass( null, m.createClass( NS + "A" ) ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass && r instanceof ComplementClass; }
- },
- new CreateTestCase( "DAML create anon enumeration class", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- OntClass A = m.createClass( NS + "A" );
- Individual a0 = m.createIndividual( A );
- Individual a1 = m.createIndividual( A );
- Individual a2 = m.createIndividual( A );
- RDFList l = m.createList( new OntResource[] {a0, a1, a2} );
- return m.createEnumeratedClass( null, l );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass && r instanceof EnumeratedClass; }
- },
- new CreateTestCase( "DAML create anon union class", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- OntClass A = m.createClass( NS + "A" );
- Individual a0 = m.createIndividual( A );
- Individual a1 = m.createIndividual( A );
- Individual a2 = m.createIndividual( A );
- RDFList l = m.createList( new OntResource[] {a0, a1, a2} );
- return m.createUnionClass( null, l );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass && r instanceof UnionClass; }
- },
- new CreateTestCase( "DAML create anon intersection class", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- OntClass A = m.createClass( NS + "A" );
- Individual a0 = m.createIndividual( A );
- Individual a1 = m.createIndividual( A );
- Individual a2 = m.createIndividual( A );
- RDFList l = m.createList( new OntResource[] {a0, a1, a2} );
- return m.createIntersectionClass( null, l );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof OntClass && r instanceof IntersectionClass; }
- },
-
new CreateTestCase( "OWL create individual", ProfileRegistry.OWL_LANG, NS + "a" ) {
@Override
public OntResource doCreate( OntModel m ) {
@@ -213,24 +148,6 @@ public class TestCreate
@Override
public boolean test( OntResource r ) { return r instanceof Individual;}
},
- new CreateTestCase( "DAML create individual", ProfileRegistry.DAML_LANG, NS + "a" ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- OntClass c = m.createClass( NS + "C" );
- return m.createIndividual( NS + "a", c );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof Individual;}
- },
- new CreateTestCase( "DAML create anon individual", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- OntClass c = m.createClass( NS + "C" );
- return m.createIndividual( c );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof Individual;}
- },
// OWL property types
new CreateTestCase( "OWL create object property", ProfileRegistry.OWL_LANG, NS + "p" ) {
@@ -357,98 +274,6 @@ public class TestCreate
public boolean test( OntResource r ) { return r instanceof AnnotationProperty;}
},
- // DAML property types
- new CreateTestCase( "DAML create object property", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createObjectProperty( NS + "p" ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty;}
- },
- new CreateTestCase( "DAML create object property non-F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createObjectProperty( NS + "p", false ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty && !r.canAs( FunctionalProperty.class );}
- },
- new CreateTestCase( "DAML create object property F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createObjectProperty( NS + "p", true ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty && r.canAs( FunctionalProperty.class );}
- },
-
- new CreateTestCase( "DAML create transitive property", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createTransitiveProperty( NS + "p" ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof TransitiveProperty;
- }
- },
- new CreateTestCase( "DAML create transitive property non-F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createTransitiveProperty( NS + "p", false ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof TransitiveProperty &&
- !r.canAs( FunctionalProperty.class );
- }
- },
- new CreateTestCase( "DAML create transitive property F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createTransitiveProperty( NS + "p", true ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof TransitiveProperty &&
- r.canAs( FunctionalProperty.class );
- }
- },
- new CreateTestCase( "DAML create inverse functional property", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createInverseFunctionalProperty( NS + "p" ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof InverseFunctionalProperty;
- }
- },
- new CreateTestCase( "DAML create inverse functional property non-F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createInverseFunctionalProperty( NS + "p", false ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof InverseFunctionalProperty &&
- !r.canAs( FunctionalProperty.class );
- }
- },
- new CreateTestCase( "DAML create inverse functional property F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createInverseFunctionalProperty( NS + "p", true ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof ObjectProperty &&
- r instanceof InverseFunctionalProperty &&
- r.canAs( FunctionalProperty.class );
- }
- },
-
- new CreateTestCase( "DAML create datatype property", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createDatatypeProperty( NS + "p" ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof DatatypeProperty;}
- },
- new CreateTestCase( "DAML create datatype property non-F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createDatatypeProperty( NS + "p", false ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof DatatypeProperty && !r.canAs( FunctionalProperty.class );}
- },
- new CreateTestCase( "DAML create datatype property F", ProfileRegistry.DAML_LANG, NS + "p" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createDatatypeProperty( NS + "p", true ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof DatatypeProperty && r.canAs( FunctionalProperty.class );}
- },
-
new CreateTestCase( "OWL create allDifferent", ProfileRegistry.OWL_LANG, null ) {
@Override
public OntResource doCreate( OntModel m ) { return m.createAllDifferent(); }
@@ -538,88 +363,6 @@ public class TestCreate
@Override
public boolean test( OntResource r ) { return r instanceof MaxCardinalityRestriction;}
},
-
- new CreateTestCase( "DAML create restriction", ProfileRegistry.DAML_LANG, NS + "C" ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createRestriction( NS + "C", null ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof Restriction;}
- },
- new CreateTestCase( "DAML create anon restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) { return m.createRestriction( null ); }
- @Override
- public boolean test( OntResource r ) { return r instanceof Restriction;}
- },
-
- new CreateTestCase( "DAML create has value restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- Resource x = m.createResource( NS + "x" );
- return m.createHasValueRestriction( null, p, x );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof HasValueRestriction;}
- },
- new CreateTestCase( "DAML create has value restriction (literal)", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createDatatypeProperty( NS + "p" );
- Literal x = m.createTypedLiteral( new Integer( 42 ) );
- return m.createHasValueRestriction( null, p, x );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof HasValueRestriction;}
- },
- new CreateTestCase( "DAML create all values from restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- OntClass c = m.createClass( NS + "C" );
- return m.createAllValuesFromRestriction( null, p, c );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof AllValuesFromRestriction;}
- },
- new CreateTestCase( "DAML create some values from restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- OntClass c = m.createClass( NS + "C" );
- return m.createSomeValuesFromRestriction( null, p, c );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof SomeValuesFromRestriction;}
- },
- new CreateTestCase( "DAML create cardinality restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- return m.createCardinalityRestriction( null, p, 17 );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof CardinalityRestriction;}
- },
- new CreateTestCase( "DAML create min cardinality restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- return m.createMinCardinalityRestriction( null, p, 1 );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof MinCardinalityRestriction;}
- },
- new CreateTestCase( "DAML create max cardinality restriction", ProfileRegistry.DAML_LANG, null ) {
- @Override
- public OntResource doCreate( OntModel m ) {
- Property p = m.createObjectProperty( NS + "p" );
- return m.createMaxCardinalityRestriction( null, p, 4 );
- }
- @Override
- public boolean test( OntResource r ) { return r instanceof MaxCardinalityRestriction;}
- },
-
};
// Instance variables
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestIndividual.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestIndividual.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestIndividual.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestIndividual.java Mon Nov 19 19:53:42 2012
@@ -74,7 +74,7 @@ public class TestIndividual
@Override
public OntTestCase[] getTests() {
return new OntTestCase[] {
- new OntTestCase( "Individual.sameAs", true, false, true, false ) {
+ new OntTestCase( "Individual.sameAs", true, false, false ) {
/** Note: 6/Nov/2003 - updated to use sameAs not sameIndividualAs, following changes to OWL spec */
@Override
public void ontTest( OntModel m ) throws Exception {
@@ -104,7 +104,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.hasOntClass", true, true, true, true ) {
+ new OntTestCase( "Individual.hasOntClass", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -116,7 +116,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.hasOntClass direct", true, true, true, true ) {
+ new OntTestCase( "Individual.hasOntClass direct", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -135,7 +135,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.hasOntClass string", true, true, true, true ) {
+ new OntTestCase( "Individual.hasOntClass string", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -146,7 +146,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.getOntClass", true, true, true, true ) {
+ new OntTestCase( "Individual.getOntClass", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -156,7 +156,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.getOntClass direct", true, true, true, true ) {
+ new OntTestCase( "Individual.getOntClass direct", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -171,7 +171,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.listOntClasses", true, true, true, true ) {
+ new OntTestCase( "Individual.listOntClasses", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -190,7 +190,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.listOntClasses direct", true, true, true, true ) {
+ new OntTestCase( "Individual.listOntClasses direct", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -209,7 +209,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.addOntClass", true, true, true, true ) {
+ new OntTestCase( "Individual.addOntClass", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -231,7 +231,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.setOntClass", true, true, true, true ) {
+ new OntTestCase( "Individual.setOntClass", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -253,7 +253,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.removeOntClass", true, true, true, true ) {
+ new OntTestCase( "Individual.removeOntClass", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -275,7 +275,7 @@ public class TestIndividual
}
},
- new OntTestCase( "Individual.canAs", true, true, true, false ) {
+ new OntTestCase( "Individual.canAs", true, true, false ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntClass A = m.createClass( NS + "A" );
@@ -293,7 +293,7 @@ public class TestIndividual
},
/** Test case for SF bug 945436 - a xml:lang='' in the dataset causes string index exception in getLabel() */
- new OntTestCase( "Individual.canAs", true, true, true, true ) {
+ new OntTestCase( "Individual.canAs", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String SOURCE=
@@ -321,7 +321,7 @@ public class TestIndividual
}
},
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntModel defModel = ModelFactory.createOntologyModel();
@@ -331,7 +331,7 @@ public class TestIndividual
}
},
/** User report of builtin classes showing up as individuals */
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -346,7 +346,7 @@ public class TestIndividual
}
},
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -362,7 +362,7 @@ public class TestIndividual
},
/** Edge case - suppose we imagine that user has materialised results of offline inference */
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -378,7 +378,7 @@ public class TestIndividual
}
},
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -394,7 +394,7 @@ public class TestIndividual
}
},
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -411,7 +411,7 @@ public class TestIndividual
},
/** But we do allow punning */
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
@@ -426,7 +426,7 @@ public class TestIndividual
}
},
- new OntTestCase( "OntResource.isIndividual 1", true, true, true, true ) {
+ new OntTestCase( "OntResource.isIndividual 1", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
String NS = "http://jena.hpl.hp.com/example#";
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestListSyntaxCategories.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestListSyntaxCategories.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestListSyntaxCategories.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestListSyntaxCategories.java Mon Nov 19 19:53:42 2012
@@ -70,18 +70,7 @@ public class TestListSyntaxCategories
return r instanceof Ontology;
}
},
- new DoListTest( "DAML list ontologies", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {"http://jena.hpl.hp.com/testing/ontology"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listOntologies();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof Ontology;
- }
- },
+
// Properties
new DoListTest( "OWL list properties", "file:testing/ontology/owl/list-syntax/test.rdf", OntModelSpec.OWL_MEM_TRANS_INF, 2,
new String[] {NS+"p",NS+"karma"} )
@@ -191,87 +180,6 @@ public class TestListSyntaxCategories
r instanceof Property;
}
},
- new DoListTest( "DAML list properties", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 5,
- new String[] {NS+"p", NS+"rdf-p", NS+"dp", NS+"op", NS+"op1"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listOntProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof Property;
- }
- },
- new DoListTest( "DAML list object properties", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 2,
- new String[] {NS+"op", NS+"op1"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listObjectProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof Property;
- }
- },
- new DoListTest( "DAML list datatype properties", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"dp"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listDatatypeProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof Property;
- }
- },
- new DoListTest( "DAML list functional properties", "file:testing/ontology/daml/list-syntax/test-proptypes.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"fp"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listFunctionalProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof FunctionalProperty &&
- r instanceof Property;
- }
- },
- new DoListTest( "DAML list transitive properties", "file:testing/ontology/daml/list-syntax/test-proptypes.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"tp"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listTransitiveProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof TransitiveProperty &&
- r instanceof Property;
- }
- },
- new DoListTest( "DAML list inverse functional properties", "file:testing/ontology/daml/list-syntax/test-proptypes.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"ifp"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listInverseFunctionalProperties();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntProperty &&
- r instanceof InverseFunctionalProperty &&
- r instanceof Property;
- }
- },
// individuals
new DoListTest( "OWL list individuals", "file:testing/ontology/owl/list-syntax/test.rdf", OntModelSpec.OWL_MEM_TRANS_INF, 8,
@@ -426,29 +334,6 @@ public class TestListSyntaxCategories
return r instanceof Individual;
}
},
- new DoListTest( "DAML list individuals", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 6,
- new String[] {NS+"A0", NS+"A1", NS+"C0", NS+"a1", NS+"a2", NS+"a0"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listIndividuals();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof Individual;
- }
- },
- new DoListTest( "empty DAML+rule list individuals", null, OntModelSpec.DAML_MEM_RULE_INF, 0, new String[] {} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listIndividuals();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof Individual;
- }
- },
new DoListTest( "OWL list individuals with inference", "file:testing/ontology/owl/list-syntax/owlDemoSchema.xml", OntModelSpec.OWL_LITE_MEM_RULES_INF, 6, null )
{
@Override
@@ -493,18 +378,6 @@ public class TestListSyntaxCategories
return r instanceof AllDifferent;
}
},
- new DoListTest( "DAML list all different", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 0, null,
- true /* exception expected */ )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listAllDifferent();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof AllDifferent;
- }
- },
// classes
new DoListTest( "OWL list classes", "file:testing/ontology/owl/list-syntax/test.rdf", OntModelSpec.OWL_MEM_TRANS_INF, 11,
@@ -591,90 +464,6 @@ public class TestListSyntaxCategories
return r instanceof Restriction;
}
},
- new DoListTest( "DAML list classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 12,
- new String[] {NS+"A", NS+"B", NS+"C", NS+"D", NS+"E", NS+"X0", NS+"X1", NS+"Y0", NS+"Y1", NS+"Z", DAML_OIL.Thing.getURI()} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list named classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 11,
- new String[] {NS+"A", NS+"B", NS+"C", NS+"D", NS+"E", NS+"X0", NS+"X1", NS+"Y0", NS+"Y1", NS+"Z", DAML_OIL.Thing.getURI()} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listNamedClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list intersection classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"A" } )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listIntersectionClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list union classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"B"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listUnionClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list complement classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"C"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listComplementClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list enumerated classes", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- new String[] {NS+"D"} )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listEnumeratedClasses();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof OntClass;
- }
- },
- new DoListTest( "DAML list restrictions", "file:testing/ontology/daml/list-syntax/test.rdf", OntModelSpec.DAML_MEM_RULE_INF, 1,
- null )
- {
- @Override
- public Iterator< ? extends Resource> doList( OntModel m ) {
- return m.listRestrictions();
- }
- @Override
- public boolean test( Resource r ) {
- return r instanceof Restriction;
- }
- },
// Annotation property
new DoListTest( "OWL list annotation properties", "file:testing/ontology/owl/list-syntax/test.rdf", OntModelSpec.OWL_MEM_TRANS_INF, 1,
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntClass.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntClass.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntClass.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntClass.java Mon Nov 19 19:53:42 2012
@@ -144,24 +144,6 @@ public class TestOntClass
assertFalse( b.isHierarchyRoot() );
}
- public void testIsHierarchyRoot6() {
- OntModel m = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM );
- OntClass a = m.createClass( NS + "A" );
- OntClass b = m.createClass( NS + "B" );
- a.addSubClass( b );
- assertTrue( a.isHierarchyRoot() );
- assertFalse( b.isHierarchyRoot() );
- }
-
- public void testIsHierarchyRoot7() {
- OntModel m = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );
- OntClass a = m.createClass( NS + "A" );
- OntClass b = m.createClass( NS + "B" );
- a.addSubClass( b );
- assertTrue( a.isHierarchyRoot() );
- assertFalse( b.isHierarchyRoot() );
- }
-
public void testIsHierarchyRoot8() {
OntModel m = ModelFactory.createOntologyModel( OntModelSpec.RDFS_MEM );
OntClass a = m.createClass( NS + "A" );
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntModelSpec.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntModelSpec.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntModelSpec.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntModelSpec.java Mon Nov 19 19:53:42 2012
@@ -50,7 +50,6 @@ public class TestOntModelSpec extends Mo
private void testEqualityAndDifference( OntModelSpec os )
{
assertEquals( os, new OntModelSpec( os ) );
- assertDiffer( os, OntModelSpec.DAML_MEM );
}
public void testAssembleRoot()
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntology.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntology.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntology.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestOntology.java Mon Nov 19 19:53:42 2012
@@ -71,7 +71,7 @@ public class TestOntology
@Override
public OntTestCase[] getTests() {
return new OntTestCase[] {
- new OntTestCase( "Ontology.imports", true, true, true, false ) {
+ new OntTestCase( "Ontology.imports", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -97,7 +97,7 @@ public class TestOntology
assertEquals( "Cardinality should be 0", 0, x.getCardinality( prof.IMPORTS() ) );
}
},
- new OntTestCase( "Ontology.backwardCompatibleWith", true, true, false, false ) {
+ new OntTestCase( "Ontology.backwardCompatibleWith", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -123,7 +123,7 @@ public class TestOntology
assertEquals( "Cardinality should be 0", 0, x.getCardinality( prof.BACKWARD_COMPATIBLE_WITH() ) );
}
},
- new OntTestCase( "Ontology.priorVersion", true, true, false, false ) {
+ new OntTestCase( "Ontology.priorVersion", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -149,7 +149,7 @@ public class TestOntology
assertEquals( "Cardinality should be 0", 0, x.getCardinality( prof.PRIOR_VERSION() ) );
}
},
- new OntTestCase( "Ontology.incompatibleWith", true, true, false, false ) {
+ new OntTestCase( "Ontology.incompatibleWith", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
Modified: jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestProperty.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestProperty.java?rev=1411372&r1=1411371&r2=1411372&view=diff
==============================================================================
--- jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestProperty.java (original)
+++ jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/ontology/impl/TestProperty.java Mon Nov 19 19:53:42 2012
@@ -77,7 +77,7 @@ public class TestProperty
@Override
public OntTestCase[] getTests() {
return new OntTestCase[] {
- new OntTestCase( "OntProperty.super-property", true, true, true, true ) {
+ new OntTestCase( "OntProperty.super-property", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -107,7 +107,7 @@ public class TestProperty
assertFalse( "super-properties should not include reflexive case", sp.contains( p ) );
}
},
- new OntTestCase( "OntProperty.sub-property", true, true, true, true ) {
+ new OntTestCase( "OntProperty.sub-property", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -135,7 +135,7 @@ public class TestProperty
assertTrue( "Should not have sub-prop r", !p.hasSubProperty( r, false ) );
}
},
- new OntTestCase( "OntProperty.domain", true, true, true, true ) {
+ new OntTestCase( "OntProperty.domain", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -161,7 +161,7 @@ public class TestProperty
assertEquals( "Cardinality should be 0", 0, p.getCardinality( prof.DOMAIN() ) );
}
},
- new OntTestCase( "OntProperty.range", true, true, true, true ) {
+ new OntTestCase( "OntProperty.range", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -187,7 +187,7 @@ public class TestProperty
assertEquals( "Cardinality should be 0", 0, p.getCardinality( prof.RANGE() ) );
}
},
- new OntTestCase( "OntProperty.equivalentProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.equivalentProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -213,7 +213,7 @@ public class TestProperty
assertEquals( "Cardinality should be 0", 0, p.getCardinality( prof.EQUIVALENT_PROPERTY() ) );
}
},
- new OntTestCase( "OntProperty.inverseOf", true, true, true, false ) {
+ new OntTestCase( "OntProperty.inverseOf", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Profile prof = m.getProfile();
@@ -244,10 +244,10 @@ public class TestProperty
assertEquals( "Cardinality should be 0", 0, p.getCardinality( prof.INVERSE_OF() ) );
}
},
- new OntTestCase( "OntProperty.subproperty.fromFile", true, true, true, true ) {
+ new OntTestCase( "OntProperty.subproperty.fromFile", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/Property/test.rdf";
m.read( fileName );
@@ -258,10 +258,10 @@ public class TestProperty
iteratorTest( q.listSubProperties(), new Object[] {p} );
}
},
- new OntTestCase( "OntProperty.domain.fromFile", true, true, true, true ) {
+ new OntTestCase( "OntProperty.domain.fromFile", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/Property/test.rdf";
m.read( fileName );
@@ -271,10 +271,10 @@ public class TestProperty
assertTrue( "p should have domain A", p.hasDomain( A ) );
}
},
- new OntTestCase( "OntProperty.range.fromFile", true, true, true, true ) {
+ new OntTestCase( "OntProperty.range.fromFile", true, true, true ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/Property/test.rdf";
m.read( fileName );
@@ -284,10 +284,10 @@ public class TestProperty
assertTrue( "p should have domain B", p.hasRange( B ) );
}
},
- new OntTestCase( "OntProperty.equivalentProeprty.fromFile", true, true, true, false ) {
+ new OntTestCase( "OntProperty.equivalentProeprty.fromFile", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/Property/test.rdf";
m.read( fileName );
@@ -297,10 +297,10 @@ public class TestProperty
assertTrue( "p should have equiv prop r", p.hasEquivalentProperty( r ) );
}
},
- new OntTestCase( "OntProperty.inversePropertyOf.fromFile", true, true, true, false ) {
+ new OntTestCase( "OntProperty.inversePropertyOf.fromFile", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
- String lang = m_owlLang ? "owl" : (m_damlLang ? "daml" : "rdfs");
+ String lang = m_owlLang ? "owl" : "rdfs" ;
String fileName = "file:testing/ontology/" + lang + "/Property/test.rdf";
m.read( fileName );
@@ -312,7 +312,7 @@ public class TestProperty
},
// type tests
- new OntTestCase( "OntProperty.isFunctionalProperty dt", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isFunctionalProperty dt", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createDatatypeProperty( NS + "p", true );
@@ -327,7 +327,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isFunctionalProperty object", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isFunctionalProperty object", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p", true );
@@ -342,7 +342,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isDatatypeProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isDatatypeProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createDatatypeProperty( NS + "p", false );
@@ -357,7 +357,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isObjectProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isObjectProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createObjectProperty( NS + "p", false );
@@ -372,7 +372,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isTransitiveProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isTransitiveProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createTransitiveProperty( NS + "p" );
@@ -387,7 +387,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isInverseFunctionalProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.isInverseFunctionalProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createInverseFunctionalProperty( NS + "p" );
@@ -402,7 +402,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.isSymmetricProperty", true, true, false, false ) {
+ new OntTestCase( "OntProperty.isSymmetricProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
OntProperty p = m.createSymmetricProperty( NS + "p" );
@@ -417,7 +417,7 @@ public class TestProperty
}
}
},
- new OntTestCase( "OntProperty.convertToFunctionalProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.convertToFunctionalProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -441,7 +441,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", !p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "OntProperty.convertToDatatypeProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.convertToDatatypeProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -465,7 +465,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", !p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "OntProperty.convertToObjectProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.convertToObjectProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -489,7 +489,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", !p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "OntProperty.convertToTransitiveProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.convertToTransitiveProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -513,7 +513,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", !p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "OntProperty.convertToInverseFunctionalProperty", true, true, true, false ) {
+ new OntTestCase( "OntProperty.convertToInverseFunctionalProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -537,7 +537,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", !p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "OntProperty.convertToSymmetricProperty", true, true, false, false ) {
+ new OntTestCase( "OntProperty.convertToSymmetricProperty", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
Property pSimple = m.createProperty( NS, "p" );
@@ -561,7 +561,7 @@ public class TestProperty
if (m_owlLang) {assertTrue( "isSymmetricProperty not correct", p.isSymmetricProperty() ); }
}
},
- new OntTestCase( "ObjectProperty.inverse", true, true, true, false ) {
+ new OntTestCase( "ObjectProperty.inverse", true, true, false ) {
@Override
public void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS + "p" );
@@ -579,7 +579,7 @@ public class TestProperty
iteratorTest( p.listInverse(), new Object[] {q,r} );
}
},
- new OntTestCase( "OntProperty.listReferringRestrictions", true, true, true, false ) {
+ new OntTestCase( "OntProperty.listReferringRestrictions", true, true, false ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
ObjectProperty p = m.createObjectProperty( NS+"p" );
@@ -597,7 +597,7 @@ public class TestProperty
assertNotNull( p.listReferringRestrictions().next() );
}
},
- new OntTestCase( "no duplication from imported models", true, true, true, true ) {
+ new OntTestCase( "no duplication from imported models", true, true, true ) {
@Override
protected void ontTest( OntModel m ) throws Exception {
OntModel m0 = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM_RULE_INF, null );