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

The default config gives an error: Invalid predicate IRI: freshDuration #21

Open
woutslabbinck opened this issue May 16, 2024 · 0 comments

Comments

@woutslabbinck
Copy link
Contributor

If you start the server with the default config:

npm i @solid/community-server ldes-solid-server
wget https://github.com/rdf-connect/LDES-Solid-Server/blob/master/server/examples/config-ldes.json

npx @solid/community-server -c config-ldes.json

The following error is given:

2024-05-16T12:28:00.457Z [Components.js] info: Discovered 169 component packages within 531 packages
2024-05-16T12:28:00.459Z [Components.js] info: Initiating component loading
2024-05-16T12:28:04.261Z [Components.js] info: Registered 907 components
2024-05-16T12:28:04.262Z [Components.js] info: Loaded configs
Could not build the config files from ...config-ldes.json
Error: Error while parsing file "/...config-ldes.json": Invalid predicate IRI: freshDuration

The reason is that in the view in the config, freshDuration is an argument to the constructor:

But in the SDS Mongo View, this is not the case:

constructor(members: string[], relations: RelationParameters[], collection: Collection<DataCollectionDocument>, cacheDirectives: CacheDirectives) {
this.collection = collection;
this.members = members;
this.relations = relations;
this.cacheDirectives = cacheDirectives;
}

It is however part of the constructor of the LDESStore (though it has a default, so it is not mandatory):

constructor(
views: PrefixView[],
base: string,
relativePath: string,
freshDuration: number = 60,
id?: string,
shape?: string,
) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant