Source for file RDFS_C.php

Documentation is available at RDFS_C.php

  1. <?PHP
  2.  
  3. // ----------------------------------------------------------------------------------
  4. // RDF Vocabulary Description Language 1.0: RDF Schema (RDFS) Vocabulary (Resource)
  5. // ----------------------------------------------------------------------------------
  6. // Version : 0.9
  7. // Authors : Daniel Westphal (dawe@gmx.de)
  8. //
  9. // Description : Wrapper, defining resources for all terms of the
  10. // RDF Schema (RDFS).
  11. // For details about RDF see: http://www.w3.org/TR/rdf-schema/.
  12. // Using the wrapper allows you to define all aspects of
  13. // the vocabulary in one spot, simplifing implementation and
  14. // maintainence.
  15. //
  16. // ----------------------------------------------------------------------------------
  17. // History:
  18. // 02-21-2003 : Initial version
  19. // ----------------------------------------------------------------------------------
  20.  
  21. // RDFS concepts
  22.  
  23. class RDFS{
  24.  
  25. function RESOURCE()
  26. {
  27. return new Resource(RDF_SCHEMA_URI . 'Resource');
  28.  
  29. }
  30.  
  31. function LITERAL()
  32. {
  33. return new Resource(RDF_SCHEMA_URI . 'Literal');
  34.  
  35. }
  36.  
  37. function RDFS_CLASS()
  38. {
  39. return new Resource(RDF_SCHEMA_URI . 'Class');
  40.  
  41. }
  42.  
  43. function DATATYPE()
  44. {
  45. return new Resource(RDF_SCHEMA_URI . 'Datatype');
  46.  
  47. }
  48.  
  49. function CONTAINER()
  50. {
  51. return new Resource(RDF_SCHEMA_URI . 'Container');
  52.  
  53. }
  54.  
  55. function CONTAINER_MEMBERSHIP_PROPERTY()
  56. {
  57. return new Resource(RDF_SCHEMA_URI . 'ContainerMembershipProperty');
  58.  
  59. }
  60.  
  61. function SUB_CLASS_OF()
  62. {
  63. return new Resource(RDF_SCHEMA_URI . 'subClassOf');
  64.  
  65. }
  66.  
  67. function SUB_PROPERTY_OF()
  68. {
  69. return new Resource(RDF_SCHEMA_URI . 'subPropertyOf');
  70.  
  71. }
  72.  
  73. function DOMAIN()
  74. {
  75. return new Resource(RDF_SCHEMA_URI . 'domain');
  76.  
  77. }
  78.  
  79. function RANGE()
  80. {
  81. return new Resource(RDF_SCHEMA_URI . 'range');
  82.  
  83. }
  84.  
  85. function LABEL()
  86. {
  87. return new Resource(RDF_SCHEMA_URI . 'label');
  88.  
  89. }
  90.  
  91. function COMMENT()
  92. {
  93. return new Resource(RDF_SCHEMA_URI . 'comment');
  94.  
  95. }
  96.  
  97. function MEMBER()
  98. {
  99. return new Resource(RDF_SCHEMA_URI . 'member');
  100.  
  101. }
  102.  
  103. function SEEALSO()
  104. {
  105. return new Resource(RDF_SCHEMA_URI . 'seeAlso');
  106.  
  107. }
  108.  
  109. function IS_DEFINED_BY()
  110. {
  111. return new Resource(RDF_SCHEMA_URI . 'isDefinedBy');
  112. }
  113.  
  114. }
  115. ?>

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