-
Notifications
You must be signed in to change notification settings - Fork 45
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
Changes to AI profile to accommodate expressing energyConsumption #697
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.
Couple changes to be consistent with the naming conventions
Proposed extension classes to support CDX properties (spdx#672)
Signed-off-by: Gopi Krishnan Rajbahadur gopikrishnanrajbahadur@gmail.com |
@bact @goneall @kestewart Please take a look at this PR. I have made the requested changes and combined all the changes here. Please let me know your thoughts. |
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.
A few file renamings requested. Note - the renamed files will trigger a more robust CI checking.
@rgopikrishnan91 - can you apply the file extension changes that Gary flagged, and the clarification of kWh from Art, and then I'lll apply this. Merged patch looks good - thanks for doing this. |
…mptionDescriptionUnitType.md
@kestewart @goneall @bact I have made the request changes. Could you guys please review it and merge it? |
Not sure what the parser is complaining about..I haven't changed anything drastic... |
Thanks @rgopikrishnan91 It looks like the validation is failing:
I haven't had time to research, but there is probably a reference to a class or property with the name |
Yes, @goneall and @rgopikrishnan91 : |
Thanks @zvr - @rgopikrishnan91 - you'll need to add property files for |
Thank you @rgopikrishnan91 and @zvr. If so, since:
could we also rename them to Also shorten They may all look like this: (1) [MODIFIED] SPDX-License-Identifier: Community-Spec-1.0
# EnergyConsumptionDescription
## Summary
The class that helps note down the quantity of energy consumption and the unit
used for measurement.
## Description
This class is designed to store energy consumption data, including the quantity
and the unit of measurement.
The energyQuantity property stores the amount of energy consumed,
and the energyUnit property stores the unit used for measurement.
## Metadata
- name: EnergyConsumptionDescription
- Instantiability: Concrete
## Properties
- energyQuantity
- type: xsd:decimal
- minCount: 1
- maxCount: 1
- energyUnit
- type: EnergyUnitType
- minCount: 1
- maxCount: 1 (2) [NEW] SPDX-License-Identifier: Community-Spec-1.0
# energyQuantity
## Summary
Represents the energy quantity.
## Description
Provides the quantity information of the energy.
## Metadata
- name: energyQuantity
- Nature: DataProperty
- Range: xsd:decimal (3) [NEW] SPDX-License-Identifier: Community-Spec-1.0
# energyUnit
## Summary
Specifies the unit in which energy is measured.
## Description
Provides the unit information of the energy.
## Metadata
- name: energyUnit
- Nature: ObjectProperty
- Range: EnergyUnitType (4) [MODIFIED] (Was: SPDX-License-Identifier: Community-Spec-1.0
# EnergyUnitType
## Summary
Specifies the unit of energy consumption.
## Description
List the different acceptable units for measuring energy consumption.
If the unit in which the energy consumption has been recorded
is not listed here, please select "other".
## Metadata
- name: EnergyUnitType
## Entries
- kilowattHour: Kilowatt-hour.
- megajoule: Megajoule.
- other: Any other units of energy measurement. Thanks Gopi again for all the efforts. |
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.
@rgopikrishnan91 - can you apply the fixes that Art, Alexios & Gary suggest?
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.
See comments from Art, Alexios & Gary
@kestewart @goneall @bact @zvr Hi thanks for all the comments and feedback. I have made the required changes and the parser seems to be happy now. Please let me know if these changes look good. |
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.
Looks good to me as well. Thank you everyone. |
@kestewart @goneall This is part 4 of the PR. Please review it. With this the changes we discussed for Energy consumption should be done.