logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

RDF::Redland::RSS - Redland RSS 1.0 Class

As_Xhtml Options

       boxTitle
           A  string,  is  the  text  displayed in the title of the box. It defaults to the title element of the
           channel.

       align
           A string, has three possible values, left, right or the empty string. The HTML table is either  left-
           aligned, right-aligned or not aligned. It defaults to the empty string.

       width
           A  number, is the width of the box, in pixels. It defaults to 125. Note that the title bar determines
           the minimum width of the box, if you're having trouble getting it  to  be  narrower,  try  shortening
           boxTitle.

       frameColor
           A string, is the hex browser color for the frame of the box. Defaults to "#000000".

       titleBarTextColor
           A string, is the hex browser color for the text in the title bar of the box. Defalults to "#000000".

       titleBarColor
           A string, is the hex browser color for the title bar of the box. Defaults to "#ADD8E6".

       boxFillColor
           A string, is the hex browser color for the main part of the box. Defaults to "#FFFFFF".

       time
           A string, is text that's displayed as the time to the right of the box title. Defaults to "".

       hspace
           A number, is the number of pixels to the left and right of the box. Defaults to 0.

       vspace
           A number, is the number of pixels above and below the box. Defaults to 0.

       full
           If set to any value, returns a full XHTML document.  Defaults to returning an HTML fragment.

       imageAlign
           A  string, has two possible values, left or right. The channel image is either left-aligned or right-
           aligned. It defaults to right aligned.

Author

       Dave Beckett - http://www.dajobe.org/

perl v5.40.0                                       2024-10-20                             RDF::Redland::RSS(3pm)

Constructors

       No public constructors.  Nodes are created either by methods of this class or RDF::Redland::RSS.

Description

       Class representing concepts in an RSS 1.0 RDF graph.

Methods

       title
           Get the RSS titles for channel, image, item or textinput.  Returns either a list or first  one  found
           depending on calling context.

       link
           Get  the  RSS  link  for channel, image, item or textinput.  Returns either a list or first one found
           depending on calling context.

       description
           Get the Dublin Core description element or RSS description for channel, item or  textinput.   Returns
           either a list or first one found depending on calling context.

       image_url
           Get  the  RSS  image  URL string for an image.  Returns either a list or first one found depending on
           calling context.

       name
           Get the RSS name for a textinput.  Returns either a list or first  one  found  depending  on  calling
           context.

       items
           Get the RSS items in a channel as a list of RDF::Redland::RSS::Node objects.

       image
           Get the image of a channel as an RDF::Redland::RSS::Node object or undef if not present.

       textinput
           Get the textinput of a channel as an RDF::Redland::RSS::Node object or undef if not present.

       property PROPERTY
           Get   the  value  of  the  named  property  off  an  RDF::Redland::RSS::Node  where  PROPERTY  is  an
           RDF::Redland::Node or RDF::Redland::RSS::Node.  Returns a list of RDF::Redland::RSS::Node objects  or
           first one found depending on calling context.

       properties
           Get  all  properties  off  the  RDF::Redland::RSS::Node.   Returns  a list of RDF::Redland::RSS::Node
           objects.

       properties_with_ns_prefix NS_PREFIX
           Get all unique properties of the RDF::Redland::RSS::Node which have namespace URI  prefix  NS_PREFIX.
           Returns a list of the properties as RDF::Redland::RSS::Node objects.

Name

       RDF::Redland::RSS::Node - Redland RSS 1.0 Node Class

See Also

       RDF::Redland::Model and RSS 1.0 web pages at http://purl.org/rss/1.0/

Synopsis

         use RDF::Redland::RSS;

         ...
         my $rss=RDF::Redland::RSS->new_from_model($model);

         my $rss2=new RDF::Redland::RSS("http://example.com/test.rdf");
         ...

         for my $channel ($rss->channels) {
           ...
          print "channel title is ",$channel->title->as_string,"\n"; # UTF-8
         }

         my(@items)=$channel->items;
         # Print channel items (URI, title)
         for my $item (@items) {
           print "item ",$item->uri->as_string, " ", $item->title->as_string, "\n";
         }

         ...

         print $rss->as_xhtml(width => 320, align => 'right');

See Also