source: Dev/branches/rest-dojo-ui/jQueryUI/server/rdfapi/vocabulary/DC.php @ 312

Last change on this file since 312 was 312, checked in by jkraaijeveld, 13 years ago
File size: 3.3 KB
Line 
1<?php
2// ----------------------------------------------------------------------------------
3// Dublin Core Vocabulary
4// ----------------------------------------------------------------------------------
5// @version                  : $Id: DC.php 268 2006-05-15 05:28:09Z tgauss $
6// Authors                   : Chris Bizer (chris@bizer.de)
7//
8// Description               : Wrapper, defining resources for all terms of the Dublin
9//                                                         Core Vocabulary. For details about DC see: http://dublincore.org/
10//                                                         Using the wrapper allows you to define all aspects of
11//                             the vocabulary in one spot, simplifing implementation and
12//                             maintainence. Working with the vocabulary, you should use
13//                             these resources as shortcuts in your code.
14//                                                         
15
16
17
18 
19// DC concepts
20$DC_contributor = new Resource(DC_NS . 'contributor');   
21$DC_coverage = new Resource(DC_NS . 'coverage'); 
22$DC_creator = new Resource(DC_NS . 'creator'); 
23$DC_date = new Resource(DC_NS . 'date'); 
24$DC_description = new Resource(DC_NS . 'description'); 
25$DC_format = new Resource(DC_NS . 'format'); 
26$DC_identifier = new Resource(DC_NS . 'identifier'); 
27$DC_language = new Resource(DC_NS . 'language'); 
28$DC_publisher = new Resource(DC_NS . 'publisher'); 
29$DC_rights = new Resource(DC_NS . 'rights'); 
30$DC_source = new Resource(DC_NS . 'source'); 
31$DC_subject = new Resource(DC_NS . 'subject'); 
32$DC_title = new Resource(DC_NS . 'title'); 
33$DC_type = new Resource(DC_NS . 'type'); 
34
35// Dublin Core Metadata Element Set (DCMES) 1.1
36$DCMES_name = array('contributor', 'coverage', 'creator', 'date',
37                    'description', 'format', 'identifier', 'language',
38                    'publisher', 'relation', 'rights', 'source',
39                    'subject', 'title', 'type');
40
41foreach ($DCMES_name as $name) {
42    $DCMES[$name] = new Resource(DC_NS . $name);
43    $GLOBALS['DC_' . $name] = $DCMES[$name];
44}
45
46// Other Elements and Element Refinements
47$DCTERM_name = array('abstract', 'accessRights', 'alternative', 'audience',
48                     'available', 'bibliographicCitation', 'conformsTo',
49                     'created', 'dateAccepted', 'dateCopyrighted',
50                     'dateSubmitted', 'educationLevel', 'extent',
51                     'hasFormat', 'hasPart', 'hasVersion',
52                     'isFormatOf', 'isPartOf', 'isReferencedBy', 'isReplacedBy',
53                     'isRequiredBy', 'issued', 'isVersionOf', 'license',
54                     'mediator', 'medium', 'modified', 'references',
55                     'replaces', 'requires', 'rightsHolder', 'spatial',
56                     'tableOfContents', 'temporal', 'valid');
57foreach ($DCTERM_name as $name) {
58    $DCTERM[$name] = new Resource(DCTERM_NS . $name);
59}
60
61// Encoding schemes
62$scheme_name = array('Box', 'DCMIType', 'IMT', 'ISO3166', 'ISO639-2',
63                     'LCC', 'LCSH', 'MESH', 'Period', 'Point',
64                     'RFC1766', 'RFC3066', 'TGN', 'UDC', 'URI',
65                     'W3CDTF');
66
67foreach ($scheme_name as $name) {
68   $DCTERM[$name] = new Resource(DCTERM_NS . $name);
69}
70
71// DCMI Type Vocabulary
72$DCMITYPE_names = array('Collection', 'Dataset', 'Event', 'Image',
73                        'InteractiveResource', 'MovingImage', 'PhysicalObject',
74                        'Service', 'Software', 'Sound', 'StillImage', 'Text');
75
76foreach ($DCMITYPE_names as $name) {
77    $DCMITYPE[$name] = new Resource(DCMITYPE_NS . $name);
78}
79
80?>
Note: See TracBrowser for help on using the repository browser.