Triplify Configuration for OpenConf 2.0
require_once("../include.php");
require_once("../db.php");
$triplify['namespaces']=array(
'vocabulary'=>'http://triplify.org/vocabulary/OpenConf/',
'foaf'=>'http://xmlns.com/foaf/0.1/',
'dc'=>'http://purl.org/dc/elements/1.1/',
'xsd'=>'http://www.w3.org/2001/XMLSchema#',
);
$triplify['queries']=array(
'paper'=>array(
"SELECT paperid id,title,keywords,abstract FROM ".OCC_TABLE_PAPER."
WHERE accepted='T'",
"SELECT paperid id,topicid hasTopic FROM ".OCC_TABLE_PAPERTOPIC." INNER JOIN
".OCC_TABLE_PAPER." USING(paperid) WHERE accepted='T'"
),
'author'=>"SELECT CONCAT(paperid,'-',position) id,SHA(CONCAT('mailto:',email)) mbox_sha1sum,paperid isAuthorOf,
name_first `foaf:firstName`,name_last `foaf:family_name`,organization,country
FROM ".OCC_TABLE_AUTHOR." INNER JOIN ".OCC_TABLE_PAPER."
USING(paperid) WHERE accepted='T'",
'PCmember'=>"SELECT reviewerid id,SHA(CONCAT('mailto:',email)) mbox_sha1sum,'".$OC_confURL."' isPCmemberOf,
name_first,name_last,url `foaf:homepage`,organization,country
FROM ".OCC_TABLE_REVIEWER." WHERE onprogramcommittee='T'",
'topic'=>"SELECT topicid id, topicname, short FROM ".OCC_TABLE_TOPIC,
);
$triplify['objectProperties']=array(
'isAuthorOf'=>'paper',
'isPCmemberOf'=>'',
'hasTopic'=>'topic'
);
$triplify['TTL']=0;
$triplify['db']=new PDO('mysql:host='.OCC_DB_HOST.';dbname='.OCC_DB_NAME, OCC_DB_USER, OCC_DB_PASSWORD);
$triplify['classMap']=array(
'author'=>'foaf:Person',
'PCmember'=>'foaf:Person'
);
There are no files on this page.
[Display files/form]
There is no comment on this page.
[Display comments/form]
Information
Last Modification:
2008-05-29 09:27:01 by Soeren Auer
