Re: [Virtuoso-users] Does Virtuoso support User Defined Rules

2011-12-02 Thread Kingsley Idehen
On 12/2/11 2:15 PM, Manish Hardasmalani wrote: Hi, I have below question related to Virtuoso support for Inference: Are User Defined Rules Supported in Virtuoso? if yes , please let me know how to add them. Any example would be of great help. I want to create below rule if (?x :hasFather ?y) (?x

[Virtuoso-users] Does Virtuoso support User Defined Rules

2011-12-02 Thread Manish Hardasmalani
Hi, I have below question related to Virtuoso support for Inference: Are User Defined Rules Supported in Virtuoso? if yes , please let me know how to add them. Any example would be of great help. I want to create below rule if (?x :hasFather ?y) (?x :BrotherOf ?z) then (?z :hasFather ?y) Thanks,

Re: [Virtuoso-users] Propery value uniqueness

2011-12-02 Thread Ícaro Medeiros
Hi Ivan, Sorry for the lack of detail about my problem and thanks for the quick answer. I think I mean the first one you said. The problem is that I want to prevent duplicate property values for a given property. For example, given a triple: *Subject1 PropValue1* I am looking for a way to prev

Re: [Virtuoso-users] construct + aggregate function

2011-12-02 Thread Jürgen Jakobitsch
thank you very much, ivan, works as expected! wkr http://www.turnguard.com/turnguard - Original Message - From: "Ivan Mikhailov" To: "Jürgen Jakobitsch" Cc: virtuoso-users@lists.sourceforge.net Sent: Friday, December 2, 2011 9:53:25 AM Subject: Re: [Virtuoso-users] construct + aggregate

Re: [Virtuoso-users] Propery value uniqueness

2011-12-02 Thread Ivan Mikhailov
Hello Ícaro, You mean, to check whether some value of a given property appears in more than one subject? Or, to check whether a given property has no more than one value for every subject? Best Regards, Ivan Mikhailov OpenLink Software http://virtuoso.openlinksw.com On Thu, 2011-12-01 at 17:57

Re: [Virtuoso-users] construct + aggregate function

2011-12-02 Thread Ivan Mikhailov
Hello Jürgen, Put the "select distinct" into construct's WHERE clause as a subquery, something like CONSTRUCT { ?category a . ?category ?count } where { { SELECT DISTINCT ?category count(