Skip to content

Commit

Permalink
update to 0.4.2
Browse files Browse the repository at this point in the history
make the reviews a composition inside SubmittedProposals
  • Loading branch information
pahjbo committed May 29, 2024
1 parent 589a466 commit 9c2ebce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/main/vo-dml/proposalManagement.vo-dml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title></title>
<author>Paul Harrison</author>
<version>0.4</version>
<lastModified>2024-05-24T14:21:25Z</lastModified>
<lastModified>2024-05-29T14:57:11Z</lastModified>
<import>
<name>null</name><!--should not be needed in modern vo-dml -->
<url>IVOA-v1.0.vo-dml.xml</url>
Expand Down Expand Up @@ -302,6 +302,18 @@
<maxOccurs>1</maxOccurs>
</multiplicity>
</attribute>
<composition>
<vodml-id>SubmittedProposal.reviews</vodml-id>
<name>reviews</name>
<description>the reviews</description>
<datatype>
<vodml-ref>proposalManagement:ProposalReview</vodml-ref>
</datatype>
<multiplicity>
<minOccurs>1</minOccurs>
<maxOccurs>-1</maxOccurs>
</multiplicity>
</composition>
<reference>
<vodml-id>SubmittedProposal.proposal</vodml-id>
<name>proposal</name>
Expand Down Expand Up @@ -397,18 +409,6 @@
<maxOccurs>1</maxOccurs>
</multiplicity>
</attribute>
<reference>
<vodml-id>ProposalReview.proposal</vodml-id>
<name>proposal</name>
<description>the submitted proposal</description>
<datatype>
<vodml-ref>proposalManagement:SubmittedProposal</vodml-ref>
</datatype>
<multiplicity>
<minOccurs>1</minOccurs>
<maxOccurs>1</maxOccurs>
</multiplicity>
</reference>
<reference>
<vodml-id>ProposalReview.reviewer</vodml-id>
<name>reviewer</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/vodsl/proposalManagement.vodsl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ otype ProposalCycle "Defines collection of resources and proposals for a particu
submissionDate : ivoa:datetime "the date that the proposal was submitted";
successful : ivoa:boolean "the proposal can go on to allocation";
reviewsCompleteDate : ivoa:datetime "the date when all the proposals are due";
reviews : ProposalReview @+ as composition "the reviews";
}


Expand All @@ -66,7 +67,6 @@ otype ProposalCycle "Defines collection of resources and proposals for a particu
}

otype ProposalReview "A review of a proposal" {
proposal references SubmittedProposal "the submitted proposal";
reviewer references Reviewer "the reviewer making this review";
comment: ivoa:string "Description";
score : ivoa:real "the review score";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public EmerlinExample () {
}
));
// "submit" proposal
final SubmittedProposal submittedProposal = new SubmittedProposal( new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), proposal);
final SubmittedProposal submittedProposal = new SubmittedProposal( new GregorianCalendar(2022, 3, 14).getTime(), false, new GregorianCalendar(2022, 4, 30).getTime(), null, proposal);
cycle.setSubmittedProposals(
Arrays.asList(submittedProposal));

Expand Down

0 comments on commit 9c2ebce

Please sign in to comment.