Rdf generated by rss library is not valid

e$B$U$H!“e(Brss e$B%i%$%V%i%j$N%A%e!<%H%j%”%k$Ne(B
http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.ja
e$B$K$"$C$?Nc$r0J2<$N$h$&$KF0$+$7$F$_$^$7$?!#e(B

% ruby -rrss -e ’
rss = RSS::Maker.make(“1.0”) do |maker|
maker.channel.about = “http://example.com/index.rdf
maker.channel.title = “Example”
maker.channel.description = “Example Site”
maker.channel.link = “http://example.com/

maker.items.new_item do |item|
item.link = “http://example.com/article.html
item.title = “Sample Article”
end
end
puts rss

<?xml version="1.0" encoding="UTF-8"?>

<rdf:RDF xmlns=“http://purl.org/rss/1.0/
xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#
xmlns:content=“http://purl.org/rss/1.0/modules/content/
xmlns:dc=“http://purl.org/dc/elements/1.1/
xmlns:image=“http://purl.org/rss/1.0/modules/image/
xmlns:slash=“http://purl.org/rss/1.0/modules/slash/
xmlns:sy=“http://purl.org/rss/1.0/modules/syndication/
xmlns:taxo=“http://purl.org/rss/1.0/modules/taxonomy/
xmlns:trackback=“http://madskills.com/public/xml/rss/module/trackback/”>

Example
http://example.com/
Example Site

rdf:Seq
<rdf:li resource=“http://example.com/article.html”/>
</rdf:Seq>



Sample Article
http://example.com/article.html

</rdf:RDF>

e$B$3$Ne(B RDF e$B$Je(B RSS e$B$re(B
http://www.w3.org/RDF/Validator/
e$B$KF~$l$F$_$?$H$3$m!“e(B
Error: {W102} unqualified use of rdf:resource is deprecated.[Line =
17, Column = 61]
e$B$H$$$&%(%i!<$,=P$F$-$?$s$G$9$,!”$3$l$O0U?^$5$l$?7k2L$G$7$g$&$+!#e(B

e$B?\F#$G$9!#e(B

In [email protected]
“[ruby-dev:42057] rdf generated by rss library is not valid” on Wed,
18 Aug 2010 09:34:23 +0900,
Tanaka A. [email protected] wrote:

e$B$U$H!“e(Brss e$B%i%$%V%i%j$N%A%e!<%H%j%”%k$Ne(B
http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.ja
e$B$K$"$C$?Nc$r0J2<$N$h$&$KF0$+$7$F$_$^$7$?!#e(B

Sample Article http://example.com/article.html

e$B$3$Ne(B RDF e$B$Je(B RSS e$B$re(B
http://www.w3.org/RDF/Validator/
e$B$KF~$l$F$_$?$H$3$m!“e(B
Error: {W102} unqualified use of rdf:resource is deprecated.[Line =
17, Column = 61]
e$B$H$$$&%(%i!<$,=P$F$-$?$s$G$9$,!”$3$l$O0U?^$5$l$?7k2L$G$7$g$&$+!#e(B

e$B$O$$!#e(B
RDF(1)e$BE$K$Oe(Brdf:resourcee$B$J$N$G$9$,!"e(BRSS
1.0e$B$N;EMM=qe(B(*2)e$B$G$Oe(Bresource
e$B$r;H$C$F$$$^$9!#e(BRSS
Makere$B$Oe([email protected]@.$9$k%i%$%V%i%j$J$N$G!"e(B
RSS 1.0e$B$N;EMM$NJ}$KE]$7$F$$$^$9!#e(B

(*1)
http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements
(*2) http://web.resource.org/rss/1.0/spec#s5.3.5

e$B$A$J$_$K!"e(BRSS
1.0e$B$r%Q!<%9$9$k>l9g$Oe(Bresourcee$B$G$be(Brdf:resource
e$B$G$b<u$1IU$1$k$h$&$K$J$C$F$$$^$9!#e(B

e$B$H$3$m$G!"$b$7$h$+$C$?$i!"e(BRSS 1.0e$B$N%P%j%G!<%7%g%s$Ke(BAtom/RSS
e$BMQ$N%P%j%G!<%7%g%s%5!<%S%9e(B
http://validator.w3.org/feed/
e$B$G$O$J$/!“e(BRDFe$B$N%P%j%G!<%7%g%s%5!<%S%9$r;H$C$?M}M3$r65$($F$be(B
e$B$i$($J$$$G$7$g$&$+!#LdBj$,$”$C$?>l9g$Oe(BRSSe$BMQ$N%P%j%G!<%7%g%se(B
e$B%5!<%S%9$NJ}$,$h$j>:Y$J>pJs$rJs9p$7$F$/$l$=$&$J5$$,$7$^$9!#e(B

2010e$BG/e(B8e$B7ne(B18e$BF|e(B21:12 Kouhei S. [email protected]:

e$B$O$$!#e(B
RDF(1)e$BE$K$Oe(Brdf:resourcee$B$J$N$G$9$,!"e(BRSS 1.0e$B$N;EMM=qe(B(*2)e$B$G$Oe(Bresource
e$B$r;H$C$F$$$^$9!#e(BRSS Makere$B$Oe([email protected]@.$9$k%i%$%V%i%j$J$N$G!"e(B
RSS 1.0e$B$N;EMM$NJ}$KE]$7$F$$$^$9!#e(B

(*1) http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements
(*2) http://web.resource.org/rss/1.0/spec#s5.3.5

e$B$A$J$_$K!"e(BRSS 1.0e$B$r%Q!<%9$9$k>l9g$Oe(Bresourcee$B$G$be(Brdf:resource
e$B$G$b<u$1IU$1$k$h$&$K$J$C$F$$$^$9!#e(B

e$B$J$k$[$I!#e(BRSS 1.0 e$B$N;EMM=q$Ne(B Syntax e$B$G$Oe(B resource
e$B$r;H$C$F$$$^$9$M!#e(B
rdf:Seq<rdf:li resource="{item_uri}" /> …
</rdf:Seq>

e$B$7$+$7!"@bL@$NJ8$G$Oe(B rdf:resource
e$B$r;H$C$F$$$F!";EMM<+BN$,0l4S$7$F$$$J$$e(B
e$B$h$&$K;W$($^$9!#e(B
Each item’s rdf:resource {item_uri} must be …

e$B$H$3$m$G!"$b$7$h$+$C$?$i!"e(BRSS 1.0e$B$N%P%j%G!<%7%g%s$Ke(BAtom/RSS
e$BMQ$N%P%j%G!<%7%g%s%5!<%S%9e(B
http://validator.w3.org/feed/
e$B$G$O$J$/!“e(BRDFe$B$N%P%j%G!<%7%g%s%5!<%S%9$r;H$C$?M}M3$r65$($F$be(B
e$B$i$($J$$$G$7$g$&$+!#LdBj$,$”$C$?>l9g$Oe(BRSSe$BMQ$N%P%j%G!<%7%g%se(B
e$B%5!<%S%9$NJ}$,$h$j>:Y$J>pJs$rJs9p$7$F$/$l$=$&$J5$$,$7$^$9!#e(B

e$B8+$D$1$?$b$N$r;[email protected]$1$GFCCJ$NM}M3$O2?$b!#e(B
RSSe$BMQ$N$b;H$C$F$$$^$9!#e(B

e$B?\F#$G$9!#e(B

In [email protected]
“[ruby-dev:42074] Re: rdf generated by rss library is not valid” on
Wed, 18 Aug 2010 21:28:20 +0900,
Tanaka A. [email protected] wrote:

e$B$7$+$7!"@bL@$NJ8$G$Oe(B rdf:resource e$B$r;H$C$F$$$F!";EMM<+BN$,0l4S$7$F$$$J$$e(B
e$B$h$&$K;W$($^$9!#e(B
Each item’s rdf:resource {item_uri} must be …

e$B$O$$!"$=$&$J$s$G$9$,!"F1$8%Z!<%8Fb$N%5%s%W%k$G$b0l4S$7$Fe(B
resourcee$B$r;H$C$F$$$k$N$G$=$A$i$,0U?^[email protected]$H2r<a$7$F$$$^e(B
e$B$9!#e(B

e$B$H$3$m$G!"$b$7$h$+$C$?$i!"e(BRSS 1.0e$B$N%P%j%G!<%7%g%s$Ke(BAtom/RSS
e$BMQ$N%P%j%G!<%7%g%s%5!<%S%9e(B
http://validator.w3.org/feed/
e$B$G$O$J$/!“e(BRDFe$B$N%P%j%G!<%7%g%s%5!<%S%9$r;H$C$?M}M3$r65$($F$be(B
e$B$i$($J$$$G$7$g$&$+!#LdBj$,$”$C$?>l9g$Oe(BRSSe$BMQ$N%P%j%G!<%7%g%se(B
e$B%5!<%S%9$NJ}$,$h$j>:Y$J>pJs$rJs9p$7$F$/$l$=$&$J5$$,$7$^$9!#e(B

e$B8+$D$1$?$b$N$r;[email protected]$1$GFCCJ$NM}M3$O2?$b!#e(B
RSSe$BMQ$N$b;H$C$F$$$^$9!#e(B

e$B$=$&$G$9$+!#$"$j$,$H$&$4$6$$$^$7$?!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs