I'm working with Ontodia javascript library to present my graphdb rdf data set.
There's this error I couldnt find the cause of it, which happens onload:
RangeError: Maximum call stack size exceeded.
This function is exactly as the DOCS describes you should connect to your sparql endpoint.
function onWorkspaceMounted(workspace) {
if (!workspace) {
return;
}
workspace.getModel().importLayout({
dataProvider: new SparqlDataProvider(
{
endpointUrl: REACT_APP_API_URL + "/sparql/query",
imagePropertyUris: ["http://xmlns.com/foaf/0.1/img"],
queryMethod: SparqlQueryMethod.GET,
queryFunction: ontodiaQueryFunction
},
OWLStatsSettings
)
});
}
I have the feeling something is not valid with the response I get from ...queryFunction: ontodiaQueryFunction
, and Ontodia might have a problem dealing with it, but that's just a guess. Though I did log the resolved promise of ontodiaQueryFuncion
to see I get a legit response, and it does look legit.
Did you run into a similar issue? or familiar with this error?
I found the fix here: https://github.com/metaphacts/ontodia/issues/187
and BTW, they say this was fixed in v0.9.9