I have a simple sparql motion file 'queries.sms.n3'

When run from within TBC the result is what is to be expected, but
running it as a web service at localhost
http://localhost:8083/tbl/actions?action=sparqlmotion&id=FindGemeente&date=2008-12-12
throws following error
<results error="true" message="Undefined service with script
FindGemeente"/>

- the file has sms in its file name
- the spin:function 'FindGemeente' is defined
what am I overlooking?

# Saved by TopBraid on Thu Dec 17 13:19:41 CET 2009
# baseURI: http://www.proxml.be/terms/queries
# imports: http://topbraid.org/sparqlmotionfunctions
# imports: http://topbraid.org/sparqlmotionlib

@prefix :        <http://www.proxml.be/terms/queries#> .
@prefix proxml:  <http://www.proxml.be/terms/> .
@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 smf:     <http://topbraid.org/sparqlmotionfunctions#> .
@prefix sml:     <http://topbraid.org/sparqlmotionlib#> .
@prefix sp:      <http://spinrdf.org/sp#> .
@prefix spin:    <http://spinrdf.org/spin#> .
@prefix spl:     <http://spinrdf.org/spl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .

proxml:queries
      rdf:type owl:Ontology ;
      owl:imports <http://topbraid.org/sparqlmotionfunctions> ,
<http://topbraid.org/sparqlmotionlib> ;
      owl:versionInfo "Created with TopBraid Composer"^^xsd:string .

:FindGemeente
      rdf:type spin:Function ;
      rdfs:comment "http://localhost:8083/tbl/actions?
action=sparqlmotion&id=FindGemeente&date=2008-12-12"^^xsd:date ;
      rdfs:label "Find gemeente"^^xsd:string ;
      rdfs:subClassOf spin:Functions ;
      spin:abstract "true"^^xsd:boolean , "false"^^xsd:boolean ;
      spin:constraint
              [ rdf:type spl:Argument ;
                spl:predicate :date ;
                spl:valueType xsd:date ;
                sm:next :ReturnGemeenteResults
              ] ;
      sm:returnModule :ReturnGemeenteResults .

:ImportSesameRemoteRepository
      rdf:type sml:ImportSesameRemoteRepository ;
      rdfs:label "Import sesame remote repository"^^xsd:string ;
      sm:next :ReturnGemeenteResults ;
      sml:modelName "T1"^^xsd:string ;
      sml:url "http://localhost:8080/openrdf-sesame/"^^xsd:string .

:ReturnGemeenteResults
      rdf:type sml:ReturnSPARQLResults ;
      rdfs:label "Return actuele gemeente results"^^xsd:string ;
      sml:selectQuery
              [ rdf:type sp:Select ;
                sp:resultVariables (_:b1) ;
                sp:where ([ sp:object proxml:Gemeente ;
                            sp:predicate rdf:type ;
                            sp:subject _:b1
                          ] [ sp:object _:b2 ;
                            sp:predicate proxml:startDatum ;
                            sp:subject _:b1
                          ] [ rdf:type sp:Optional ;
                            sp:elements ([ sp:object _:b3 ;
                                        sp:predicate
proxml:eindDatum ;
                                        sp:subject _:b1
                                      ])
                          ] [ rdf:type sp:Filter ;
                            sp:expression
                                    [ rdf:type sp:or ;
                                      sp:arg1 [ rdf:type sp:and ;
                                                sp:arg1 [ rdf:type
sp:le ;
                                                          sp:arg1
_:b2 ;
                                                          sp:arg2 _:b4
                                                        ] ;
                                                sp:arg2 [ rdf:type
sp:not ;
                                                          sp:arg1
[ rdf:type sp:bound ;
 
sp:arg1 _:b3
                                                                  ]
                                                        ]
                                              ] ;
                                      sp:arg2 [ rdf:type sp:ge ;
                                                sp:arg1 _:b3 ;
                                                sp:arg2 _:b4
                                              ]
                                    ]
                          ])
              ] ;
      sml:serialization sm:XML .

:date
      rdf:type owl:DatatypeProperty ;
      rdfs:label "date"^^xsd:string .

_:b4  sp:varName "date"^^xsd:string .

_:b3  sp:varName "enddate"^^xsd:string .

_:b2  sp:varName "startdate"^^xsd:string .

_:b1  sp:varName "subject"^^xsd:string .


Regards,


Paul

--

You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en.


Reply via email to