|
Barb; It
seems a step is missing somewhere. I am attaching a file that
implements your function. The best source of information on SPIN
functions is at: http://composing-the-semantic-web.blogspot.com/2009/01/understanding-spin-functions.html -- Scott Barb wrote:
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
# Saved by TopBraid on Mon Jul 20 12:19:56 CDT 2009 # baseURI: http://ThompsonReuters.com/ThisIsATest # imports: http://topbraid.org/sparqlmotionfunctions # imports: http://topbraid.org/sparqlmotionlib @prefix sp: <http://spinrdf.org/sp#> . @prefix spin: <http://spinrdf.org/spin#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix : <http://ThompsonReuters.com/ThisIsATest#> . <http://ThompsonReuters.com/ThisIsATest> a owl:Ontology ; owl:imports <http://topbraid.org/sparqlmotionlib> , <http://topbraid.org/sparqlmotionfunctions> ; owl:versionInfo "Created with TopBraid Composer"^^xsd:string . :getHierarchy a spin:Function ; rdfs:label "get hierarchy"^^xsd:string ; rdfs:subClassOf spin:Functions ; spin:body [ a sp:Select ; sp:resultVariables (_:b1) ; sp:where ([ a sp:Let ; sp:expression [ a smf:buildString ; sp:arg1 "ThisIsATestXYZ" ] ; sp:variable _:b1 ]) ] ; spin:returnType xsd:string . _:b1 sp:varName "name"^^xsd:string .
