Module api :: Class Post
[hide private]
[frames] | no frames]

Class Post
source code

     object --+    
              |    
BagOfAttributes --+
                  |
                 Post



Instance Methods [hide private]
  __init__(self, node)
node a Post element node from a minidom:

Inherited from BagOfAttributes: __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, node)
(Constructor)

source code 
node a Post element node from a minidom:
 <Post rdf:about="[ URL of this post on Connotea ]">
   <title> [ The title the user gave to the post.
          This may be different to the bookmark title and the citation title. ] </title>
   <description> [ description ] </description>

   <!-- A list of tags that this user assigned to thir post -->
   <dc:subject> [ tag 1 ] </dc:subject>
   <dc:subject> [ tag 2 ] </dc:subject>
   <dc:subject> [ ... ] </dc:subject>

   <userBookmarkID>[ Internal Connotea ID  for this post, useful for debugging. ] </userBookmarkID>

   <dc:creator>[ Name of user who created this post. ] </dc:creator>

   <private> [ Privacy status: 1 = private, 0 = public ] </private>
   <created> [ Date this post was created. ] </created>
   <updated> [ Date this post was last updated. ] </updated>
   <comment>
   <!-- see below -->
   </comment>

   <uri>
     <!-- the contents of the uri element are almost identical to the bookmark format described above -->

     <dcterms:URI rdf:about=" [ The link out to the original webpage. ] ">
       <dc:title> [ The bookmark title, as distinct from the user's personal title for the post. ] </dc:title>
       <link> [ Again, the link out to the orginial web page. ] </link>
       <hash> [ MD5 hash of the link. ] </hash>

       <!-- If the bookmark is for an article or book that Connotea can get bibliographic information for,
       the citation element will be present -->
       <citation>
         <rdf:Description>
           <prism:title> [  Title of the reference.  This may be different to the dc:title above. ] </prism:title>
   
           <!-- list of authors -->
           <foaf:maker>
             <foaf:Person>
               <foaf:name> [Name of author 1. ] </foaf:name>
             </foaf:Person>
           </foaf:maker>
   
           <foaf:maker>
             <foaf:Person>
               <foaf:name> [ Name of author 2. ] </foaf:name>
             </foaf:Person>
           </foaf:maker>
   
           [  ...etc. ]

           <dc:date> [ Publication date for the reference. ] </dc:date>
           <prism:publicationName> [ Name of publication the article appeared in
           -- i.e the journal name. ] </prism:publicationName>
           <prism:issn> [ ISSN of publication. ] </prism:issn>
           <doiResolver rdf:resource=" [ If the article has a DOI, the dx.oi.org link will appear here. ] " />
           <dc:identifier> [ The DOI in the form doi:xx.xxxx/xxxxxx ] </dc:identifier>

           <pmidResolver rdf:resource=" [ If the article has a Pubmed ID,
                                          a link to its entry in the Pubmed
                                          database will appear here. ]  " />
           <dc:identifier> [ The Pubmed ID in the form PMID: xxxxxxxx ] </dc:identifier>
         </rdf:Description>
       </citation>
     </dcterms:URI>
   </uri>
 </Post>        
Overrides: object.__init__