I apply with

 <sml:ApplySHACLRules sml:replace="true"  .

when I add a constant it doesnt throw anything up - so i still suspect 
there is logic not to apply to the ontology object -  could  it be excluded 
from the graph before application?


On Wednesday, 11 September 2019 20:16:14 UTC+10, Holger Knublauch wrote:
>
> I cannot think of a reason. How are you executing these rules? I tried a 
> similar rule from TBC, but the example with ?s ?p ?o is of course hard to 
> debug because all these triples are already there. Did you try a variation 
> where ?o is a constant just to verify the particular rule actually fires?
>
> Holger
>
>
> On 11/09/2019 18:02, Rob Atkinson wrote:
>
> Hi 
>
> trying to execute a SHACL rule that preserves all the triples during a 
> replace _except_ the ontology object and its properties
>
> This gives me the expected results when executed against the target graph..
>
> CONSTRUCT {
>     ?s ?p ?o
> }
> WHERE { ?this a owl:Ontology .
>     ?s ?p ?o FILTER ( ?s != ?this )
> }
>
> but when I run it as a SHACL rule as below it returns nothing - other 
> rules are running OK..
>
> is there some internal logic that stops it looking at owl:Ontology nodes 
> when executing rules?  (or a better way of doing this : noting I have a 
> "replace=true" on rule execution because normally i want to, this is a rule 
> i want to use to override that behaviour )
>
> :copy_graph
>   rdf:type sh:NodeShape ;
>   rdfs:label "copy original graph" ;
>   sh:targetClass owl:Ontology ;
>   sh:rule :SPARQLRule_1 ;
> .
>
>
> :SPARQLRule_1
>   rdf:type sh:SPARQLRule ;
>   rdfs:label "copy original graph" ;
>   sh:construct """CONSTRUCT {
>     ?s ?p ?o
> }
> WHERE {
>     ?s ?p ?o FILTER ( ?s != ?this )
> }""" ;
> .
>
> -- 
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/e90378c0-5f5a-4d6d-9567-c5bcdfbe4de8%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/e90378c0-5f5a-4d6d-9567-c5bcdfbe4de8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/78abf4b5-00f8-45f4-aa72-48a53944dfa3%40googlegroups.com.

Reply via email to