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

Add support for bioschemas markup of training materials #147

Open
pvanheus opened this issue Jan 15, 2024 · 3 comments
Open

Add support for bioschemas markup of training materials #147

pvanheus opened this issue Jan 15, 2024 · 3 comments

Comments

@pvanheus
Copy link

The BioSchemas Training Material profile is an extension of Schema.Org markup to support annotating training material (in the life sciences). This enhances the FAIR-ness of training material by adding machine-readable markup to pages.

It is fairly straightforward to add this markup to Github pages sites. In my experiments adding

{% if page.bioschemas %}
<script type="application/ld+json">
     {{ page.bioschemas | jsonify }}
 </script>  
{% endif %}

to _layouts/course_page.html was enough. Before making a PR, I'd like to hear if this addition is on interested to the broader Course-In-A-Box community.

@dirkcuys
Copy link
Member

Hi @pvanheus

Thanks, that would be useful! The proposed code seems pretty close to what would be need for adding any jsonld schema. Can you think of any downside to generalizing the proposed solution?

It would also be useful to add some information about using schemas to the customize section.

@pvanheus
Copy link
Author

@dirkcuys yes, you're right this work work for any jsonld schema. So should it simply be changed to:
`

{% if page.jsonld %}
<script type="application/ld+json">
     {{ page.jsonld | jsonify }}
 </script>  
{% endif %}

?

Once this is agreed I'll add documentation to the customize section.

@dirkcuys
Copy link
Member

Yep, that would be perfect, thanks!

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

2 participants