AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
204 stars 51 forks source link

MemoryModel and Adapter error for very linked instance #425

Open cfrancois7 opened 7 years ago

cfrancois7 commented 7 years ago

This issue seems similar to the issue 192 but happens even when the module linking here is not activated.

I got an error a 500 internal server error when I try to reach an instance linked to an instance that is linked with a lot of another instance. The most explicit log is in the ontowiki.log:

[Virtuoso iODBC Driver][Virtuoso Server]HT057: The STRING session in string_output_string is longer than 10Mb. Either use substring to access it in parts or place less data in it. () on querying graph <NULL> with query: define output:format "JSON"

SELECT ?s ?p
FROM <http://www.ecoinvent.org/2013/ecospold#>
WHERE{?s ?p <http://www.ecoinvent.org/2013/ecospold#flowType/toEnvironment> . }  -> /usr/local/var/www/htdocs/vendor/aksw/erfurt/library/Erfurt/Store/Adapter/Virtuoso.php@1058

And also in the apache log:

Fatal error: Maximum execution time of 300 seconds exceeded in /usr/local/var/www/htdocs/vendor/aksw/erfurt/library/Erfurt/Rdf/MemoryModel.php on line 382

The error appears when I load an instance that is linked to one or several such "very linked" instances. How is possible to limit the loading of data?

EDIT: it appears when the instance is linked to one only such "very linked" instance there is no error. But when it exists several such instances, the error is raised. Note: I deactivated the resource module (module linkinghere), but nothing better.