Skip to content

Instantly share code, notes, and snippets.

@phochste
Created September 1, 2022 07:50
Show Gist options
  • Save phochste/f9ac5f05ad36c30aac6ba6ad2f76a7a9 to your computer and use it in GitHub Desktop.
Save phochste/f9ac5f05ad36c30aac6ba6ad2f76a7a9 to your computer and use it in GitHub Desktop.
@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