Subversion

helios_wp3

[/] [trunk/] [triplify/] [bugzilla/] [config.inc.php] - Rev 45 Go to most recent revision

Compare with Previous - Blame


<?php
/* This file contains the configuration for triplify.
 * Triplify rapidly simplifies the creation of structured content for Web 2.0
 * mashups and Semantic Web applications.
 *
 * Triplyfy uses a number of SQL queries, whose results are converted into
 * either RDF/N3, JSON or Linked Data.
 *
 * @version $Id:$
 * @license LGPL
 * @copyright 2008 Sören Auer (soeren.auer@gmail.com)
 */


$triplify['db']=new PDO('mysql:host=localhost;dbname=bugzilla','bugzilla','PKLhRU39');

$triplify['namespaces']=array(
    
'vocabulary'=>'http://your-webapp.com/vocabulary/',
    
'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/',
    
'doap'=>'http://usefulinc.com/ns/doap#',
    
'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#',
    
'update'=>'http://triplify.org/vocabulary/update#',
);

/*
 * Bugzilla queries
 */

$triplify['queries']=array(
    
'project'=>"SELECT p.id AS id,
            p.name AS 'doap:name',
            c.name AS 'doap:classification',
            p.description AS 'doap:description', 
            p.milestoneurl AS 'doap:revision' 
            FROM products p INNER JOIN classifications c ON ( classification_id = c.id )"
,
    
'bug'=>"SELECT bug_id AS id,
            short_desc AS 'doap:shortdesc',
            creation_ts AS 'doap:created',
            op_sys AS 'doap:os',
            rep_platform AS 'doap:platform',
            version AS 'doap:version'
            FROM bugs"
,
    
'user'=>"SELECT    userid, SHA(CONCAT('mailto:',login_name)) AS 'foaf:mbox_sha1sum'
            FROM profiles"
,
);

$triplify['classMap']=array(
    
'user'=>'foaf:Person',
);

$triplify['objectProperties']=array(
    
'sioc:has_creator'=>'user',
);

$triplify['license']='http://creativecommons.org/licenses/by/3.0/us/';

#$triplify['metadata']=array(
#    'dc:title'=>'',
#    'dc:publisher'=>''
#);

$triplify['register']=true;

$triplify['TTL']=0;

$triplify['cachedir']='cache/';

$triplify['LinkedDataDepth']='0';

$triplify['CallbackFunctions']=array(
);
?>

Powered by WebSVN v1.61