Source for file DC.php

Documentation is available at DC.php

  1. <?php
  2. // ----------------------------------------------------------------------------------
  3. // Dublin Core Vocabulary
  4. // ----------------------------------------------------------------------------------
  5. // Version : 0.9
  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. // <BR><BR>History:<UL>
  17. // <LI>07-26-2004 : Update for latest DC recs; changed suffixed globals to
  18. // array items.(auer@informatik.uni-leipzig.de)</LI>
  19. // <LI>02-21-2003 : Initial version (evan@wikitravel.org)</LI>
  20. // ----------------------------------------------------------------------------------
  21.  
  22.  
  23.  
  24. // DC concepts
  25.  
  26. $DC_contributor = new Resource(DC_NS . 'contributor');
  27. $DC_coverage = new Resource(DC_NS . 'coverage');
  28. $DC_creator = new Resource(DC_NS . 'creator');
  29. $DC_date = new Resource(DC_NS . 'date');
  30. $DC_description = new Resource(DC_NS . 'description');
  31. $DC_format = new Resource(DC_NS . 'format');
  32. $DC_identifier = new Resource(DC_NS . 'identifier');
  33. $DC_language = new Resource(DC_NS . 'language');
  34. $DC_publisher = new Resource(DC_NS . 'publisher');
  35. $DC_rights = new Resource(DC_NS . 'rights');
  36. $DC_source = new Resource(DC_NS . 'source');
  37. $DC_subject = new Resource(DC_NS . 'subject');
  38. $DC_title = new Resource(DC_NS . 'title');
  39. $DC_type = new Resource(DC_NS . 'type');
  40.  
  41. // Dublin Core Metadata Element Set (DCMES) 1.1
  42. $DCMES_name = array('contributor', 'coverage', 'creator', 'date',
  43. 'description', 'format', 'identifier', 'language',
  44. 'publisher', 'relation', 'rights', 'source',
  45. 'subject', 'title', 'type');
  46.  
  47. foreach ($DCMES_name as $name) {
  48. $DCMES[$name] = new Resource(DC_NS . $name);
  49. $GLOBALS['DC_' . $name] = $DCMES[$name];
  50. }
  51.  
  52. // Other Elements and Element Refinements
  53. $DCTERM_name = array('abstract', 'accessRights', 'alternative', 'audience',
  54. 'available', 'bibliographicCitation', 'conformsTo',
  55. 'created', 'dateAccepted', 'dateCopyrighted',
  56. 'dateSubmitted', 'educationLevel', 'extent',
  57. 'hasFormat', 'hasPart', 'hasVersion',
  58. 'isFormatOf', 'isPartOf', 'isReferencedBy', 'isReplacedBy',
  59. 'isRequiredBy', 'issued', 'isVersionOf', 'license',
  60. 'mediator', 'medium', 'modified', 'references',
  61. 'replaces', 'requires', 'rightsHolder', 'spatial',
  62. 'tableOfContents', 'temporal', 'valid');
  63. foreach ($DCTERM_name as $name) {
  64. $DCTERM[$name] = new Resource(DCTERM_NS . $name);
  65. }
  66.  
  67. // Encoding schemes
  68. $scheme_name = array('Box', 'DCMIType', 'IMT', 'ISO3166', 'ISO639-2',
  69. 'LCC', 'LCSH', 'MESH', 'Period', 'Point',
  70. 'RFC1766', 'RFC3066', 'TGN', 'UDC', 'URI',
  71. 'W3CDTF');
  72.  
  73. foreach ($scheme_name as $name) {
  74. $DCTERM[$name] = new Resource(DCTERM_NS . $name);
  75. }
  76.  
  77. // DCMI Type Vocabulary
  78. $DCMITYPE_names = array('Collection', 'Dataset', 'Event', 'Image',
  79. 'InteractiveResource', 'MovingImage', 'PhysicalObject',
  80. 'Service', 'Software', 'Sound', 'StillImage', 'Text');
  81.  
  82. foreach ($DCMITYPE_names as $name) {
  83. $DCMITYPE[$name] = new Resource(DCMITYPE_NS . $name);
  84. }
  85.  
  86. ?>

Documentation generated on Fri, 17 Dec 2004 16:14:41 +0100 by phpDocumentor 1.3.0RC3