Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLOntology


    super(v, p, s);
   
    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
View Full Code Here


    super(v, p, s);
   
    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null, abox = null;
    try {
     
      tbox = manager.loadOntology(tboxURI);
      abox = manager.loadOntology(aboxURI);
     
View Full Code Here

    this.selectionList = new HashSet<OWLEntity>();
   
    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
   
    OWLOntology tbox = null;
    try {
      tbox = manager.loadOntology(tboxURI);
     
      // Compute the number of direct subclasses of each class
      for (OWLClass owlClass : this.classes){
View Full Code Here

    /* Contains the elements of each selection step */
    this.selectionList = new HashSet<OWLEntity>();
   
    // Compute the ordered list of classes
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    OWLOntology tbox = null;
   
    try {
      tbox = manager.loadOntology(tboxURI);
     
      // Compute the number of direct subclasses of each class
View Full Code Here

  @Test
  public void testOWL2() throws OWLException {
    String ns = "http://www.example.org/test#";

    OWLOntology ont = loadOntology( base + "owl2_owlapi2.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLClass C = Class( ns + "C" );
View Full Code Here

  @Test
  public void testUncle() throws OWLException {
    String ns = "http://www.example.org/test#";

    OWLOntology ont = loadOntology( base + "uncle.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLIndividual Bob = Individual( ns + "Bob" );
View Full Code Here

  @Test
  public void testSibling() throws OWLException {
    String ns = "http://www.example.org/test#";

    OWLOntology ont = loadOntology( base + "sibling.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLIndividual Bob = Individual( ns + "Bob" );
View Full Code Here

  @Test
  public void testPropertyChain() throws OWLException {
    String ns = "http://www.example.org/test#";

    OWLOntology ont = loadOntology( base + "propertyChain.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLClass C = Class( ns + "C" );
View Full Code Here

  @Test
  public void testQualifiedCardinality1() throws OWLException {
    String ns = "http://www.example.org/test#";

    OWLOntology ont = loadOntology( base + "qcr.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLClass sub = Class( ns + "sub" );
View Full Code Here

  @Test
  public void testReflexive2() throws OWLException {
    String ns = "http://www.example.org/test#";
    String foaf = "http://xmlns.com/foaf/0.1/";

    OWLOntology ont = loadOntology( base + "reflexive.owl" );

    Reasoner reasoner = new Reasoner( OWL.manager );
    reasoner.setOntology( ont );

    OWLObjectProperty[] knows = {
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.model.OWLOntology

Copyright © 2018 www.massapicom. 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.