Replies: 2 comments
-
@HolgerKnublauch funny how I was mildly skeptical about binding variables and yet here I am, coming up with a potential usage already 🙈 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, excellent idea. Node Expressions at sh:message can solve this and we could introduce something like sh:printf as a node expression type to generate such strings easily. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was just looking at #204 and its discussion and I had this idea for binding computed values for interpolating in the message.
For example, @VladimirAlexiev writes
To bind the actual count to a variable, we could use a Node Expression
Note 1: the usage of
sh:value
violates itsrdfs:domain
Note 2:
sh:nodes [ sh:path sh:name ] ;
unnecessarily duplicates the Property Path. We could introduce a special Node Expression to abbreviate this tosh:nodes [ sh:activePath () ]
similarly tosh:activeNode
suggested by @HolgerKnublauchGoing one step further, I would even allow Node Expression to completely replace literal
sh:message
Note 3: how would that handle multiple languages though?
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions