This repo’s README is titled @dasch-swiss/dsp-ui but I’m pretty sure that it is a typo.
2. install
what is the preferred way to install it? fresh code from github and local registry or npm official @knora/api package?
3. knora-api version requirements
the first test that I do points to an error in deserializing lastModificationDate being Not of expected type xsd:dateTimeStamp, I remember having seen that on a knora-api release:
what are the versions requirements between knora-api-js-lib and knora-api releases?
4. error handling
I call a KnoraApiConnection.v2.search.doExtendedSearch(gravsearchQuery)
regarding this RC, so it is going to change soon, as I understand client knora-api/1.0.0-rc1 is not backward compatible with server knora-api v11. Now we have some code using client knora-api/0.2.0, will moving the server from v11 to v13 will break it?
for a project that requires a web app, we are using knora-api/1.0.0-rc1 and I set up a matching knora stack for it (knora-api v13.0.0-rc.3), but I get very strange results.
I put up a demo for it:
when ran as is, facing a knora v11 stack, it seems to work fine, switching to my knora v13-rc3 (with ng serve -c test2), it gets a strange error.
here is the gravsearch query that is sent:
PREFIX knora-api: <http://api.knora.org/ontology/knora-api/v2#>
PREFIX theatre-societe: <http://api-test2.unil.ch/ontology/0103/theatre-societe/v2#>
CONSTRUCT {
?mainRes knora-api:isMainResource true .
} WHERE {
?mainRes a knora-api:Resource .
?mainRes a theatre-societe:Representation .
}
OFFSET 0
and the error message that I get:
Error: "Invalid resource class Iri http://api-test2.unil.ch/ontology/0103/theatre-societe/v2#Representation"
and the strangest thing is that when the request (without the OFFSET) is pasted on the knora-app of that knora-v13-rc3 stack, it works fine too.
Unfortunately the knora-v13-rc3 stack is behind a firewall hidding it.
I have no clue if it is a sign of a bigger problem or if it is not worth investigating with the forthcoming releases.
Could you try this with a full resource request (not Gravsearch)?
Ontologies in Gravsearch need to be configured correctly. Could you see what you get back when you request a whole ontology (domain, port)? If the domain or port are not correct, Gravsearch will throw an error. This has nothing to do with the JS lib.
just to be more clear, the request is sent to knora, which answers with a page of 25 matches and knora-api-js-lib does not recognize the IRI as a valid one.
the knora server’s port is added, so the following lines look for http://api-test2.unil.ch:23333/ontology/ where the entity is http://api-test2.unil.ch/ontology/0103/theatre-societe/v2#Representation
knora runs on default 3333 and I map it to 23333 as there are several instances running there:
Name Command State Ports
----------------------------------------------------------------------------------------
test2_api_1 bin/webapi -Dconfig.file=/ ... Up 0.0.0.0:23333->3333/tcp