Subversion

helios_wp3

[/] [trunk/] [d2r/] [UDD/] [mapping.n3] - Rev 21 Go to most recent revision

Compare with Previous - Blame


@prefix map: <file:/home/olivier/d2r-server-0.6/mapping.n3#> .
@prefix db: <> .
@prefix vocab: <http://localhost:2020/vocab/resource/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix jdbc: <http://d2rq.org/terms/jdbc/> .
@prefix debbugs:    <http://helios-project.org/ontologies/2009/01/20/debbugs#> .
@prefix foaf:	    <http://xmlns.com/foaf/0.1/> .

map:database a d2rq:Database;
        d2rq:jdbcDriver "org.postgresql.Driver";
        d2rq:jdbcDSN "jdbc:postgresql://127.0.0.1/UDD";
        d2rq:username "udd";
        d2rq:password "xxxxxx";
#	d2rq:resultSizeLimit 500;
        .

# Table d2r_bugs
map:debbug a d2rq:ClassMap;
        d2rq:dataStorage map:database;
        d2rq:uriPattern "debbug/@@d2r_bugs.id@@";
#	d2rq:class vocab:bugs;
        d2rq:class debbugs:Debbug;
        d2rq:classDefinitionLabel "UDD bugs";
#	d2rq:bNodeIdColumns "d2r_bugs.email_phrase,d2r_bugs.email_address,d2r_bugs.sha1mailto";
        .
map:debbug__label a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property rdfs:label;
        d2rq:pattern "Debian bug #@@d2r_bugs.id@@";
        .
map:debbug_bugurl a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property debbugs:bugUrl;
        d2rq:propertyDefinitionLabel "bug URL";
#	d2rq:column "d2r_bugs.id";
#	d2rq:datatype xsd:int;
        d2rq:uriPattern "http://bugs.debian.org/@@d2r_bugs.id@@";
        .
map:debbug_id a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property debbugs:number;
        d2rq:propertyDefinitionLabel "bugs id";
        d2rq:column "d2r_bugs.id";
        d2rq:datatype xsd:int;
        .
map:debbug_package a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_package;
        d2rq:propertyDefinitionLabel "bugs package";
#	d2rq:column "d2r_bugs.package";
        d2rq:uriPattern "package/@@d2r_bugs.package@@";
        .
map:debbug_source a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_source;
        d2rq:propertyDefinitionLabel "bugs source";
        d2rq:column "d2r_bugs.source";
        .
map:debbug_arrival a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_arrival;
        d2rq:propertyDefinitionLabel "bugs arrival";
        d2rq:column "d2r_bugs.arrival";
        d2rq:datatype xsd:dateTime;
        .
map:debbug_status a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_status;
        d2rq:propertyDefinitionLabel "bugs status";
        d2rq:column "d2r_bugs.status";
        .
#
map:SeverityTable a d2rq:TranslationTable;
        d2rq:translation [ d2rq:databaseValue "critical"; d2rq:rdfValue debbugs:Critical; ];
        d2rq:translation [ d2rq:databaseValue "wishlist"; d2rq:rdfValue debbugs:Wishlist; ];
        d2rq:translation [ d2rq:databaseValue "minor"; d2rq:rdfValue debbugs:Minor; ];
        d2rq:translation [ d2rq:databaseValue "fixed"; d2rq:rdfValue debbugs:Fixed; ];
        d2rq:translation [ d2rq:databaseValue "grave"; d2rq:rdfValue debbugs:Grave; ];
        d2rq:translation [ d2rq:databaseValue "normal"; d2rq:rdfValue debbugs:Normal; ];
        d2rq:translation [ d2rq:databaseValue "important"; d2rq:rdfValue debbugs:Important; ];
        d2rq:translation [ d2rq:databaseValue "serious"; d2rq:rdfValue debbugs:Serious; ].

map:debbug_severity a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_severity;
        d2rq:uriColumn "d2r_bugs.severity";
#	d2rq:propertyDefinitionLabel "bugs severity";
#	d2rq:uriPattern "debbugs:@@d2r_bugs.severity@@";
        d2rq:translateWith map:SeverityTable
        .

