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

Empty turtle file after export #165

Closed
Tracked by #145
SvenLieber opened this issue Aug 14, 2019 · 1 comment
Closed
Tracked by #145

Empty turtle file after export #165

SvenLieber opened this issue Aug 14, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@SvenLieber
Copy link
Collaborator

How to reproduce the behavior:

Open the app and press the +Shape button to create a node shape and then press the +Property button to create a property shape.
Then go to the menu and export the SHACL file as turtle.
The turtle file is empty.

It works for json.

@fbrckman fbrckman added the bug Something isn't working label Aug 14, 2019
@fbrckman fbrckman mentioned this issue Aug 14, 2019
4 tasks
@fbrckman
Copy link
Collaborator

fbrckman commented Sep 9, 2019

As stated in #145:

In N3Serializer.serialize, jsonld.toRDF(model) returns an empty array in some cases. The model probably does not meet certain requirements. This is because ID's starting with a digit are treated as relative IRI's. Generated uuid's have a chance to start with a digit, causing them to be ignored since they are "invalid".

As of #198 (commit 944e221), ID's have to be valid IRI's to be accepted. This means that ID's cannot start with a digit anymore so that an empty Turtle file is no longer an issue.

@fbrckman fbrckman closed this as completed Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants