Created
September 1, 2022 07:50
-
-
Save phochste/f9ac5f05ad36c30aac6ba6ad2f76a7a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix : <urn:example:> . | |
@prefix log: <http://www.w3.org/2000/10/swap/log#> . | |
@prefix string: <http://www.w3.org/2000/10/swap/string#> . | |
:Let :string "hello world" . | |
(_:X _:Y) log:negativeSurface { | |
:Let :string _:X . | |
# _:X string:upperCase _:Y . | |
() log:negativeSurface { | |
:Let :capitalize true . | |
:Let :capitalize _:Y . | |
} | |
} . | |
# Filter out what to see in the output | |
(_:P _:O) log:querySurface { | |
:Let _:P _:O . | |
} . | |
(_:L _:R) log:querySurface { | |
_:L :capitalize _:R . | |
} . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment