Resource ni = XSD.negativeInteger;
Resource pi = XSD.positiveInteger;
Resource i = XSD.integer;
Resource f = XSD.xfloat;
DatatypeProperty s = model.createDatatypeProperty( ns + "s" );
OntClass c1 = model.createClass( ns + "c1" );
c1.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, pi ) );
assertFalse( model.contains( c1, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c2 = model.createClass( ns + "c2" );
Resource b2 = model.createResource();
model.add(b2, RDF.type, OWL2.DataRange);
model.add(b2, OWL2.datatypeComplementOf, pi);
c2.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, b2 ) );
assertFalse( model.contains( c2, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c3 = model.createClass( ns + "c3" );
RDFNode[] l3 = new RDFNode[2];
l3[0] = pi;
l3[1] = ni;
c3.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l3 ) ) ) );
assertTrue( model.contains(c3, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c4 = model.createClass( ns + "c4" );
RDFNode[] l41 = new RDFNode[2];
l41[0] = pi;
l41[1] = ni;
RDFNode[] l42 = new RDFNode[2];
l42[0] = f;
l42[1] = model.createUnionClass( null, model.createList( l41 ) );
c4.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l42 ) ) ) );
assertTrue( model.contains(c4, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c5 = model.createClass( ns + "c5" );
RDFNode[] l5 = new RDFNode[2];
l5[0] = npi;
l5[1] = ni;
c5.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l5 ) ) ) );
assertFalse( model.contains(c5, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c6 = model.createClass( ns + "c6" );
RDFNode[] l6 = new RDFNode[2];
l6[0] = nni;
l6[1] = pi;
c6.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l6 ) ) ) );
assertFalse( model.contains(c6, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c7 = model.createClass( ns + "c7" );
RDFNode[] l7 = new RDFNode[2];
l7[0] = nni;
l7[1] = npi;
c7.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createUnionClass( null, model.createList( l7 ) ) ) );
assertFalse( model.contains(c7, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c8 = model.createClass( ns + "c8" );
RDFNode[] l8 = new RDFNode[2];
l8[0] = nni;
l8[1] = npi;
c8.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l8 ) ) ) );
assertFalse( model.contains(c8, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c9 = model.createClass( ns + "c9" );
Resource fr9 = model.createResource();
model.add( fr9, OWL2.maxExclusive, model.createTypedLiteral( 0 ) );
Resource b9 = model.createResource();
model.add( b9, RDF.type, RDFS.Datatype);
model.add( b9, OWL2.onDatatype, i);
model.add( b9, OWL2.withRestrictions, model.createList( new RDFNode[] { fr9 } ));
RDFNode[] l9 = new RDFNode[2];
l9[0] = pi;
l9[1] = b9;
c9.addEquivalentClass( model.createSomeValuesFromRestriction( null, s, model.createIntersectionClass( null, model.createList( l9 ) ) ) );
assertTrue( model.contains(c9, RDFS.subClassOf, OWL2.Nothing ) );
OntClass c10 = model.createClass( ns + "c10" );
DatatypeProperty p = model.createDatatypeProperty( ns + "p" );
Resource b10 = model.createResource();
model.add( b10, RDF.type, RDFS.Datatype);
model.add( b10, OWL.unionOf, model.createList( new RDFNode[] { pi, ni } ));
model.add(p, RDFS.range, b10 );
c10.addEquivalentClass( model.createSomeValuesFromRestriction( null, p, XSD.anyURI ) );