Skip to content

Fix/150 collection permalinks#170

Open
RalphBln wants to merge 3 commits into
mainfrom
fix/150-collection-permalinks
Open

Fix/150 collection permalinks#170
RalphBln wants to merge 3 commits into
mainfrom
fix/150-collection-permalinks

Conversation

@RalphBln

Copy link
Copy Markdown
Collaborator

This PR resolves #150.

It adds the possibility to use the collection permalink as a query parameter (e.g. https://terminology.services.base4nfdi.de/api-gateway/artefacts?collectionId=https://w3id.org/ts4nfdi/collection/dc45621d-7e40-47ce-9616-4133f0b54edf) and adds the collection permalink to the search result (if the collection uuid or permalink IRI has been used in the query).

The PR introduces the property http://base4nfdi.de/ts4nfdi/schema/collectionIRI because some artefacts have a value for http://www.w3.org/2002/07/owl#versionIRI already set (e.g., OLS uses the versionIRI property), which would then be overwritten.

@RalphBln RalphBln requested review from jusa3, kespera and nichtich June 10, 2026 18:51
return addCollectionIRI(filterOutByTerminologies(terminologiesCollection.getTerminologies(), data), terminologiesCollection);
}

protected AggregatedApiResponse addCollectionIRI(AggregatedApiResponse response, TerminologyCollection terminologyCollection) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field should not be http://base4nfdi.de/ts4nfdi/schema/collectionIRI but iri. The iri field should then be mapped to the subject URI in JSON-LD context document:

"@context": {
    "iri": "@id"

Existing field versionIRI could better be merged into identifier (unless there is a clear definition of its semantic difference, I don't see one).

@nichtich nichtich mentioned this pull request Jun 11, 2026
17 tasks
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

Successfully merging this pull request may close these issues.

Include URIs of collection entities

2 participants