Please try the attached example from TBC and use the "Toggle Debugger Breakpoint" button in the tool bar of the Graph editor to set a breakpoint in the Apply Construct module. That works for me.

Holger


On 18/05/2018 13:42, Rob Atkinson wrote:
Is there a way to get SPARQLMotion debug to access state of modules within an iterator.  (I assumed "Step into" would do this, but it doesnt.

Unless there is an issue with the iterator:

This query inside the iterator returns results on the input graph to the iterator,

SELECT ?s
WHERE {
    ?s a abr:ABR .
}


The test body is a simple Apply construct

CONSTRUCT {
    ?s a abr:Thing .
}
WHERE {
}


--
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 topbraid-users+unsubscr...@googlegroups.com <mailto:topbraid-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# baseURI: http://example.org/breakpoint
# imports: http://topbraid.org/sparqlmotionfunctions
# imports: http://topbraid.org/sparqlmotionlib-tb
# prefix: breakpoint

@prefix breakpoint: <http://example.org/breakpoint#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sm: <http://topbraid.org/sparqlmotion#> .
@prefix sml: <http://topbraid.org/sparqlmotionlib#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/breakpoint>
  rdf:type owl:Ontology ;
  owl:imports <http://topbraid.org/sparqlmotionfunctions> ;
  owl:imports <http://topbraid.org/sparqlmotionlib-tb> ;
  owl:versionInfo "Created with TopBraid Composer" ;
.
breakpoint:ApplyConstruct_1
  rdf:type sml:ApplyConstruct ;
  sml:constructQuery [
      rdf:type sp:Construct ;
      sp:templates (
          [
            sp:object "label" ;
            sp:predicate rdfs:label ;
            sp:subject [
                sp:varName "class" ;
              ] ;
          ]
        ) ;
      sp:where () ;
    ] ;
  rdfs:label "Apply construct 1" ;
.
breakpoint:ImportCurrentRDF_1
  rdf:type sml:ImportCurrentRDF ;
  sm:next breakpoint:IterateOverSelect_1 ;
  sm:nodeX 34 ;
  sm:nodeY 15 ;
  rdfs:label "Import current RDF 1" ;
.
breakpoint:IterateOverSelect_1
  rdf:type sml:IterateOverSelect ;
  sm:body breakpoint:ApplyConstruct_1 ;
  sml:selectQuery [
      rdf:type sp:Select ;
      sp:resultVariables (
          [
            sp:varName "class" ;
          ]
        ) ;
      sp:where (
          [
            sp:object rdfs:Class ;
            sp:predicate rdf:type ;
            sp:subject [
                sp:varName "class" ;
              ] ;
          ]
        ) ;
    ] ;
  rdfs:label "Iterate over select 1" ;
.

Reply via email to