Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.OntModel.createList()


   
    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;
View Full Code Here


    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];
View Full Code Here

    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;
View Full Code Here

   
    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;
View Full Code Here

   
    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;
View Full Code Here

   
    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;
View Full Code Here

   
    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 ) );
View Full Code Here

    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 ) );
View Full Code Here

    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();
View Full Code Here

   
    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 ) );
    assertTrue( model.contains(c10, RDFS.subClassOf, OWL2.Nothing ) );
   
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.