# Base: http://bblfish.net/work/atom-owl/2004-08-12/
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
@prefix :        <http://bblfish.net/work/atom-owl/2004-08-12/Atom.owl#> .

<http://bblfish.net/work/atom-owl/2004-08-12/entry.2004-08-13-1752.n3>
      a       :Entry ;
      :alternate
              [ a       :Link ;
                :href   <http://bblfish.net/work/atom-owl/2004-08-12/blogexample.html#entry.2004-08-13-1752.n3> ;
                :mime-type "text/html"^^xsd:string ;
                :text   "html blog entry"^^xsd:string
              ] ;
      :author [ a       foaf:Person ;
                foaf:homepage <http://bblfish.net/> ;
                foaf:mbox <mailto:hjs@bblfish.net> ;
                foaf:name "H. Story"^^xsd:string
              ] ;
      :content
              [ a       :Content ;
                :data   """The entry file using the Entry class is pretty easy to understand. As an example let us take the file describing this entry, namely <a href='entry.2004-08-13-1752.n3'>entry.2004-08-13-1752.n3</a>.<br><code><pre>  &lt;&gt;    a       :Entry ;
      :author [ a       &lt;http://xmlns.com/foaf/0.1/Person&gt; ;
                &lt;http://xmlns.com/foaf/0.1/homepage&gt;
                        &lt;http://bblfish.net/&gt; ;
                &lt;http://xmlns.com/foaf/0.1/mbox&gt;
                        &lt;mailto:hjs@bblfish.net&gt; ;
                &lt;http://xmlns.com/foaf/0.1/name&gt;
                        \"H. Story\"^^xsd:string
              ] ;</pre></code><br> The first line just specifies that this file ('&lt;&gt;' in N3) is an Entry. It then continues by specifying the author of the Entry using the FOAF classes. Everything else in the file is pretty self evident. Perhaps the following requires a little closer look at<br><code><pre>      :id     &lt;tag:bblfish.net/20040813/1752/blog1&gt; ;
      :entry-version &lt;tag:bblfish.net/20040813/1752/blog1#version1&gt; ;
      :in-reply-to &lt;tag:bblfish.net/20040813/1445/blog1#version1&gt; ;
      :title  [ a       :Content ;
                :data   \"N3 illustration on the two pespectives\"^^rdf:string ;
                :mime-type \"text/simple\"^^xsd:string
              ] .
</pre></code><br> Here we specify the id and entry-version tags. Notice that with a well designed URI structure one should be able to guess the id tag from the version tag. Here the version tag just consists of the entry id with '#version1' appended.<p> Notice the <code>in-reply-to</code> property. It relates the current Entry not to another Entry (with a URL) but to antother EntryVersion. How do we retrieve the location of the EntryVersion to which this Entry is a reply? Well further down in the file we have the following statement: <br><code><pre>  &lt;tag:bblfish.net/20040813/1445/blog1#version1&gt;
      :entry-location &lt;entry.2004-08-13-1445.n3&gt; .</pre></code><br> which associate that entry version with a Entry URL namely the above <a href='entry.2004-08-13-1445.n3'>entry.2004-08-13-1445.n3</a>.<p> How does this Entry appear in the <a href='AllInOneDatabase.n3'>AllInOneDatabase.n3</a>? We just need to search that file for the EntryID <code>tag:bblfish.net/20040813/1752/blog1</code><br><code><pre>&lt;tag:bblfish.net/20040813/1752/blog1&gt;
      a       :EntryID ;
      :author _:b2 ;
      :created \"2004-08-13T17:52:00+0200\"^^xsd:dateTime ;
      :in-reply-to &lt;tag:bblfish.net/20040813/1445/blog1#version1&gt; ;
      :state  &lt;tag:bblfish.net/20040813/1752/blog1#version1&gt; .</pre></code><br> This just gives us the author <code>_:b2</code> wich is an empty node that is specified in more detail elsewhere in the file, the creation time, what this EntryId was in reply to, and the EntryState tag. The values for that tag are also to be found in the file, and its content should correspond to the text you are now reading. """^^xsd:string ;
                :mime-type "text/html"^^xsd:string
              ] ;
      :copyright <http://creativecommons.org/licenses/by-sa/2.0/> ;
      :created "2004-08-13T17:52:00+0200"^^xsd:dateTime ;
      :entry-version <tag:bblfish.net/20040813/1752/blog1#version1> ;
      :id     <tag:bblfish.net/20040813/1752/blog1> ;
      :in-reply-to <tag:bblfish.net/20040813/1445/blog1#version1> ;
      :title  [ a       :Content ;
                :data   "N3 illustration on the two pespectives"^^xsd:string ;
                :mime-type "text/simple"^^xsd:string
              ] .

<tag:bblfish.net/20040813/1445/blog1#version1>
      :entry-location <http://bblfish.net/work/atom-owl/2004-08-12/entry.2004-08-13-1445.n3> .
