Hello, I have made a SPIN rule template for the following SPARQL query (using http://spinservices.org ):
PREFIX policy: >> <http://www.adaptiveprivacy.com/ontologies/2012/2/policy.owl#> > > CONSTRUCT { > > ?userEntity policy:authorisation policy:Authorisation1 . > > } > > WHERE { > > { > > ?userEntity policy:friendOf >> <http://dbpedia.org/resource/Barack_Obama> . > > MINUS { > > ?userEntity policy:sameEntityAs >> <http://dbpedia.org/resource/The_Black_Keys> . > > } . > > } > > UNION > > { > > ?userEntity policy:friendOf <http://dbpedia.org/resource/Paramore> >> . > > MINUS { > > ?userEntity policy:sameEntityAs >> <http://dbpedia.org/resource/The_Black_Keys> . > > } . > > } . > > } > > I have a Jena Model that contains both the triples "<http://dbpedia.org/resource/The_Black_Keys> policy:sameEntityAs <http://dbpedia.org/resource/The_Black_Keys>" and "<http://dbpedia.org/resource/The_Black_Keys> policy:friendOf <http://dbpedia.org/resource/Barack_Obama>", but when I apply this rule with "<http://dbpedia.org/resource/The_Black_Keys>" as the ?userEntity value, the triple in the construct part of the query get constructured. I was actually expecting that the MINUS clause would eliminate the construction... Can anyone tell me what the problem is here? I'm not sure, but I'm expecting it has something to do with the UNION clause, even though that doesn't make much sense. Thanks in advance, Nicolas -- 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 Ensemble, SPARQLMotion 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
