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

Test: anchor names do not convey semantic information #103

Open
anatoly-scherbakov opened this issue Jun 25, 2023 · 2 comments
Open

Test: anchor names do not convey semantic information #103

anatoly-scherbakov opened this issue Jun 25, 2023 · 2 comments

Comments

@anatoly-scherbakov
Copy link
Contributor

Generate a YAML-LD document with an anchor, and an alias to that anchor, where the anchor name is a random string such that is a valid YAML identifier.

Convert that document into RDF.

Compare the result against the predefined sample to ensure that, with any anchor name, the document still represents the same RDF.

@gkellogg
Copy link
Member

You could have different entities making the same assertion, but just using different anchor/aliases and verify that it results in only a single triple.

@anatoly-scherbakov
Copy link
Contributor Author

@gkellogg Indeed, thank you for the suggestion — it is probably easier to implement.

The randomization approach tests that among different test runs while your approach works within one test run. I do not have any strong preference between the two.

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

No branches or pull requests

2 participants