From: Ignazio P. <ipa...@gm...> - 2013-07-18 10:58:37
|
On 18 Jul 2013 11:51, "Artem Kozlov" <art...@gm...> wrote: > > Sorry it is my typo. You are right correct version is: > OK. I think you already have the best implementation of this functionality, I'm afraid. I. > ontology.getObjectPropertiesInSignature.filter( > prop => reasoner.getObjectPropertyDomains(prop, false).containsEntity(someClass) > ) > > Artem. > > > On 07/18/2013 11:47 AM, Ignazio Palmisano wrote: >> >> >> On 18 Jul 2013 09:39, "Artem Kozlov" <art...@gm...> wrote: >> > >> > Hi Everyone, >> > >> > Is there some efficient way to get all Data/Object properties for which >> > specific OWLClass could be in domain position? Because currently I'm >> > iterating over all properties in signature, and for big ontology it is >> > not fast at all. Here is sample code (it is Scala, but I hope it is >> > self-explanatory) : >> > >> > ontology.getObjectPropertiesInSignature.filter( >> > prop => reasoner.getObjectPropertyDomains(ontology, >> > false).containsEntity(someClass) >> > ) >> >> How is getObjectPropertyDomains implemented? The Java method has no ontology argument, it has a property. >> HTH, >> I. >> >> > >> > >> > Thanks, Artem. >> > >> > ------------------------------------------------------------------------------ >> > See everything from the browser to the database with AppDynamics >> > Get end-to-end visibility with application monitoring from AppDynamics >> > Isolate bottlenecks and diagnose root cause in seconds. >> > Start your free trial of AppDynamics Pro today! >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Owlapi-developer mailing list >> > Owl...@li... >> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> >> >> ------------------------------------------------------------------------------ >> See everything from the browser to the database with AppDynamics >> Get end-to-end visibility with application monitoring from AppDynamics >> Isolate bottlenecks and diagnose root cause in seconds. >> Start your free trial of AppDynamics Pro today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk >> >> >> >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |