Server.js icon indicating copy to clipboard operation
Server.js copied to clipboard

CompositeDatasource gives incorrect results

Open pheyvaer opened this issue 6 years ago • 4 comments

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.

pheyvaer avatar Nov 26 '19 10:11 pheyvaer

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?

rubensworks avatar Nov 26 '19 10:11 rubensworks

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.

pheyvaer avatar Nov 26 '19 10:11 pheyvaer

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

Screen Shot 2019-11-27 at 19 02 34

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

Screen Shot 2019-11-27 at 19 03 39

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!

pheyvaer avatar Nov 27 '19 18:11 pheyvaer

May be related to #89.

rubensworks avatar Feb 20 '20 11:02 rubensworks