map:debbug_submitter a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property debbugs:hasSubmitter;
        d2rq:propertyDefinitionLabel "bugs submitter";
        d2rq:uriPattern "foafdebbug/@@d2r_bugs.submitter|urlencode@@";
        .

map:debbug_owner a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_owner;
        d2rq:propertyDefinitionLabel "bugs owner";
        d2rq:column "d2r_bugs.owner";
        .
map:debbug_title a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property debbugs:summary;
        d2rq:propertyDefinitionLabel "bugs title";
        d2rq:column "d2r_bugs.title";
        .
map:debbug_last_modified a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_last_modified;
        d2rq:propertyDefinitionLabel "bugs last_modified";
        d2rq:column "d2r_bugs.last_modified";
        d2rq:datatype xsd:dateTime;
        .
map:debbug_affects_stable a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_affects_stable;
        d2rq:propertyDefinitionLabel "bugs affects_stable";
        d2rq:column "d2r_bugs.affects_stable";
        d2rq:datatype xsd:boolean;
        .
map:debbug_affects_testing a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_affects_testing;
        d2rq:propertyDefinitionLabel "bugs affects_testing";
        d2rq:column "d2r_bugs.affects_testing";
        d2rq:datatype xsd:boolean;
        .
map:debbug_affects_unstable a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_affects_unstable;
        d2rq:propertyDefinitionLabel "bugs affects_unstable";
        d2rq:column "d2r_bugs.affects_unstable";
        d2rq:datatype xsd:boolean;
        .
map:debbug_affects_experimental a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_affects_experimental;
        d2rq:propertyDefinitionLabel "bugs affects_experimental";
        d2rq:column "d2r_bugs.affects_experimental";
        d2rq:datatype xsd:boolean;
        .
map:debbug_forwarded a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_forwarded;
        d2rq:propertyDefinitionLabel "bugs forwarded";
        d2rq:column "d2r_bugs.forwarded";
        .
map:debbug_done a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:debbug;
        d2rq:property vocab:bugs_done;
        d2rq:propertyDefinitionLabel "bugs done";
        d2rq:column "d2r_bugs.done";
        .

# Table d2r_bugsubmitters
map:foafdebbug a d2rq:ClassMap;
        d2rq:dataStorage map:database;
        d2rq:uriPattern "foafdebbug/@@d2r_bugsubmitters.submitter|urlencode@@";
#	d2rq:class vocab:bugs;
        d2rq:class foaf:Person;
        d2rq:classDefinitionLabel "FOAF profile of a UDD bug submitter";
        .
map:foafdebbug_submitter_phrase a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:foafdebbug;
        d2rq:property foaf:name;
        d2rq:propertyDefinitionLabel "bug submitter name";
        d2rq:column "d2r_bugsubmitters.email_phrase";
        .
map:debbug_submitter_address a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:foafdebbug;
        d2rq:property foaf:mbox;
        d2rq:propertyDefinitionLabel "bug submitter email";
#	d2rq:column "d2r_bugs.email_address";
        d2rq:uriPattern "mailto:@@d2r_bugsubmitters.email_address@@";
        .
map:debbug_submitter_addressSHA1 a d2rq:PropertyBridge;
    d2rq:belongsToClassMap map:foafdebbug;
    d2rq:property foaf:mbox_sha1sum;
    d2rq:column "d2r_bugsubmitters.sha1mailto";
    .

# Table d2r_bugsubmitters
map:package a d2rq:ClassMap;
        d2rq:dataStorage map:database;
        d2rq:uriPattern "package/@@d2r_package.package@@";
#	d2rq:class vocab:bugs;
        d2rq:class debbugs:Package;
        d2rq:classDefinitionLabel "FOAF profile of a UDD bug submitter";
        .
map:package__label a d2rq:PropertyBridge;
        d2rq:belongsToClassMap map:package;
        d2rq:property rdfs:label;
        d2rq:pattern "Debian package @@d2r_package.package@@";
        .


Powered by WebSVN v1.61