Skip to content

Commit

Permalink
Merge pull request #217 from kbss-cvut/issues/issue-213-add-missing-p…
Browse files Browse the repository at this point in the history
…arameters-of-functions-in-examples

[UPD] Add argument declarations to :execute-greeting function in doc/examples/hello-world/hello-world.sms.ttl
  • Loading branch information
blcham authored Sep 29, 2023
2 parents d437843 + 064b1b8 commit d864986
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/examples/hello-world/hello-world.sms.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ CONSTRUCT {
:execute-greeting
a sm:Function ;
sm:returnModule :express-greeting_Return ;
rdfs:comment "This function constructs a hello world message for a person given their first and last name."
spin:constraint [
rdf:type spl:Argument ;
spl:predicate :firstName ;
spl:optional "false"^^xsd:boolean ;
rdfs:label "first name" ;
rdfs:comment "The first name of the greeted person" ;
] ;
spin:constraint [
rdf:type spl:Argument ;
spl:predicate :lastName ;
spl:optional "false"^^xsd:boolean ;
rdfs:label "last name" ;
rdfs:comment "The last name of the greeted person" ;
] ;
.
:express-greeting_Return
a sml:ReturnRDF ;
Expand Down

0 comments on commit d864986

Please sign in to comment.