From: Ignazio P. <ipa...@gm...> - 2013-04-11 11:09:47
|
On 11 Apr 2013 11:48, "Daniele Santamaria" <df....@gm...> wrote: > > > I'm trying to write an OWLObjectPropertyExpression on OWL Ontology object. > If I had an OWL Class I use something like the following: > > OWLOntologyManager managerWriter = OWLManager.createOWLOntologyManager(); > OWLOntology ontoWrite=managerWriter.createOntology(); > OWLDataFactory factory = manager.getOWLDataFactory(); > managerWriter.addAxiom(ontoWrite,factory.getOWLDeclarationAxiom(factory.getOWLClass((cl.getIRI())))); > > But what should I write if I want to write an OWLObjectPropertyExpression ? If your expression is an entity, it's just the same. For something else, e.g., an anonymous expression, you don't need a declaration, just use it. It will be outputted as needed. I. > Let me explain further. I'm using Hermit Reasoner in an experimental way. > In the reasoner exists a class, > org.semanticweb.Hermit.structural.OWLAxioms . I'm trying to write in an > ontology some of its fields ( for example > m_complexObjectPropertyExpressions ). > > Thanks in advance ! > Daniele > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |