From: Ignazio P. <ipa...@gm...> - 2011-06-27 14:13:03
|
2011/6/27 Pine Liu <lx...@gm...>: > Still need your help :) > I am able to create the OWLObjectOneOf instance using this code. However, I > still don't know how to link it to the new class "Color", as shown in the > OWL file. Also, after I save the ontology, nether the added individuals or > the oneOf instance is saved in the OWL file. Is there anything else I should > do to create this enumeration? Thank you very much! Are you adding the axioms to the ontology, and then saving the ontology? (You may want to share the code that's not working as expected...) HTH, I. > Best wishes, > Pine > > On Mon, Jun 27, 2011 at 2:25 AM, Ignazio Palmisano > <ipa...@gm...> wrote: >> >> 2011/6/26 Pine Liu <lx...@gm...>: >> > Thank you very much for the information! I tried but still don't know >> > how to >> > create the enumeration. Could you please help me with a sample code for >> > an >> > enumeration such as this? >> > >> > <owl:Class rdf:ID="Color"> >> > <owl:oneOf rdf:parseType="Collection"> >> > <owl:Thing rdf:about="#White"/> >> > <owl:Thing rdf:about="#Rose"/> >> > <owl:Thing rdf:about="#Red"/> >> > </owl:oneOf> >> > </owl:Class> >> > >> >> Create the three individuals: >> >> OWLDataFactory f = manager.getOWLDataFactory(); >> OWLNamedIndividual a = f.getOWLNamedIndividual(IRI.create(...White)); >> ... >> >> OWLClassExpression c=f.getOWLObjectOneOf(a, b...); >> >> I. >> >> > Thank you so much! >> > Best wishes, >> > Pine >> > On Sun, Jun 26, 2011 at 3:50 PM, Ignazio Palmisano >> > <ipa...@gm...> wrote: >> >> >> >> 2011/6/26 Pine Liu <lx...@gm...>: >> >> > Dear all, >> >> > I just jump from Jena to OWLAPI and am wondering whether there is >> >> > some >> >> > classes and methods that can create the enumeration class in the >> >> > ontology >> >> > (something similar to the EnumeratedClass in Jena) so that the >> >> > classes >> >> > can >> >> > have the "oneOf" tag? If so, could you please provide a simple >> >> > example? >> >> >> >> >> >> OWLDataFactory has a getOWLDataOneOf() and a getOWLObjectOneOf() >> >> method to create such enumerations. >> >> HTH, >> >> I. >> >> >> >> > Thank you so much! >> >> > Best wishes, >> >> > Pine >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > All of the data generated in your IT infrastructure is seriously >> >> > valuable. >> >> > Why? It contains a definitive record of application performance, >> >> > security >> >> > threats, fraudulent activity, and more. Splunk takes this data and >> >> > makes >> >> > sense of it. IT sense. And common sense. >> >> > http://p.sf.net/sfu/splunk-d2d-c2 >> >> > _______________________________________________ >> >> > Owlapi-developer mailing list >> >> > Owl...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> > >> >> > >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> All of the data generated in your IT infrastructure is seriously >> >> valuable. >> >> Why? It contains a definitive record of application performance, >> >> security >> >> threats, fraudulent activity, and more. Splunk takes this data and >> >> makes >> >> sense of it. IT sense. And common sense. >> >> http://p.sf.net/sfu/splunk-d2d-c2 >> >> _______________________________________________ >> >> Owlapi-developer mailing list >> >> Owl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> > >> > >> > ------------------------------------------------------------------------------ >> > All of the data generated in your IT infrastructure is seriously >> > valuable. >> > Why? It contains a definitive record of application performance, >> > security >> > threats, fraudulent activity, and more. Splunk takes this data and makes >> > sense of it. IT sense. And common sense. >> > http://p.sf.net/sfu/splunk-d2d-c2 >> > _______________________________________________ >> > Owlapi-developer mailing list >> > Owl...@li... >> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> > >> > >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > |