Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPD] Add argument declarations to :execute-greeting function in doc/examples/hello-world/hello-world.sms.ttl #217

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading