Hi Paul,

you must have run into a recently discovered bug with sml:ReturnSPARQLResults 
in TBC 3.2.0 and 3.2.1. We have prepared a 3.2.2 release which overcomes this 
problem. We will send you a link shortly.

Regards,
Holger


On Dec 17, 2009, at 6:41 AM, PaulZH wrote:

> Many thanks
> 
> This was indeed the error.
> 
> Meanwhile I deleted both 'false' and 'true' and I have the service now
> registered.
> 15:19:50.987:  - FindGemeente (http://standaarden.overheid.nl/owms/
> terms/queries#FindGemeente)
> 
> But I'm still not there completely
> with http://localhost:8083/tbl/actions?action=sparqlmotion&id=FindGemeente
> I get as expected
> <results message="Missing required argument date"
> recoverableError="true"/>
> 
> But 
> http://localhost:8083/tbl/actions?action=sparqlmotion&id=FindGemeente&date=2008-12-12
> doesn't return any results while the same date used as input to the
> script from within TBC does.
> I expect to receive the results in SPARQL XML format.
> 
> Does the date need to be encoded otherwise?
> 
> 
> Paul
> 
> 
> 
> 
> 
> 
> 
> On Dec 17, 3:08 pm, Holger Knublauch <[email protected]> wrote:
>> Paul,
>> 
>> you have set the function to spin:abstract = "true". Abstract functions 
>> cannot be executed.
>> 
>> Regards,
>> Holger
>> 
>> On Dec 17, 2009, at 5:59 AM, PaulZH wrote:
>> 
>>> Holger,
>> 
>>> Did run the Refresh/Display SPARQLMotion scripts with file
>>> 'queries.sms.n3' open, but the FindGemeente function is not within the
>>> list.
>> 
>>> Registered SPARQLMotion Services:
>>> 14:56:43.659:  - AddUser (http://server.topbraidlive.org/2009/
>>> permissions/AddUser#AddUser)
>>> 14:56:43.659:  - CreateGroup (http://server.topbraidlive.org/2009/
>>> permissions/CreateGroup#CreateGroup)
>>> 14:56:43.659:  - deleteGroup (http://server.topbraidlive.org/2009/
>>> permissions/DeleteGroup#deleteGroup)
>>> 14:56:43.659:  - RemoveUser (http://server.topbraidlive.org/2009/
>>> permissions/RemoveUser#RemoveUser)
>>> 14:56:43.659:  - FindByCallingCode (http://sparqlmotion.org/examples/
>>> DBPediaCallingCodesTBS3#FindByCallingCode)
>> 
>>> Paul
>> 
>>> On Dec 17, 1:47 pm, Holger Knublauch <[email protected]> wrote:
>>>> Hi Paul,
>> 
>>>> if you have started creating a new .sms. file with new spin:Functions, 
>>>> then you will first need to make sure they are registered using Scripts > 
>>>> Refresh/Display SPARQLMotion scripts.
>> 
>>>> Apart from that I cannot see an error (yet).
>> 
>>>> Regards,
>>>> Holger
>> 
>>>> On Dec 17, 2009, at 4:40 AM, PaulZH wrote:
>> 
>>>>> 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...
>>>>> 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 
>>>>> athttp://groups.google.com/group/topbraid-composer-users?hl=en.
>> 
>>> --
>> 
>>> 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 
>>> athttp://groups.google.com/group/topbraid-composer-users?hl=en.
> 
> --
> 
> 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.
> 
> 

--

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