<?xml version="1.0" encoding="iso8859-1"?>
<rss version="2.0">
<channel>
<title>triplify.org - Configuration/Drupal</title>
<link>http://triplify.org/Configuration/Drupal</link>
<description>History/revisions of triplify.org/Configuration/Drupal</description>
<language>en-us</language>
<item>
<title>2008-03-16 02:13:13</title>
<link>http://triplify.org/Configuration/Drupal/show?time=2008-03-16+02%3A13%3A13</link>
<description>&lt;div class="pageBefore">&lt;img src="http://triplify.org/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>Comparison for &lt;a name=".configuration.drupal" href="http://triplify.org/Configuration/Drupal" class="">/Configuration&amp;nbsp;/&amp;nbsp;Drupal&lt;/a> of &lt;a href="http://triplify.org/Configuration/Drupal?time=2008-03-16+02%3A13%3A13">2008-03-16 02:13:13&lt;/a> and &lt;a href="http://triplify.org/Configuration/Drupal">2008-03-16 02:14:57&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>Additions:&lt;/b>&lt;br />
&lt;div class="additions">&lt;div class="indent">'vocabulary'=&amp;gt;'&lt;a href="http://triplify.org/vocabulary/Drupal/'" target="_blank" title="" class="outerlink">http://triplify.org/vocabulary/Drupal/'&lt;/a>,&lt;/div>&lt;/div>&lt;br />
&lt;b>Deletions:&lt;/b>&lt;br />
&lt;div class="deletions">&lt;div class="indent">'base'=&amp;gt;$baseURI.'rdf/',&lt;/div>&lt;/div>&lt;/div>
</description>
</item>
<item>
<title>2008-03-14 18:06:12</title>
<link>http://triplify.org/Configuration/Drupal/show?time=2008-03-14+18%3A06%3A12</link>
<description>&lt;div class="pageBefore">&lt;img src="http://triplify.org/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>Comparison for &lt;a  href="http://triplify.org/Configuration/Drupal" class="">/Configuration&amp;nbsp;/&amp;nbsp;Drupal&lt;/a> of &lt;a href="http://triplify.org/Configuration/Drupal?time=2008-03-14+18%3A06%3A12">2008-03-14 18:06:12&lt;/a> and &lt;a href="http://triplify.org/Configuration/Drupal?time=2008-03-16+02%3A13%3A13">2008-03-16 02:13:13&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>Additions:&lt;/b>&lt;br />
&lt;div class="additions">$triplify['db']=new PDO('mysql:host=localhost;dbname=drupal', 'user', 'pass');&lt;/div>&lt;br />
&lt;b>Deletions:&lt;/b>&lt;br />
&lt;div class="deletions">/* This file contains the&amp;nbsp;configuration for&amp;nbsp;triplify.&lt;br />
 * Triplify rapidly simplifies the&amp;nbsp;creation of&amp;nbsp;structured content for&amp;nbsp;Web 2.0&lt;br />
 * mashups and&amp;nbsp;Semantic Web&amp;nbsp;applications.&lt;br />
 *&lt;br />
 * Triplyfy is&amp;nbsp;based on&amp;nbsp;the definition of&amp;nbsp;a number of&amp;nbsp;SQL queries, whose&lt;br />
 * results are&amp;nbsp;converted into either RDF/N3, JSON or&amp;nbsp;Linked Data.&lt;br />
/* Triplify uses URIs to&amp;nbsp;identify objects. In&amp;nbsp;order to&amp;nbsp;simplify their handling&lt;br />
 * you&amp;nbsp;should define shortcuts (i.e. namespace prefixes) for&amp;nbsp;all namespaces&lt;br />
 * from which you&amp;nbsp;want to&amp;nbsp;use URIs.&lt;br />
/* The&amp;nbsp;core of&amp;nbsp;triplify are&amp;nbsp;SQL queries, which select the&amp;nbsp;information to&amp;nbsp;be made&lt;br />
 * available.&lt;br />
 * You&amp;nbsp;can provide a&amp;nbsp;number of&amp;nbsp;arbitrary queries. Each query, however, should&lt;br />
 * select information about an&amp;nbsp;object of&amp;nbsp;a certain type. This type, which serves&lt;br />
 * as&amp;nbsp;an index in&amp;nbsp;the associative queries configuration array, is&amp;nbsp;also used to&lt;br />
 * construct corresponding URIs for&amp;nbsp;the objects returned by&amp;nbsp;the query.&lt;br />
 * The&amp;nbsp;first column returned by&amp;nbsp;the query represents the&amp;nbsp;ID&amp;nbsp;of the&amp;nbsp;object and&lt;br />
 * has&amp;nbsp;to&amp;nbsp;be named &amp;#147;id&amp;#148;, all&amp;nbsp;other columns represent characteristics (or&lt;br />
 * properties of&amp;nbsp;this object). As&amp;nbsp;column identifier you&amp;nbsp;should reuse existing&lt;br />
 * vocabularies whenever possible.&lt;br />
/* Some of&amp;nbsp;the columns of&amp;nbsp;the Triplify queries will contain references to&amp;nbsp;other&lt;br />
 * objects rather than literal values. The&amp;nbsp;following configuration array&lt;br />
 * specifies, which columns are&amp;nbsp;references to&amp;nbsp;objects of&amp;nbsp;which type.&lt;br />
/* Objects are&amp;nbsp;classified according to&amp;nbsp;their type. However, you&amp;nbsp;can specify&lt;br />
 * a&amp;nbsp;mapping here, if&amp;nbsp;objects of&amp;nbsp;a certain type should be&amp;nbsp;associated with a&lt;br />
 * different class (e.g. classify all&amp;nbsp;users as&amp;nbsp;'&lt;a href="http://xmlns.com/foaf/0.1/#term_person" target="_blank" title="" class="outerlink">foaf:person&lt;/a>'). If&amp;nbsp;you are&lt;br />
 * unsure it&amp;nbsp;is safe to&amp;nbsp;leave this configuration array empty.&lt;br />
/* You&amp;nbsp;can specify for&amp;nbsp;how long generated files should be&amp;nbsp;cached. For&amp;nbsp;smaller&lt;br />
 * Web&amp;nbsp;applications it&amp;nbsp;is save to&amp;nbsp;disable caching by&amp;nbsp;setting this value to&amp;nbsp;zero.&lt;br />
/* Triplify uses a&amp;nbsp;PDO object to&amp;nbsp;connect to&amp;nbsp;the database.&lt;br />
$triplify['pdo']=new PDO('mysql:host=localhost;dbname=drupal', 'user', 'pass');&lt;/div>&lt;/div>
</description>
</item>
<item>
<title>2008-03-07 15:53:09</title>
<link>http://triplify.org/Configuration/Drupal/show?time=2008-03-07+15%3A53%3A09</link>
<description>&lt;div class="pageBefore">&lt;img src="http://triplify.org/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>Comparison for &lt;a  href="http://triplify.org/Configuration/Drupal" class="">/Configuration&amp;nbsp;/&amp;nbsp;Drupal&lt;/a> of &lt;a href="http://triplify.org/Configuration/Drupal?time=2008-03-07+15%3A53%3A09">2008-03-07 15:53:09&lt;/a> and &lt;a href="http://triplify.org/Configuration/Drupal?time=2008-03-14+18%3A06%3A12">2008-03-14 18:06:12&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>Additions:&lt;/b>&lt;br />
&lt;div class="additions">&lt;a name="h32-1">&lt;/a>&lt;h1>Triplify Configuration for&amp;nbsp;Drupal with example CCK&amp;nbsp;content type&lt;/h1>
&lt;!--notypo-->&lt;div class="code">&lt;code>&lt;span style="color: #000000">
&lt;span style="color: #0000BB">&amp;lt;?php&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;triplify&amp;nbsp;config&amp;nbsp;for&amp;nbsp;Drupal&amp;nbsp;(www.drupal.org)&lt;br />&amp;nbsp;*&amp;nbsp;should&amp;nbsp;be&amp;nbsp;suitable&amp;nbsp;for&amp;nbsp;major&amp;nbsp;Drupal&amp;nbsp;version&amp;nbsp;(tested&amp;nbsp;4.6,&amp;nbsp;5.7)&lt;br />&amp;nbsp;*&amp;nbsp;todo:&amp;nbsp;teaser&amp;nbsp;(drupal&amp;nbsp;4.x:&amp;nbsp;in&amp;nbsp;node,&amp;nbsp;5.x&amp;nbsp;in&amp;nbsp;node_revisions)&lt;br />&amp;nbsp;*&amp;nbsp;todo:&amp;nbsp;table&amp;nbsp;prefixes&amp;nbsp;!!!&lt;br />&amp;nbsp;*&amp;nbsp;no&amp;nbsp;custom&amp;nbsp;content&amp;nbsp;type&amp;nbsp;fields&amp;nbsp;exported&lt;br />&amp;nbsp;*/&lt;br />&lt;br />&lt;br />/*&amp;nbsp;This&amp;nbsp;file&amp;nbsp;contains&amp;nbsp;the&amp;nbsp;configuration&amp;nbsp;for&amp;nbsp;triplify.&lt;br />&amp;nbsp;*&amp;nbsp;Triplify&amp;nbsp;rapidly&amp;nbsp;simplifies&amp;nbsp;the&amp;nbsp;creation&amp;nbsp;of&amp;nbsp;structured&amp;nbsp;content&amp;nbsp;for&amp;nbsp;Web&amp;nbsp;2.0&lt;br />&amp;nbsp;*&amp;nbsp;mashups&amp;nbsp;and&amp;nbsp;Semantic&amp;nbsp;Web&amp;nbsp;applications.&lt;br />&amp;nbsp;*&lt;br />&amp;nbsp;*&amp;nbsp;Triplyfy&amp;nbsp;is&amp;nbsp;based&amp;nbsp;on&amp;nbsp;the&amp;nbsp;definition&amp;nbsp;of&amp;nbsp;a&amp;nbsp;number&amp;nbsp;of&amp;nbsp;SQL&amp;nbsp;queries,&amp;nbsp;whose&lt;br />&amp;nbsp;*&amp;nbsp;results&amp;nbsp;are&amp;nbsp;converted&amp;nbsp;into&amp;nbsp;either&amp;nbsp;RDF/N3,&amp;nbsp;JSON&amp;nbsp;or&amp;nbsp;Linked&amp;nbsp;Data.&lt;br />&amp;nbsp;*/&lt;br />&lt;br />/*&amp;nbsp;Triplify&amp;nbsp;uses&amp;nbsp;URIs&amp;nbsp;to&amp;nbsp;identify&amp;nbsp;objects.&amp;nbsp;In&amp;nbsp;order&amp;nbsp;to&amp;nbsp;simplify&amp;nbsp;their&amp;nbsp;handling&lt;br />&amp;nbsp;*&amp;nbsp;you&amp;nbsp;should&amp;nbsp;define&amp;nbsp;shortcuts&amp;nbsp;(i.e.&amp;nbsp;namespace&amp;nbsp;prefixes)&amp;nbsp;for&amp;nbsp;all&amp;nbsp;namespaces&lt;br />&amp;nbsp;*&amp;nbsp;from&amp;nbsp;which&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;use&amp;nbsp;URIs.&lt;br />&amp;nbsp;*/&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'namespaces'&lt;/span>&lt;span style="color: #007700">]=array(&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'base'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #0000BB">$baseURI&lt;/span>&lt;span style="color: #007700">.&lt;/span>&lt;span style="color: #DD0000">'rdf/'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'sioc'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://rdfs.org/sioc/ns#'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'foaf'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://xmlns.com/foaf/0.1/'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'dc'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://purl.org/dc/elements/1.1/'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'dcterms'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://purl.org/dc/terms/'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'skos'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://www.w3.org/2004/02/skos/core#'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'tag'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://www.holygoat.co.uk/owl/redwood/0.1/tags/'&lt;/span>&lt;span style="color: #007700">,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'xsd'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'http://www.w3.org/2001/XMLSchema#'&lt;/span>&lt;span style="color: #007700">,&lt;br />);&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;The&amp;nbsp;core&amp;nbsp;of&amp;nbsp;triplify&amp;nbsp;are&amp;nbsp;SQL&amp;nbsp;queries,&amp;nbsp;which&amp;nbsp;select&amp;nbsp;the&amp;nbsp;information&amp;nbsp;to&amp;nbsp;be&amp;nbsp;made&lt;br />&amp;nbsp;*&amp;nbsp;available.&lt;br />&amp;nbsp;*&amp;nbsp;You&amp;nbsp;can&amp;nbsp;provide&amp;nbsp;a&amp;nbsp;number&amp;nbsp;of&amp;nbsp;arbitrary&amp;nbsp;queries.&amp;nbsp;Each&amp;nbsp;query,&amp;nbsp;however,&amp;nbsp;should&lt;br />&amp;nbsp;*&amp;nbsp;select&amp;nbsp;information&amp;nbsp;about&amp;nbsp;an&amp;nbsp;object&amp;nbsp;of&amp;nbsp;a&amp;nbsp;certain&amp;nbsp;type.&amp;nbsp;This&amp;nbsp;type,&amp;nbsp;which&amp;nbsp;serves&lt;br />&amp;nbsp;*&amp;nbsp;as&amp;nbsp;an&amp;nbsp;index&amp;nbsp;in&amp;nbsp;the&amp;nbsp;associative&amp;nbsp;queries&amp;nbsp;configuration&amp;nbsp;array,&amp;nbsp;is&amp;nbsp;also&amp;nbsp;used&amp;nbsp;to&lt;br />&amp;nbsp;*&amp;nbsp;construct&amp;nbsp;corresponding&amp;nbsp;URIs&amp;nbsp;for&amp;nbsp;the&amp;nbsp;objects&amp;nbsp;returned&amp;nbsp;by&amp;nbsp;the&amp;nbsp;query.&lt;br />&amp;nbsp;*&amp;nbsp;The&amp;nbsp;first&amp;nbsp;column&amp;nbsp;returned&amp;nbsp;by&amp;nbsp;the&amp;nbsp;query&amp;nbsp;represents&amp;nbsp;the&amp;nbsp;ID&amp;nbsp;of&amp;nbsp;the&amp;nbsp;object&amp;nbsp;and&lt;br />&amp;nbsp;*&amp;nbsp;has&amp;nbsp;to&amp;nbsp;be&amp;nbsp;named&amp;nbsp;"id",&amp;nbsp;all&amp;nbsp;other&amp;nbsp;columns&amp;nbsp;represent&amp;nbsp;characteristics&amp;nbsp;(or&lt;br />&amp;nbsp;*&amp;nbsp;properties&amp;nbsp;of&amp;nbsp;this&amp;nbsp;object).&amp;nbsp;As&amp;nbsp;column&amp;nbsp;identifier&amp;nbsp;you&amp;nbsp;should&amp;nbsp;reuse&amp;nbsp;existing&lt;br />&amp;nbsp;*&amp;nbsp;vocabularies&amp;nbsp;whenever&amp;nbsp;possible.&lt;br />&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'user'&lt;/span>&lt;span style="color: #007700">]&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">"SELECT&amp;nbsp;uid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;name&amp;nbsp;AS&amp;nbsp;'sioc:name',&amp;nbsp;SHA(CONCAT('mailto:',mail))&amp;nbsp;AS&amp;nbsp;'sioc:email_sha1',&amp;nbsp;FROM_UNIXTIME(created)&amp;nbsp;AS&amp;nbsp;'sioc:created_at'&amp;nbsp;FROM&amp;nbsp;users&amp;nbsp;WHERE&amp;nbsp;uid&amp;nbsp;&amp;gt;&amp;nbsp;0"&lt;/span>&lt;span style="color: #007700">;&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #FF8000">//"SELECT&amp;nbsp;uid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;name&amp;nbsp;AS&amp;nbsp;'foaf:nickname',&amp;nbsp;SHA(CONCAT('mailto:',mail))&amp;nbsp;AS&amp;nbsp;'foaf:mbox_sha1sum',&amp;nbsp;FROM_UNIXTIME(created)&amp;nbsp;AS&amp;nbsp;created&amp;nbsp;FROM&amp;nbsp;users&amp;nbsp;WHERE&amp;nbsp;uid&amp;nbsp;&amp;gt;&amp;nbsp;0&amp;nbsp;AND&amp;nbsp;status&amp;nbsp;=&amp;nbsp;1",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br />&lt;br />/*&amp;nbsp;Drupal&amp;nbsp;core&amp;nbsp;node,&amp;nbsp;adjust&amp;nbsp;to&amp;nbsp;your&amp;nbsp;contenttype,&amp;nbsp;usually&amp;nbsp;type='page'&amp;nbsp;or&amp;nbsp;remove&amp;nbsp;to&amp;nbsp;expose&amp;nbsp;all&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'node'&lt;/span>&lt;span style="color: #007700">]&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">"SELECT&amp;nbsp;n.nid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;n.title&amp;nbsp;AS&amp;nbsp;'dc:title',&amp;nbsp;FROM_UNIXTIME(n.created)&amp;nbsp;AS&amp;nbsp;'sioc:created_at',&amp;nbsp;FROM_UNIXTIME(n.changed)&amp;nbsp;AS&amp;nbsp;'sioc:modified_at',&amp;nbsp;n.uid&amp;nbsp;AS&amp;nbsp;'sioc:has_creator'&amp;nbsp;FROM&amp;nbsp;node&amp;nbsp;n&amp;nbsp;WHERE&amp;nbsp;n.status&amp;nbsp;=&amp;nbsp;1&amp;nbsp;AND&amp;nbsp;type='pub'"&lt;/span>&lt;span style="color: #007700">;&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;Drupal&amp;nbsp;node&amp;nbsp;to&amp;nbsp;taxonomy/category&amp;nbsp;terms&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'terms'&lt;/span>&lt;span style="color: #007700">]&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">"SELECT&amp;nbsp;n.nid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;td.name&amp;nbsp;AS&amp;nbsp;'skos:prefLabel'&amp;nbsp;FROM&amp;nbsp;node&amp;nbsp;n&amp;nbsp;INNER&amp;nbsp;JOIN&amp;nbsp;(term_node&amp;nbsp;tn&amp;nbsp;NATURAL&amp;nbsp;JOIN&amp;nbsp;term_data&amp;nbsp;td)&amp;nbsp;ON&amp;nbsp;n.nid=tn.nid&amp;nbsp;WHERE&amp;nbsp;n.status&amp;nbsp;=&amp;nbsp;1"&lt;/span>&lt;span style="color: #007700">;&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;Drupal&amp;nbsp;CCK&amp;nbsp;custom&amp;nbsp;content&amp;nbsp;type&amp;nbsp;fields&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'pub'&lt;/span>&lt;span style="color: #007700">]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">"SELECT&amp;nbsp;nid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;field_authorsconcat_value&amp;nbsp;AS&amp;nbsp;'dc:contributor',&amp;nbsp;field_year_value&amp;nbsp;AS&amp;nbsp;'dc:date',&amp;nbsp;field_pages_value&amp;nbsp;AS&amp;nbsp;'pages',&amp;nbsp;field_language_value&amp;nbsp;AS&amp;nbsp;'dc:language',&amp;nbsp;field_copyright_value&amp;nbsp;AS&amp;nbsp;'dc:rights',&amp;nbsp;field_appeared_value&amp;nbsp;AS&amp;nbsp;'dc:publisher'&amp;nbsp;FROM&amp;nbsp;content_type_pub"&lt;/span>&lt;span style="color: #007700">;&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'author'&lt;/span>&lt;span style="color: #007700">]&amp;nbsp;=&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">"SELECT&amp;nbsp;nid&amp;nbsp;AS&amp;nbsp;id,&amp;nbsp;field_authors_value&amp;nbsp;as&amp;nbsp;'dc:creator'&amp;nbsp;FROM&amp;nbsp;content_field_authors&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;nid,delta"&lt;/span>&lt;span style="color: #007700">;&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;putting&amp;nbsp;it&amp;nbsp;together&amp;nbsp;for&amp;nbsp;triplify&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'queries'&lt;/span>&lt;span style="color: #007700">]=array(&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'user'&amp;nbsp;&lt;/span>&lt;span style="color: #007700">=&amp;gt;&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'user'&lt;/span>&lt;span style="color: #007700">],&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'pub'&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #007700">=&amp;gt;&amp;nbsp;array(&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'node'&lt;/span>&lt;span style="color: #007700">],&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'pub'&lt;/span>&lt;span style="color: #007700">],&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'author'&lt;/span>&lt;span style="color: #007700">],&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">$sql&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'terms'&lt;/span>&lt;span style="color: #007700">],&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br />);&lt;br />&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;Some&amp;nbsp;of&amp;nbsp;the&amp;nbsp;columns&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Triplify&amp;nbsp;queries&amp;nbsp;will&amp;nbsp;contain&amp;nbsp;references&amp;nbsp;to&amp;nbsp;other&lt;br />&amp;nbsp;*&amp;nbsp;objects&amp;nbsp;rather&amp;nbsp;than&amp;nbsp;literal&amp;nbsp;values.&amp;nbsp;The&amp;nbsp;following&amp;nbsp;configuration&amp;nbsp;array&lt;br />&amp;nbsp;*&amp;nbsp;specifies,&amp;nbsp;which&amp;nbsp;columns&amp;nbsp;are&amp;nbsp;references&amp;nbsp;to&amp;nbsp;objects&amp;nbsp;of&amp;nbsp;which&amp;nbsp;type.&lt;br />&amp;nbsp;*/&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'objectProperties'&lt;/span>&lt;span style="color: #007700">]=array(&lt;br />&lt;/span>&lt;span style="color: #FF8000">//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'user_id'=&amp;gt;'user',&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'sioc:has_creator'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'user'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br />);&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;Objects&amp;nbsp;are&amp;nbsp;classified&amp;nbsp;according&amp;nbsp;to&amp;nbsp;their&amp;nbsp;type.&amp;nbsp;However,&amp;nbsp;you&amp;nbsp;can&amp;nbsp;specify&lt;br />&amp;nbsp;*&amp;nbsp;a&amp;nbsp;mapping&amp;nbsp;here,&amp;nbsp;if&amp;nbsp;objects&amp;nbsp;of&amp;nbsp;a&amp;nbsp;certain&amp;nbsp;type&amp;nbsp;should&amp;nbsp;be&amp;nbsp;associated&amp;nbsp;with&amp;nbsp;a&lt;br />&amp;nbsp;*&amp;nbsp;different&amp;nbsp;class&amp;nbsp;(e.g.&amp;nbsp;classify&amp;nbsp;all&amp;nbsp;users&amp;nbsp;as&amp;nbsp;'foaf:person').&amp;nbsp;If&amp;nbsp;you&amp;nbsp;are&lt;br />&amp;nbsp;*&amp;nbsp;unsure&amp;nbsp;it&amp;nbsp;is&amp;nbsp;safe&amp;nbsp;to&amp;nbsp;leave&amp;nbsp;this&amp;nbsp;configuration&amp;nbsp;array&amp;nbsp;empty.&lt;br />&amp;nbsp;*/&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'classMap'&lt;/span>&lt;span style="color: #007700">]=array(&lt;br />&lt;/span>&lt;span style="color: #FF8000">//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'node'=&amp;gt;'sioc:Post',&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'pub'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'sioc:Post'&lt;/span>&lt;span style="color: #007700">,&lt;br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'user'&lt;/span>&lt;span style="color: #007700">=&amp;gt;&lt;/span>&lt;span style="color: #DD0000">'sioc:User'&lt;/span>&lt;span style="color: #007700">,&lt;br />&lt;/span>&lt;span style="color: #FF8000">//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'user'=&amp;gt;'foaf:person'&lt;br />&lt;/span>&lt;span style="color: #007700">);&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;You&amp;nbsp;can&amp;nbsp;specify&amp;nbsp;for&amp;nbsp;how&amp;nbsp;long&amp;nbsp;generated&amp;nbsp;files&amp;nbsp;should&amp;nbsp;be&amp;nbsp;cached.&amp;nbsp;For&amp;nbsp;smaller&lt;br />&amp;nbsp;*&amp;nbsp;Web&amp;nbsp;applications&amp;nbsp;it&amp;nbsp;is&amp;nbsp;save&amp;nbsp;to&amp;nbsp;disable&amp;nbsp;caching&amp;nbsp;by&amp;nbsp;setting&amp;nbsp;this&amp;nbsp;value&amp;nbsp;to&amp;nbsp;zero.&lt;br />&amp;nbsp;*/&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'TTL'&lt;/span>&lt;span style="color: #007700">]=&lt;/span>&lt;span style="color: #0000BB">0&lt;/span>&lt;span style="color: #007700">;&lt;br />&lt;br />&lt;/span>&lt;span style="color: #FF8000">/*&amp;nbsp;Triplify&amp;nbsp;uses&amp;nbsp;a&amp;nbsp;PDO&amp;nbsp;object&amp;nbsp;to&amp;nbsp;connect&amp;nbsp;to&amp;nbsp;the&amp;nbsp;database.&lt;br />&amp;nbsp;*/&lt;br />&lt;/span>&lt;span style="color: #0000BB">$triplify&lt;/span>&lt;span style="color: #007700">[&lt;/span>&lt;span style="color: #DD0000">'pdo'&lt;/span>&lt;span style="color: #007700">]=new&amp;nbsp;&lt;/span>&lt;span style="color: #0000BB">PDO&lt;/span>&lt;span style="color: #007700">(&lt;/span>&lt;span style="color: #DD0000">'mysql:host=localhost;dbname=drupal'&lt;/span>&lt;span style="color: #007700">,&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'user'&lt;/span>&lt;span style="color: #007700">,&amp;nbsp;&lt;/span>&lt;span style="color: #DD0000">'pass'&lt;/span>&lt;span style="color: #007700">);&lt;br />&lt;br />&lt;/span>&lt;span style="color: #0000BB">?&amp;gt;&lt;/span>
&lt;/span>
&lt;/code>&lt;/div>&lt;!--/notypo-->&lt;/div>&lt;br />
&lt;b>Deletions:&lt;/b>&lt;br />
&lt;div class="deletions">test&lt;/div>&lt;/div>
</description>
</item>
</channel>
</rss>
