3 * admssw plugin script which displays an HTML preview of the SKOS export of the trove categories, as Turtle
5 * This file is (c) Copyright 2012 by Olivier BERGER, Institut Mines-Telecom
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 require_once '../../env.inc.php';
24 require_once $gfcommon.'include/pre.php';
28 * $gwords = target words to search
29 * $gexact = 1 for search ing all words (AND), 0 - for any word (OR)
30 * $otherfreeknowledge = 1 for search in Free/Libre Knowledge Gforge Initiatives
31 * $order = "project_title" or "title" - criteria for ordering results: if empty or not allowed results are ordered by rank
35 $pluginname = 'admssw';
37 $HTML->header(array('title'=>_('SKOS meta-data for trove categories'),'pagename'=>'trove'));
38 $HTML->printSoftwareMapLinks();
40 $plugin = plugin_get_object ($pluginname);
42 echo '<p>'. sprintf( _('The following is a preview of the (machine-readable) RDF meta-data which can be obtained at <tt>%s</tt> as Turtle'), util_make_url('/softwaremap/trove_list.php')) .'</p>';
44 echo $plugin->htmlPreviewTroveCatsAsTurtle();
46 echo _('To access this RDF document, you may use, for instance:');
48 echo '<tt>$ curl -H "Accept: text/turtle" '. util_make_url('/softwaremap/trove_list.php') .'</tt><br />';
50 $HTML->footer(array());
54 // c-file-style: "bsd"