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

Feature/dataset jsonld comp #162

Merged
merged 6 commits into from
Feb 21, 2020
Merged

Feature/dataset jsonld comp #162

merged 6 commits into from
Feb 21, 2020

Conversation

Myoxocephalus
Copy link
Contributor

Added jsonld for dataset.

Copy link
Owner

@garmeeh garmeeh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, just one small change needed.

"@type": "Dataset",
"description": "${description}",
"name": "${name}"${
license
Copy link
Owner

Choose a reason for hiding this comment

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

At the moment if license is added it will be invalid JSON due to no trailing comma on name.

To fix this if you put name last and then update license to always have trailing comma like so: "license": "${license}",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi!
I will actually be a comma on name if license is provided.
See line 23.
The result will be like this:
{
"@context": "http://schema.org",
"@type": "Dataset",
"description": "The description needs to be at least 50 characters long",
"name": "name of the dataset",
"license": "https//www.example.com"
}
The solution is the same as providerUrl in course component.

Copy link
Owner

Choose a reason for hiding this comment

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

😅 Whoops missed that. Perfect 👌

"@type": "Dataset",
"description": "${description}",
"name": "${name}"${
license
Copy link
Owner

Choose a reason for hiding this comment

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

😅 Whoops missed that. Perfect 👌

@garmeeh garmeeh merged commit 0add384 into garmeeh:master Feb 21, 2020
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.

None yet

2 participants