Skip to content

#964: Added shnex:conformsTo#972

Open
HolgerKnublauch wants to merge 3 commits into
gh-pagesfrom
issue-964
Open

#964: Added shnex:conformsTo#972
HolgerKnublauch wants to merge 3 commits into
gh-pagesfrom
issue-964

Conversation

@HolgerKnublauch

Copy link
Copy Markdown
Contributor

@HolgerKnublauch HolgerKnublauch changed the title #964 #964: Added shnex:conformsTo Jul 2, 2026
@nicholascar nicholascar self-requested a review July 2, 2026 04:57

@nicholascar nicholascar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We have already added a property to the SHACL vocabulary called sh:conformsTo: https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-vocabularies/shacl.ttl#L226-L234

Will the naming of this function be confusing given this property?

@HolgerKnublauch

Copy link
Copy Markdown
Contributor Author

Yes I saw that duplication. I originally suggested shnex:hasShape, but Andy suggested the current name (see issue discussion).

What name would you suggest, @nicholascar ?

@nicholascar

nicholascar commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

sh:conformsTo follows on from dcterms:conformsTo, so I must claim precedence of form there!

Also, if the expected range value is a boolean, conforms to does't make sense. Conforms to what? In DCTERMS, conforms to indicates the thing that the resource does conform to.

I suggest shnex:doesConform. This is more 'active' than shnex:hasShape and indicates a boolean with its wording.

@HolgerKnublauch

Copy link
Copy Markdown
Contributor Author

Other options: shnex:conformsToShape, shnex:nodeConformsToShape
These are a bit longer but shnex:doesConform could mean anything (what conforms to what here)?

Comment thread shacl12-node-expr/index.html Outdated
@afs

afs commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

shnex uses "matches" -- shnex:matchAll and also shnex:nodesMatches.

matchAll is the stream equivalent so shnex:conformTo

So something like shnex:nodeMatches, shnex:hasMatch, shnex:matchesShape, might work.

@HolgerKnublauch

Copy link
Copy Markdown
Contributor Author

Yes, shnex:nodeMatches or shnex:matchesShape sound good to me. Would you remove your objection, @nicholascar and which one is best?

@HolgerKnublauch HolgerKnublauch added the Node Expressions For SHACL 1.2 Node Expressions label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Node Expressions For SHACL 1.2 Node Expressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add function to check conformance of a node (shnex:hasShape, shnex:conformsTo)

3 participants