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

Error importing data into GraphDB with curl #1512

Closed
subotic opened this issue Nov 10, 2019 · 5 comments · Fixed by #1527
Closed

Error importing data into GraphDB with curl #1512

subotic opened this issue Nov 10, 2019 · 5 comments · Fixed by #1527
Assignees
Labels
bug something isn't working
Milestone

Comments

@subotic
Copy link
Collaborator

subotic commented Nov 10, 2019

Steps:

  1. Load data into GraphDB and
  2. Run upgrade script

Error:

com.ontotext.trree.consistency.ConsistencyException: Consistency check empty_string_0 failed:
http://rdfh.ch/0807/21BTn-EJRpSFteiiOvApbg/values/V_m80QSURbOwKg2O6vzRyw http://www.knora.org/ontology/knora-base#valueHasString ""^^<http://www.w3.org/2001/XMLSchema#string>

Since there is no knora-base#valueHasString property on the resource before the upgrade, I guess it was added during upgrade.

@benjamingeer I will send you a link per email, where you can download the data.

@subotic
Copy link
Collaborator Author

subotic commented Nov 10, 2019

When you implement the fix, could you please base your branch on b4ce837, so that we can then release v10.0.1. Afterward, you can merge it into develop.

@subotic subotic added this to the 2019-11 milestone Nov 10, 2019
@subotic subotic changed the title Upgrade fails from v9.1.0 to v10.0.0 Fix upgrade from v9.1.0 to v10.0.0 Nov 10, 2019
@benjamingeer
Copy link

This seems to be a bug in GraphDB's parsing of the TriG input file. The input data contains a newline, not an empty string. If we import it via the GraphDB workbench, it works, but if we use curl, it doesn't.

@benjamingeer benjamingeer changed the title Fix upgrade from v9.1.0 to v10.0.0 Error importing data into GraphDB with curl Nov 13, 2019
@benjamingeer
Copy link

Ontotext are looking into this. For now, the workaround is to use the Manual Upgrade procedure, and to upload the transformed data to GraphDB using the GraphDB workbench instead of upload-repository.sh.

@benjamingeer
Copy link

Ontotext have kindly informed us that curl strips newlines from an upload when you use the -d/--data option (!) and you have to use --data-binary instead.

@subotic
Copy link
Collaborator Author

subotic commented Nov 22, 2019

great, thanks!

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

Successfully merging a pull request may close this issue.

2 participants