Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Schema.org rendering of template #27

Merged
merged 4 commits into from Jul 20, 2016
Merged

Conversation

njall
Copy link
Contributor

@njall njall commented Jul 19, 2016

Hi,

I thought it might be a good idea to help the discoverability of training materials by having more metadata examples in the markdown, and by rendering the metadata into a schema.org CreativeWork specification using the JSON-LD representation.

If you think it's a good idea and accept the request, I can go about updating the existing Data Carpentry materials and format them similarly.

Structuring metadata using Schema.org is very useful for SEO to get included in more Google SERPs; as well as for content integration platforms like TeSS - The Life Science Training Portal. There's more about it on the working group page for BioSchemas

…k in layout.

Also added extra variables to the .md to render it correclty. These are examples - more schema.org/CreativeWork attributes can be added and useless ones can be removed
@hlapp
Copy link
Member

hlapp commented Jul 19, 2016

👍 on the Schema.org-based metadata.

Note that you have some seemingly unrelated changes in 00-lesson-00-name.md in the pull request. Did you mean to include them?

@njall
Copy link
Contributor Author

njall commented Jul 19, 2016

I accidentally changed the indentation of those comments/divs - It was sunny and I was anxious to go outside, sorry :) Do you want me to put them back? They're about inline anyway

@hlapp
Copy link
Member

hlapp commented Jul 19, 2016

@njall I wasn't referring to the indentation changes. I was referring to the changes to the YAML front matter of 00-lesson-00-name.md.

@njall
Copy link
Contributor Author

njall commented Jul 20, 2016

Ah right, the variables declared in the .md file are the attributes of the CreativeWork type. They are declared there and then rendered in JSON-LD in lesson.html. They need to be declared there for ease of use and so that the metadata 'stays with' the lesson in the .md file.

I've added a few example attributes but these variables could theoretically be the whole of http://schema.org/CreativeWork

@hlapp
Copy link
Member

hlapp commented Jul 20, 2016

Thanks for the explanation, @njall! Seems ready to merge from my end, but I'll leave that to @tracykteal or @ErinBecker 😄

@njall
Copy link
Contributor Author

njall commented Jul 20, 2016

Great :) I've added a few more metadata attributes - the ones that correlate to what TeSS uses to describe training materials e.g. https://tess.elixir-uk.org/materials/data-carpentry-spreadsheets-for-ecology

@tracykteal
Copy link
Collaborator

Thanks @njall, discoverability is definitely important, and this is a great contribution.

@tracykteal
Copy link
Collaborator

Looks good to me. If @njall you're happy with the current status, I'll merge.

@njall
Copy link
Contributor Author

njall commented Jul 20, 2016

Yep :) All good. Thanks!

@tracykteal tracykteal merged commit eb2e6f6 into datacarpentry:gh-pages Jul 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants