Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 no link to concept scheme #2

Merged
merged 6 commits into from
Jan 31, 2023
Merged

1 no link to concept scheme #2

merged 6 commits into from
Jan 31, 2023

Conversation

sroertgen
Copy link
Contributor

I removed the shape in question and also added basic test functionality for the shape.

See https://github.com/skohub-io/shapes/tree/1-no-link-to-concept-scheme#tests for my idea of testing the shape.

@sroertgen sroertgen requested a review from acka47 January 25, 2023 14:06
@sroertgen sroertgen self-assigned this Jan 25, 2023
@sroertgen sroertgen linked an issue Jan 25, 2023 that may be closed by this pull request
@sroertgen
Copy link
Contributor Author

I just came across this SHACL Test Suite report: https://w3c.github.io/data-shapes/data-shapes-test-suite/

If we would like to dig deeper into testing this shape, this might be an interesting option.

Copy link
Member

@acka47 acka47 left a comment

Choose a reason for hiding this comment

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

Aren't tests/valid/ConceptShape.ttl and tests/valid/OrphanConcepts.ttl identical? I don't see why we need both.

@sroertgen
Copy link
Contributor Author

They are indeed identical. My idea (that I apparently did not write down) was that maybe a test file is added per shape to test that shape. So OrpahnConcepts.ttl should be the data to test the :OrphanConcepts shape and ConceptShape.ttl would be the data to test :ConceptShape.

@acka47
Copy link
Member

acka47 commented Jan 31, 2023

It would probably reduce possible misunderstanding when the "Error" notes in by the test.sh script would include the filename where the error occured insteadof just "Error: This should be invalid, but is valid" referring to the previous line. (I at least was unsure to what this refers in the first try.)

@acka47 acka47 self-requested a review January 31, 2023 09:10
Copy link
Member

@acka47 acka47 left a comment

Choose a reason for hiding this comment

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

Generally, this looks fine. You may think about adressing my last comment but it is not necessary. I will have to understand this whole better in the future by taking a more thorough look at it.

@sroertgen
Copy link
Contributor Author

That's a good point. I added the filename to the error message.

@sroertgen sroertgen merged commit f05283e into main Jan 31, 2023
@sroertgen sroertgen deleted the 1-no-link-to-concept-scheme branch January 31, 2023 09:35
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.

NoLinkToConceptScheme is to restrictive
2 participants