Skip to content

Commit

Permalink
Update hello-world.md
Browse files Browse the repository at this point in the history
  • Loading branch information
blcham committed Nov 26, 2022
1 parent 0e76e58 commit ec9fe7b
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions doc/examples/hello-world/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,18 @@ of constructed RDF.
rdfs:label "Bind person name" ;
.
:bind-person-id
a sml:BindWithConstant ;
sm:next :construct-greeting ;
sm:outputVariable "personId" ;
sml:value [
a sp:replace ;
sp:arg1 [
a sp:lcase ;
sp:arg1 [
sp:varName "personName" ;
] ;
] ;
sp:arg2 " " ;
sp:arg3 "-" ;
] ;
rdfs:label "Bind person id" ;
a sml:BindBySelect ;
sm:next :construct-greeting ;
sml:selectQuery [
a sp:Select ;
sp:text """
SELECT ?personId
WHERE {
BIND(replace(lcase(?personName)," ", "-") as ?personId)
}
""" ;
] ;
rdfs:label "Bind person id" ;
.
```
5) Construct RDF triples -- finally, we construct RDF triples using SPARQL construct query.
Expand Down

0 comments on commit ec9fe7b

Please sign in to comment.