@prefix dc: <http://purl.org/dc/elements/1.1/>.

<> dc:description """Build a report of TR REC histories""",
   "$Id: history.n3,v 1.6 2003/11/13 17:26:20 dom Exp $".

@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix str: <http://www.w3.org/2000/10/swap/string#>.
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
@prefix time:  <http://www.w3.org/2000/10/swap/time#> .

@prefix r: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix con: <http://www.w3.org/2000/10/swap/pim/contact#> .
@prefix org: <http://www.w3.org/2001/04/roadmap/org#> .
@prefix doc: <http://www.w3.org/2000/10/swap/pim/doc#> .
@prefix rec: <http://www.w3.org/2001/02pd/rec54#>.
@prefix k:  <http://opencyc.sourceforge.net/daml/cyc.daml#> .
@prefix :   <#> .

"1" log:outputString """<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
 <head>
  <title>W3C History of TR Recommendations</title>
  <link rel='stylesheet' href='http://www.w3.org/StyleSheets/TR/base' />
  <link rel='stylesheet' href='historyStyle.css' />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 </head>
 <body>
  <h1><a href="../../../"><img src="http://www.w3.org/Icons/WWW/w3c_home" alt="W3C" width="72" height="48" /></a>
  History of <acronym title="Technical Report">TR</acronym> Recommendations</h1>

  <p>
  The publication history of all W3C <a href="/TR/">TR</a> documents that have made it to <a href="/Consortium/Process-20010719/tr.html#RecsW3C">recommendation</a> status, in alphabetical order.  See also the <a href="rec-history.svg">SVG version</a> as well as other relevant <a href="svgs.html">SVG diagrams</a>.
  </p>
""" .

"z" log:outputString """
 <address>
 Created by <a href="/People/ryanlee/">Ryan Lee</a>, <a href="mailto:ryanlee@w3.org">ryanlee@w3.org</a>, maintained by <a href="/People/Dom/">Dominique Hazael-Massieux</a>; last modified $Date: 2003/11/13 17:26:20 $<br />
 see <a href="about.html">the documentation</a>
 </address>
 </body>
</html>
""".

rec:WD :string "WD" .
rec:PR :string "PR" .
rec:CR :string "CR" .
rec:REC :string "REC" .

this log:forAll
  :WG, :DOC, :TRSHORT, :OBSOLETE, :TITLE, :DATE, :WGPAGE, :TRTYPE,
  :KEY, :KEY2, :KEY3, :TXT, :TXT2, :TXT3, :WGPG, :NAME, :ACTIVITY, :ACPG,
  :ACNAME, :DOMAIN, :DOMPG, :DOMNAME .

{ <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:includes {
       :DOC a rec:REC ; doc:versionOf :TRSHORT ; dc:title :TITLE .
  } ] .
  <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:notIncludes {
       :DOC a rec:FirstEdition .
  } ] .
  <http://www.w3.org/2002/01/tr-automation/rec-history.rdf> log:semantics [ log:includes {
       :OBSOLETE doc:versionOf :TRSHORT ; dc:date :DATE ; a :TRTYPE .
  } ] .

  (:TITLE "." [is log:uri of :TRSHORT]) str:concatenation :KEY .
  (:TITLE "." [is log:uri of :TRSHORT] "." :DATE) str:concatenation :KEY2 .
  (:TITLE "." [is log:uri of :TRSHORT] ".z") str:concatenation :KEY3 .

  ("<div class=\"doc\">\n"
   "<h3 class=\"name\">"
   "<a href=\""
   [is log:uri of :TRSHORT]
   "\">"
   :TITLE
   "</a>"
   "</h3>\n") str:concatenation :TXT .

  ("<p class=\""
   [is :string of :TRTYPE]
   "\">\n"
   "<a href=\""
   [is log:uri of :OBSOLETE]
   "\">"
   [is :string of :TRTYPE]
   "</a> "
   :DATE
   "\n</p>\n") str:concatenation :TXT2 .

  ("</div>\n") str:concatenation :TXT3 .
} log:implies 
{
  :KEY log:outputString :TXT .
  :KEY2 log:outputString :TXT2 .
  :KEY3 log:outputString :TXT3 .
} .

{ <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:includes {
       :DOC a rec:REC ; doc:versionOf :TRSHORT ; dc:title :TITLE ; org:deliveredBy [ con:homePage :WGPG ] .
  } ] .
  <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:notIncludes {
       :DOC a rec:FirstEdition .
  } ] .
  <http://www.w3.org/2000/04/mem-news/public-groups.rdf> log:semantics [ log:includes {
       :WG a org:WorkingGroup ; con:homePage :WGPG ; org:name :NAME .
       :ACTIVITY a org:Activity ; org:includes :WG ; con:homePage :ACPG ; org:name :ACNAME .
       :DOMAIN a org:Domain ; org:includes :ACTIVITY ; con:homePage :DOMPG ; org:name :DOMNAME .
  } ] .
  <http://www.w3.org/2002/01/tr-automation/rec-history.rdf> log:semantics [ log:includes {
       :OBSOLETE doc:versionOf :TRSHORT ; dc:date :DATE ; a :TRTYPE .
  } ] .

  (:TITLE "." [is log:uri of :TRSHORT] ".1") str:concatenation :KEY .

  ("<h4 class=\"org\">"
   "<a href=\""
   [is log:uri of :DOMPG]
   "\">"
   :DOMNAME
   "</a>"
   " &gt; "
   "<a href=\""
   [is log:uri of :ACPG]
   "\">"
   :ACNAME
   "</a>"
   " &gt; "
   "<a href=\""
   [is log:uri of :WGPG]
   "\">"
   :NAME
   "</a>"
   "</h4>\n") str:concatenation :TXT .
} log:implies 
{
  :KEY log:outputString :TXT .
} .

# Same as above, except in the case of a Domain with no home page
#{ <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:includes {
#       :DOC a rec:REC ; doc:versionOf :TRSHORT ; dc:title :TITLE ; org:deliveredBy [ con:homePage :WGPG ] .
#  } ] .
#  <http://www.w3.org/2002/01/tr-automation/tr.rdf> log:semantics [ log:notIncludes {
#       :DOC a rec:FirstEdition .
#  } ] .
#  <http://www.w3.org/2000/04/mem-news/public-groups.rdf> log:semantics [ log:includes {
#       :WG a org:WorkingGroup ; con:homePage :WGPG ; org:name :NAME .
#       :ACTIVITY a org:Activity ; org:includes :WG ; con:homePage :ACPG ; org:name :ACNAME .
#       :DOMAIN a org:Domain ; org:includes :ACTIVITY ; org:name :DOMNAME .
#  } ] .
#  <http://www.w3.org/2000/04/mem-news/public-groups.rdf> log:semantics [ log:notIncludes {
#       :DOMAIN con:homePage :DOMPG .
#  } ] .
#  <http://www.w3.org/2002/01/tr-automation/rec-history.rdf> log:semantics [ log:includes {
#       :OBSOLETE doc:versionOf :TRSHORT ; dc:date :DATE ; a :TRTYPE .
#  } ] .
#
#  (:TITLE "." [is log:uri of :TRSHORT]) str:concatenation :KEY .
#  (:TITLE "." [is log:uri of :TRSHORT] "." :DATE) str:concatenation :KEY2 .
#  (:TITLE "." [is log:uri of :TRSHORT] ".z") str:concatenation :KEY3 .
#
#  ("<div class=\"doc\">\n"
#   "<h3 class=\"name\">"
#   "<a href=\""
#   [is log:uri of :TRSHORT]
#   "\">"
#   :TITLE
#   "</a>"
#   "</h3>\n"
#   "<h4 class=\"org\">"
#   :DOMNAME
#   " &gt; "
#   "<a href=\""
#   [is log:uri of :ACPG]
#   "\">"
#   :ACNAME
#   "</a>"
#   " &gt; "
#   "<a href=\""
#   [is log:uri of :WGPG]
#   "\">"
#   :NAME
#   "</a>"
#   "</h4>\n") str:concatenation :TXT .
#
#  ("<p class=\""
#   [is :string of :TRTYPE]
#   "\">\n"
#   "<a href=\""
#   [is log:uri of :OBSOLETE]
#   "\">"
#   [is :string of :TRTYPE]
#   "</a> "
#   :DATE
#   "\n</p>\n") str:concatenation :TXT2 .
#
#  ("</div>\n") str:concatenation :TXT3 .
#} log:implies 
#{
#  :KEY log:outputString :TXT .
#  :KEY2 log:outputString :TXT2 .
#  :KEY3 log:outputString :TXT3 .
#} .
