-
Notifications
You must be signed in to change notification settings - Fork 1
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
New attribute literal label
set as Optional
#766
New attribute literal label
set as Optional
#766
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy that this change satisfies the ticket.
Have verified that the column name is used for label property when building a csvw
And it looks like the documentation portion has been addressed in ticket #520
Approving, but worth thinking if this needs a unit test to demonstrate what the problem is/was and the functionality now expected under the bug conditions. E.g.
When an attribute column is defined:
"columns": {
"My New Attribute Literal": {
"type": "Attribute",
"data_type": "decimal",
}
}
The metadata.json file should contain:
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@language": "en",
"@value": "Attribute"
}
],
@robons given it's such a small change, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoken with Rob - please can you add a unit test to demonstrate the issue/fix for this ticket.
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me!
Thank you for writing the test
Bug fix - changed NewAttributeLiteral
label
to Optional[str] - iflabel
not provided, it defaults to the column title.