jmvanel

RSS example in Turtle

Jan 29th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 2.42 KB | None | 0 0
  1. #Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp
  2.         #    using base file:///home/jmv/data/rss_example.rdf
  3.        
  4. #  Notation3 generation by
  5. #       notation3.py,v 1.200 2007/12/11 21:18:08 syosi Exp
  6.  
  7. #   Base was: file:///home/jmv/data/rss_example.rdf
  8.      @prefix : <http://www.w3.org/TR/REC-xml#> .
  9.     @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
  10.    
  11.     <http://example.org/item/>     a <http://purl.org/rss/1.0/item>;
  12.          <http://purl.org/rss/1.0/link> "http://example.org/item/";
  13.          <http://purl.org/rss/1.0/modules/content/items>  [
  14.              a rdf:Bag;
  15.              rdf:_1  [
  16.                  a <http://purl.org/rss/1.0/modules/content/item>;
  17.                  <http://purl.org/rss/1.0/modules/content/encoding> :dt-wellformed;
  18.                  <http://purl.org/rss/1.0/modules/content/format> <http://www.w3.org/1999/xhtml>;
  19.                  rdf:value """
  20.           <em xmlns="http://www.w3.org/1999/xhtml">This is <strong>very</strong></em> <strong xmlns="http://www.w3.org/1999/xhtml">cool</strong>.
  21.         """^^rdf:XMLLiteral ];
  22.              rdf:_2  [
  23.                  a <http://purl.org/rss/1.0/modules/content/item>;
  24.                  <http://purl.org/rss/1.0/modules/content/format> <http://www.w3.org/TR/html4/>;
  25.                  rdf:value "<em>This is<strong>very</em> cool</strong>." ];
  26.              rdf:_3 <http://example.org/item/content-here.txt>;
  27.              rdf:_4 <http://example.org/item/content.svg> ];
  28.          <http://purl.org/rss/1.0/title> "The Example Item" .
  29.    
  30.     <http://example.org/item/content-here.txt>     a <http://purl.org/rss/1.0/modules/content/item>;
  31.          <http://purl.org/rss/1.0/modules/content/format> <http://www.isi.edu/in-notes/iana/assignments/media-types/text/plain>;
  32.          rdf:value "This is >very cool<." .
  33.    
  34.     <http://example.org/item/content.svg>     a <http://purl.org/rss/1.0/modules/content/item>;
  35.          <http://purl.org/rss/1.0/modules/content/format> <http://www.w3.org/2000/svg> .
  36.    
  37.     <http://example.org/rss.rdf>     a <http://purl.org/rss/1.0/channel>;
  38.          <http://purl.org/rss/1.0/description> "Simply for the purpose of demonstration.";
  39.          <http://purl.org/rss/1.0/items>  [
  40.              a rdf:Seq;
  41.              rdf:_1 <http://example.org/item/> ];
  42.          <http://purl.org/rss/1.0/link> "http://www.example.org";
  43.          <http://purl.org/rss/1.0/title> "Example Feed" .
  44.    
  45. #ENDS
Advertisement
Add Comment
Please, Sign In to add comment