Skip to content

Conversation

HolgerKnublauch
Copy link
Contributor

…ions to shnex.ttl

sh:Expression/NodeByExpression and annotations were just moved around within the document

This is quite geeky stuff due to the meta-levels:

  • The metaclasses such as sh:NamedParameterExpressionFunction
  • The actual node expression functions are then instances of sh:NamedParameterExpression, these declare the parameters such as sh:filterName and sh:nodes
  • The instances of those are the blank nodes (with values for sh:filterShape), although their rdf:type is usually never asserted

I hope I got these metalevels correct, so please double check anyone :)

Closes #504

…ions to shnex.ttl

sh:Expression/NodeByExpression and annotations were just moved around within the document
Copy link
Member

@TallTed TallTed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No obvious issues, to my eye.

@HolgerKnublauch
Copy link
Contributor Author

I would appreciate some approval of this PR because it is blocking other PRs that also require edits to the shnex.ttl file. @recalcitrantsupplant @simonstey @robert-david

Copy link
Contributor

@recalcitrantsupplant recalcitrantsupplant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. My understanding here is the spec defined named parameter functions are both instances of sh:NamedParameterExpressionFunction, and also subclass sh:NamedParameterExpression, which enables explicit parameter linking from the key parameters (sh:Parameter), to the function using rdfs:domain.

@HolgerKnublauch HolgerKnublauch merged commit 51687d6 into gh-pages Aug 25, 2025
1 check passed
@HolgerKnublauch
Copy link
Contributor Author

Thank you. It is possible that we revisit the metaclasses, but at least we now have the URIs and parameter declarations in TTL form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Declare all Node Expression types in TTL
3 participants