Hi all,

I'm pulling my hair out trying to invoke a spin template via the swp 
servlet in TB Live via TBC ME.  I've created a new file *hello.world.ui.ttlx.  
*The complete definition is utterly simple:

service-sdl:HelloWorld
  rdf:type spin:SelectTemplate ;
  spin:body [
      rdf:type sp:Select ;
      sp:limit "100"^^xsd:long ;
      sp:where (
          [
            sp:object [
                sp:varName "p"^^xsd:string ;
              ] ;
            sp:predicate [
                sp:varName "p"^^xsd:string ;
              ] ;
            sp:subject [
                sp:varName "s"^^xsd:string ;
              ] ;
          ]
        ) ;
    ] ;
  rdfs:label "The simplest test"^^xsd:string ;
  rdfs:subClassOf spin:SelectTemplate ;
.

In other worlds, we have a hello world template that returns 200 triples 
with no other considerations.  The file itself declares the prefix:

# baseURI: http://metadata.healthwise.org/services/sdl
# imports: http://uispin.org/swon
# prefix: service-sdl
...boiler-plate...
@prefix service-sdl: <http://metadata.healthwise.org/services/sdl#> .

When I hit the TBL web services report, I clearly see it listed and the 
generated docs tell me I can get to it via:

template//HelloWorld? 
or
template?_template=:HelloWorld& 

However, I get a 500 Error when I hit: 
http://localhost:8083/tbl/template//HelloWorld? (

Summary: [Cannot find a SPIN template with qname service-sdl:HelloWorld]) or by 
adding a qname at: http://localhost:8083/tbl/template/service-sdl/HelloWorld? 
Gives me more or less the same error:   Summary: [Cannot find a SPIN template 
with qname :HelloWorld]


I have spent more time than I care to admit fighting to get this working.  I've 
refreshed the registries regularly and everything else that holds promise.  But 
the fact is that I simply don't understand how the qname's are bound, how they 
can show in the web service docs but be unavailable.  

It can't be this difficult, I know there is a bone-headed mistake I am making - 
but what?

-Adam


-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to [email protected]
--- 
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/d/optout.

Reply via email to