
es.ucm.fdi.gaia.ontobridge.test.Test6 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Ontobridge Show documentation
Show all versions of Ontobridge Show documentation
OntoBridge is a java library that eases the management of ontologies.
The newest version!
/**
* OntoBride library
* Departamento de Ingenieria del Software e Inteligencia Artificial
* Universidad Complutense de Madrid
*
* Licensed under the terms of the GNU Library or Lesser General Public License (LGPL)
*
* @author Juan A. Recio Garcia
*
* This software is a subproject of the jCOLIBRI framework
* http://sourceforge.net/projects/jcolibri-cbr/
* http://gaia.fdi.ucm.es/projects/jcolibri/
*
* File: Test5.java
* 26/02/2007
*/
package es.ucm.fdi.gaia.ontobridge.test;
import java.util.ArrayList;
import es.ucm.fdi.gaia.ontobridge.OntoBridge;
import es.ucm.fdi.gaia.ontobridge.OntologyDocument;
import es.ucm.fdi.gaia.ontobridge.test.gui.PnlConceptsAndInstancesTree;
/**
* File used for testing the library using the GAIA photos ontology.
* Shows how to disable inference.
*
* @author Juan A. Recio Garcia
*/
public class Test6 {
public static void main(String args[])
{
OntoBridge ob = new OntoBridge();
ob.initWithPelletReasoner();
OntologyDocument mainOnto = new OntologyDocument("http://gaia.fdi.ucm.es/ontologies/fotos.owl","file:test/fotos.owl");
ArrayList subOntologies = new ArrayList();
ob.loadOntology(mainOnto, subOntologies, false);
javax.swing.JFrame window = new javax.swing.JFrame(mainOnto.getURL());
PnlConceptsAndInstancesTree tree = new PnlConceptsAndInstancesTree(ob,true);
window.getContentPane().add(tree);
window.pack();
window.setSize(300, 600);
window.setVisible(true);
ob.setInference(false);
javax.swing.JOptionPane.showMessageDialog(window, "Inference disabled");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy