1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Vector<Object> coc=new Vector<Object>();
Vector<Object> con=new Vector<Object>();
OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null);
m.read( "http://localhost:8080/jsp-examples/OntoMins.owl"+"");
for(Iterator i=m.listClasses();i.hasNext();)
{
OntClass c = (OntClass) i.next();
coc.add(c.getLocalName());
for(Iterator y=c.listDeclaredProperties(true);y.hasNext();)
{
OntProperty property=(OntProperty)y.next();
con.add(property.getLocalName());
}}
Prop = new JComboBox(con); |
Partager