Skip to content

Conversation

@das-Abroxas
Copy link
Contributor

This introduces a Bioschemas-compliant JSON-LD representation to the resource landing pages. By embedding structured metadata that adheres to the Bioschemas specifications, we enhance the discoverability and interoperability of our resources in search engines and other platforms. This addition will allow for better indexing, making our resources more accessible and easier to integrate with external systems. The JSON-LD implementation follows best practices to ensure alignment with Bioschemas guidelines and improve the overall semantic richness of our web pages.

Changes

  • Get license requests are now cached on the server-side
  • New server-side API route to fetch complete ResourceInfo object: /api/resource-info
  • New server-side API route to fetch JSON-LD representation of a specific resource: /api/object/[id]/json-ld
  • Get requests to landing pages containing the header Content-Type: application/ld+json return the JSON-LD representation of the resource
  • Landing pages now contain the Bioschemas-compliant JSON-LD representation of the resource in the <head> section of the page

This endpoint returns a complete ResourceInfo object and leverages the
server-side cached licenses
Returns the raw JSON-LD object from the resource-info route
Intercepts all requests of resource landing pages which contain the
header 'Content-Type: application/ld+json' and returns the raw
JSON-LD object of the resource
This property can also be read on the server-side and therefore be
used for the SSR JSON-LD generation without access required to the
window, the current route or any request from a client
Landing pages now fetch a complete ResourceInfo object accompanied by
its JSON-LD representation. This can then already be integrated in the
page header at the SSR stage.
@das-Abroxas das-Abroxas added the enhancement New feature or request label Aug 9, 2024
@das-Abroxas das-Abroxas self-assigned this Aug 9, 2024
@das-Abroxas das-Abroxas changed the title Bioschema JSON-LD for resources Bioschemas JSON-LD for resources Aug 9, 2024
Copy link
Member

@St4NNi St4NNi left a comment

Choose a reason for hiding this comment

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

Nice addition to include the JSON-LD representation for objects!

@das-Abroxas das-Abroxas merged commit ca2d5eb into main Aug 13, 2024
@das-Abroxas das-Abroxas deleted the feat/resource-jsonld branch August 15, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants