# $Id: iTrustSurveyFormatter.rep,v 1.1 2004/10/19 14:45:02 graham Exp $ # # Copyright (c) 2004, G. KLYNE. All rights reserved. # See end of this file for licence information. #--------+---------+---------+---------+---------+---------+---------+---------+ # # iTrust survey document generator # #--------+---------+---------+---------+---------+---------+---------+---------+ @prefix rdf: . @prefix rdfs: . @prefix dc: . @prefix foaf: . @prefix ps: . @prefix surv: . #### top-level survey structure #### @report surv:MakeSurvey OPEN "d" "iTrust-Survey-Body.xml" FOREACH surv:PaperQuery WRITE "d" surv:PaperHeader FOREACH surv:PaperAuthorQuery WRITE "d" surv:PaperAuthor FIRST WRITE "d" surv:PaperAuthorIntro SEPARATOR WRITE "d" surv:PaperAuthorSep LAST WRITE "d" surv:PaperAuthorEnd END FOREACH surv:PaperTrustDefQuery WRITE "d" surv:PaperTrustDef FIRST WRITE "d" surv:PaperTrustDefIntro SEPARATOR WRITE "d" surv:PaperTrustDefSep LAST WRITE "d" surv:PaperTrustDefEnd END FOREACH surv:PaperCategoryQuery WRITE "d" surv:PaperCategory FIRST WRITE "d" surv:PaperCategoryIntro SEPARATOR WRITE "d" surv:PaperCategorySep LAST WRITE "d" surv:PaperCategoryEnd END WRITE "d" surv:PaperFooter END CLOSE "d" END #### query patterns #### # General survey paper header field @query surv:PaperQuery ( ?paper ( dc:title ?title & ps:description ?descr ) ) @query surv:PaperAuthorQuery ( ?paper ( dc:creator ?c ( foaf:name ?authorname ) ) ) @query surv:PaperTrustDefQuery ( ?paper ( ps:trust ?trust ) ) @query surv:PaperCategoryQuery ( ?paper ( ps:category ?category ) ) #### XML2RFC output templates #### @text surv:PaperHeader ( "
" NL "" NL "" NL " " (LOCAL ?paper) "" NL ) @text surv:PaperAuthorIntro ( "" ) @text surv:PaperAuthor ( ?authorname ) @text surv:PaperAuthorSep ( ", " ) @text surv:PaperAuthorEnd ( "." NL ) @text surv:PaperTrustDefIntro ( "" NL ) @text surv:PaperTrustDef ( ?trust "." NL ) @text surv:PaperTrustDefSep ( "" NL ) @text surv:PaperTrustDefEnd ( "" NL ) @text surv:PaperCategoryIntro ( "" ) @text surv:PaperCategory ( ?category ) @text surv:PaperCategorySep ( ", " ) @text surv:PaperCategoryEnd ( "." NL ) @text surv:PaperFooter ( "" NL "" NL ?descr "" NL "
" NL ) #--------+---------+---------+---------+---------+---------+---------+---------+ # # Copyright (c) 2004, G. KLYNE. All rights reserved. # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this software; if not, write to: # The Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # or view the web page at: # http://www.gnu.org/copyleft/gpl.html # #--------+---------+---------+---------+---------+---------+---------+---------+ # $Source: /file/cvsweb/ninebynine.org/docs/iTrust/iTrustSurveyFormatter.rep,v $ # $Author: graham $ # $Revision: 1.1 $ # $Log: iTrustSurveyFormatter.rep,v $ # Revision 1.1 2004/10/19 14:45:02 graham # Add iTrust survey files to Web CVS # # Revision 1.2 2004/10/04 16:28:32 graham # Minor reformatting and fixes. # # Revision 1.1 2004/10/04 15:51:19 graham # Add survey document generator compoennts and presentation # #