Gallery
Gallery is an open source project with the goal to develop and support leading photo sharing web application solutions.
More information can be found at:
http://gallery.menalto.com/
Triplify Configuration for Gallery 2.3
<?php
class dummyGallery{
function setConfig($p1,$p2)
{ return true;}
function setDebug($p1)
{ return true;}
function setProfile($p1)
{ return true;}
}
$gallery=new dummyGallery();
include('./../../config.php');
$triplify['db']=new PDO('mysql:host='.$storeConfig['hostname'].
';dbname='.$storeConfig['database'],$storeConfig['username'],$storeConfig['password']);
$tbl = $storeConfig['tablePrefix'];
$clm = $storeConfig['columnPrefix'];
$triplify['namespaces']=array(
'vocabulary'=>'http://triplify.org/vocabulary/gallery#',
'rdf'=>'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
'rdfs'=>'http://www.w3.org/2000/01/rdf-schema#',
'owl'=>'http://www.w3.org/2002/07/owl#',
'foaf'=>'http://xmlns.com/foaf/0.1/',
'sioc'=>'http://rdfs.org/sioc/ns#',
'sioctypes'=>'http://rdfs.org/sioc/types#',
'dc'=>'http://purl.org/dc/elements/1.1/',
'dcterms'=>'http://purl.org/dc/terms/',
'skos'=>'http://www.w3.org/2004/02/skos/core#',
'tag'=>'http://www.holygoat.co.uk/owl/redwood/0.1/tags/',
'xsd'=>'http://www.w3.org/2001/XMLSchema#',
);
$triplify['queries']=array(
'user'=>array("SELECT ".$clm."id ID, ".$clm."userName AS 'foaf:accountName',
".$clm."fullName AS 'foaf:name',
".$clm."language 'dcterms:language^^xsd:string',
SHA(CONCAT('mailto:',".$clm."email)) AS 'sioc:email_sha1'
FROM ".$tbl."User",
"SELECT ".$clm."userId ID, ".$clm."groupId AS 'sioc:member_of'
FROM ".$tbl."UserGroupMap"
),
'entity'=>"SELECT ".$clm."id ID, ".$clm."creationTimestamp AS 'dcterms:created^^xsd:time',
".$clm."modificationTimestamp AS 'dcterms:modified^^xsd:dateTime',
".$clm."entityType AS 'dcterms:type'
FROM ".$tbl."Entity",
'item'=>array("SELECT ".$clm."id ID, ".$clm."description AS 'dcterms:description',
".$clm."keywords AS 'dcterms:references', ".$clm."title AS 'dc:title',
".$clm."ownerId 'sioc:has_creator',
".$clm."viewedSinceTimestamp 'dcterms:date^^xsd:date',
".$clm."originationTimestamp 'dcterms:dateSubmitted^^xsd:dateTime'
FROM ".$tbl."Item",
"SELECT ".$clm."itemId ID, ".$clm."viewCount 'sioc:num_views^^xsd:integer',
".$clm."parentSequence 'dcterms:isReferencedBy'
FROM ".$tbl."ItemAttributesMap"
),
'group'=>"SELECT ".$clm."id ID, ".$clm."groupType AS 'dcterms:type',
".$clm."groupName AS 'sioc:name'
FROM ".$tbl."Group",
'comment'=>"SELECT ".$clm."id id, ".$clm."commenterId 'sioc:has_creator',
".$clm."subject AS 'dcterms:subject',
".$clm."comment 'rdfs:comment',
".$clm."date AS 'dcterms:created^^xsd:dateTime',
".$clm."author AS 'sioc:creator_of'
FROM ".$tbl."Comment"
);
$triplify['objectProperties']=array(
'foaf:accountName'=>'user',
'foaf:name'=>'user',
'sioc:email_sha1'=>'user',
'sioc:member_of'=>'group',
'dcterms:type'=>'entity',
'dcterms:description'=>'item',
'dc:title'=>'item',
'sioc:has_creator'=>'user',
'sioc:num_views^^xsd:integer'=>'item',
'dcterms:isReferencedBy'=>'item',
'dcterms:type'=>'group',
'sioc:name'=>'group',
'sioc:has_creator'=>'user',
'dcterms:subject'=>'comment',
'rdfs:comment'=>'comment',
);
$triplify['classMap']=array(
'user'=>'sioc:User',
'entity'=> 'skos:Concept',
'item'=> 'sioc:Item',
'group'=> 'sioc:Usergroup',
'comment'=>'Comment',
);
$triplify['license']='http://creativecommons.org/licenses/by/3.0/us/';
$triplify['register']=true;
$triplify['TTL']=0;
?>
There are no files on this page.
[Display files/form]
There is no comment on this page.
[Display comments/form]
Information
Last Modification:
2008-12-01 16:45:30 by Elias Theodorou
