Server.js
Server.js copied to clipboard
CompositeDatasource gives incorrect results
I have a config with multiple JsonldDatasources. They are all combined in a single CompositeDatasource. When visiting the server in the browser it shows then next and previous links for the CompositeDatasource, but they send you to empty pages sometimes. It says also that there are like 24 triples but it only shows like 12 or something. Also querying the server gives incomplete results.
I have a config with multiple JsonldDatasources.
How many sources exactly?
It says also that there are like 24 triples but it only shows like 12 or something
What is the expected number of triples? 24, 12, or something else?
How many sources exactly?
I think it starts going wrong after having more than 12 datasources.
What is the expected number of triples? 24, 12, or something else?
Well, I think here that the number displayed on the top is correct, but the number displayed on the pages is wrong. So if it says 24 you will get less.
So apparently it's not related to JsonldDatasources specifically. It also happens with TurtleDatasources, but this time I have the actual data, so also a minimum failing example. I tested it with the latest version and executed it with the included config.json.
If I point my browser to http://localhost:3000/rankings?predicate=http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23type I get

It says 26 on this page. That is correct. When I click next however I get an empty page:

Although, you would expect more triples, because the first page says that the total is 66 and I know that there are more triples to be found besides the 26 shown because there are more triples with rdf:type in the data files.
Hope this helps!
May be related to #89.