This wiki is locked. Future workgroup activity and specification development must take place at our new wiki. For more information, see this blog post about the new governance model and this post about changes to the website.

DRAFT Comment Specification

ChangeRequest? .comments -> Comments.comment *-> Comment

Additional property on ChangeRequest resource shape:

  • Name: comments
  • Description: The Comments property holds a reference to the set of all comments on a ChangeRequest?
  • Occurs: at-most-one
  • Value-type: Resource Comments
  • Version: 2.0

Resource: Comments

  • Name: Comments
  • Type URI: http://open-services.net/xmlns/cm/2.0#Comments
  • Version: 2.0
  • Description: Contains zero-or-many Comment properties
  • Properties of Comments resource shape:
    • comment (Resource Comment, zero-or-more) A comment or not on the associated Change Request

Resource: Comment

  • Name: Comment
  • Type URI: http://open-services.net/xmlns/cm/2.0#Comment
  • Version: 2.0
  • Description: Data necessary to represent a comment
  • Properties:
    • dc:identifier (exactly-one)
    • dc:creator (exactly-one)
    • dc:created (exactly-one)
    • oslc_cm:body (XMLLiteral xhtml, exactly-one)
    • oslc_cm:changeRequest (exactly-one) reference to associated change request
    • dc:title (XMLLiteral xhtml, zero-or-one)
    • oslc_cm:inReply-to (URI, zero-or-one) reference to comment this comment is in reply to

Sample

ChangeRequest? with comments inlined (RDF/XML)

Click HERE to see RDF/XML validation results

<?xml version="1.0" encoding="UTF-8"?>
<oslc_cm:ChangeRequest
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:oslc_cm="http://open-services.net/xmlns/cm/2.0#" 

  rdf:about="http://example.com/bugs/2314">
  
  <oslc_cm:comments>
    <oslc_cm:Comments rdf:about="http://myserver/mycmapp/bugs/2314/comments">
      <oslc_cm:comment>
       <oslc_cm:Comment rdf:about="http://myserver/mycmapp/bugs/2314/comments/1">
        <dc:identifier>comment1</dc:identifier>
        <dc:creator rdf:resource="http://myserver/mycmapp/users/joe" />
        <dc:title>comment title 1</dc:title>
        <dc:created>2008-07-04T11:00:00.000Z</dc:created>
        <oslc_cm:body rdf:parseType="Literal">
          This is my comment
        </oslc_cm:body>
        <oslc_cm:changeRequest rdf:resource="http://example.com/bugs/2314" />
        <oslc_cm:inReplyTo rdf:resource="" />
       </oslc_cm:Comment>
      </oslc_cm:comment>
      <oslc_cm:comment>
       <oslc_cm:Comment rdf:about="http://myserver/mycmapp/bugs/2314/comments/2">
        <dc:identifier>Comment 2</dc:identifier>
        <dc:creator rdf:resource="http://myserver/mycmapp/users/joe" />
        <dc:title>comment title 2</dc:title>
        <dc:created>2008-07-05T11:00:00.000Z</dc:created>
        <oslc_cm:body rdf:parseType="Literal">
          This is my 2nd comment
        </oslc_cm:body>
        <oslc_cm:changeRequest rdf:resource="http://example.com/bugs/2314" />
        <oslc_cm:inReplyTo rdf:resource="http://myserver/mycmapp/bugs/2314/comments/1" />
       </oslc_cm:Comment>
      </oslc_cm:comment>
    </oslc_cm:Comments>
  </oslc_cm:comments>
      
</oslc_cm:ChangeRequest>
Topic attachments
I Attachment Action Size Date Who Comment
xmlxml cr_v2.xml manage 1.7 K 13 Apr 2010 - 19:38 SteveSpeicher  
Edit | Attach | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 13 Apr 2010 - 19:38:57 - SteveSpeicher
 
This site is powered by the TWiki collaboration platform Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding this site? Send feedback