|
Michael, keep in mind that SPIN rules are defined on
a class and executed for each instance, pre-binding the instance
to the SPIN-reserved variable ?this. Therefore your query should
be written as defined (assuming it is defined in the spin:rule
property of :Task): CONSTRUCT { ?this :suitableTool ?tool . } WHERE { ?this :numRestrictions ?x . { SELECT ?tool ((COUNT(?constraint)) AS ?fulfilled) WHERE { ?this :hasConstraintRestriction ?constraint . ?constraint :fulfilledby ?tool . } GROUP BY ?tool HAVING (?fulfilled > ?x) } . } ...give that a try first. From the description, it may just be a matter of placing the query on the wrong class. -- Scott On 1/21/2014, 8:09 AM, Michael B.
wrote:
-- -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. |
- [topbraid-users] SPIN rule works in SPARQL view, but does... Michael B.
- Re: [topbraid-users] SPIN rule works in SPARQL view,... Scott Henninger
- Re: [topbraid-users] SPIN rule works in SPARQL view,... Holger Knublauch
- Re: [topbraid-users] SPIN rule works in SPARQL v... Michael B.
- Re: [topbraid-users] SPIN rule works in SPAR... Holger Knublauch
