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

Errors on creation of resources with huge Richtext value #1293

Closed
gfoo opened this issue Apr 5, 2019 · 5 comments · Fixed by #1307
Closed

Errors on creation of resources with huge Richtext value #1293

gfoo opened this issue Apr 5, 2019 · 5 comments · Fixed by #1307
Assignees
Labels
API/V2 bug something isn't working standoff

Comments

@gfoo
Copy link

gfoo commented Apr 5, 2019

Don't really know if it is errors in my data/standoff mapping or bugs?
Could you give some help by trying to reproduce these errors:

{"error":"org.knora.webapi.InconsistentTriplestoreDataException: Expected http://www.w3.org/2000/01/rdf-schema#label in assertions for a value object of type list value."}
{"error":"java.util.NoSuchElementException: key not found: http://www.knora.org/ontology/knora-base#standoffTagHasEnd"}
{"error":"java.util.NoSuchElementException: key not found: http://www.knora.org/ontology/knora-base#standoffTagHasStart"}

All tests are described in the README of FailedImportTrans.zip

@gfoo gfoo added the question further information is requested label Apr 5, 2019
@benjamingeer
Copy link

benjamingeer commented Apr 5, 2019

When I run ./load-onto.expect, I get an error:

knora-test> load ./lumieres-lausanne_permissions.ttl into http://www.knora.org/data/permissions .
Loading data...
Malformed document: Expected ':', found ' ' [line 231]

It's because the file contains this line, which should be a comment but isn't:

Inutile compte-tenu des DOAP sur les groupes.

After commenting out that line, I can still reproduce your error. Trying to figure it out now.

@benjamingeer benjamingeer self-assigned this Apr 5, 2019
@gfoo
Copy link
Author

gfoo commented Apr 5, 2019

oups sorry, didn't see that comment. thx

@benjamingeer
Copy link

This is because of the same problem as #913. The error happens because of the configured limit on the maximum number of rows in a query result in GraphDB:

https://github.com/dhlab-basel/Knora/blob/develop/webapi/scripts/graphdb-se-knora-test-repository-config.ttl.tmpl#L20

As a workaround, you can comment out the line with owlim:query-limit-results before creating your repository, or set "Limit query results" to 0 in the repository configuration in the GraphDB Workbench.

@benjamingeer
Copy link

You might find that it will be more efficient to split a long text into smaller pieces (e.g. chapters of a book).

@gfoo
Copy link
Author

gfoo commented Apr 8, 2019

Fine, it works now with owlim:query-limit-results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API/V2 bug something isn't working standoff
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants