Source for file FOAF_C.php

Documentation is available at FOAF_C.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Friend of a Friend (FOAF) Vocabulary (Resource)
  4. // ----------------------------------------------------------------------------------
  5. // Version : 0.9
  6. // Authors : Tobias Gauß (tobias.gauss@web.de)
  7. //
  8. // Description : Wrapper, defining resources for all terms of the
  9. // Friend of a Friend project (FOAF).
  10. // For details about FOAF see: http://xmlns.com/foaf/0.1/.
  11. // Using the wrapper allows you to define all aspects of
  12. // the vocabulary in one spot, simplifing implementation and
  13. // maintainence.
  14. //
  15. // ----------------------------------------------------------------------------------
  16. // History:
  17. // 11-08-2003 : Initial version
  18. // ----------------------------------------------------------------------------------
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. class FOAF{
  29.  
  30.  
  31. function AGENT()
  32. {
  33. return new Resource(FOAF_NS . 'Agent');
  34.  
  35. }
  36.  
  37. function DOCUMENT()
  38. {
  39. return new Resource(FOAF_NS . 'Document');
  40.  
  41. }
  42.  
  43. function GROUP()
  44. {
  45. return new Resource(FOAF_NS . 'Group');
  46.  
  47. }
  48.  
  49. function IMAGE()
  50. {
  51. return new Resource(FOAF_NS . 'Image');
  52.  
  53. }
  54.  
  55. function ONLINE_ACCOUNT()
  56. {
  57. return new Resource(FOAF_NS . 'OnlineAccount');
  58.  
  59. }
  60.  
  61. function ONLINE_CHAT_ACCOUNT()
  62. {
  63. return new Resource(FOAF_NS . 'OnlineChatAccount');
  64.  
  65. }
  66.  
  67. function ONLINE_ECOMMERCE_ACCOUNT()
  68. {
  69. return new Resource(FOAF_NS . 'OnlineEcommerceAccount');
  70.  
  71. }
  72.  
  73. function ONLINE_GAMING_ACCOUNT()
  74. {
  75. return new Resource(FOAF_NS . 'OnlineGamingAccount');
  76.  
  77. }
  78.  
  79. function ORGANIZATION()
  80. {
  81. return new Resource(FOAF_NS . 'Organization');
  82.  
  83. }
  84.  
  85. function PERSON()
  86. {
  87. return new Resource(FOAF_NS . 'Person');
  88.  
  89. }
  90.  
  91. function PERSONAL_PROFILE_DOCUMENT()
  92. {
  93. return new Resource(FOAF_NS . 'PersonalProfileDocument');
  94.  
  95. }
  96.  
  97. function PROJECT()
  98. {
  99. return new Resource(FOAF_NS . 'Project');
  100.  
  101. }
  102.  
  103. function ACCOUNT_NAME()
  104. {
  105. return new Resource(FOAF_NS . 'accountName');
  106.  
  107. }
  108.  
  109. function ACCOUNT_SERVICE_HOMEPAGE()
  110. {
  111. return new Resource(FOAF_NS . 'accountServiceHomepage');
  112.  
  113. }
  114.  
  115. function AIM_CHAT_ID()
  116. {
  117. return new Resource(FOAF_NS . 'aimChatID');
  118.  
  119. }
  120.  
  121. function BASED_NEAR()
  122. {
  123. return new Resource(FOAF_NS . 'based_near');
  124.  
  125. }
  126.  
  127. function CURRENT_PROJECT()
  128. {
  129. return new Resource(FOAF_NS . 'currentProject');
  130.  
  131. }
  132.  
  133. function DEPICTION()
  134. {
  135. return new Resource(FOAF_NS . 'depiction');
  136.  
  137. }
  138.  
  139. function DEPICTS()
  140. {
  141. return new Resource(FOAF_NS . 'depicts');
  142.  
  143. }
  144.  
  145. function DNA_CHECKSUM()
  146. {
  147. return new Resource(FOAF_NS . 'dnaChecksum');
  148.  
  149. }
  150.  
  151. function FAMILY_NAME()
  152. {
  153. return new Resource(FOAF_NS . 'family_name');
  154.  
  155. }
  156.  
  157. function FIRST_NAME()
  158. {
  159. return new Resource(FOAF_NS . 'firstName');
  160.  
  161. }
  162.  
  163. function FUNDED_BY()
  164. {
  165. return new Resource(FOAF_NS . 'fundedBy');
  166.  
  167. }
  168.  
  169. function GEEKCODE()
  170. {
  171. return new Resource(FOAF_NS . 'geekcode');
  172.  
  173. }
  174.  
  175. function GENDER()
  176. {
  177. return new Resource(FOAF_NS . 'gender');
  178.  
  179. }
  180.  
  181. function GIVENNAME()
  182. {
  183. return new Resource(FOAF_NS . 'givenname');
  184.  
  185. }
  186.  
  187. function HOLDS_ACCOUNT()
  188. {
  189. return new Resource(FOAF_NS . 'holdsAccount');
  190.  
  191. }
  192.  
  193. function HOMEPAGE()
  194. {
  195. return new Resource(FOAF_NS . 'homepage');
  196.  
  197. }
  198.  
  199. function ICQ_CHAT_ID()
  200. {
  201. return new Resource(FOAF_NS . 'icqChatID');
  202.  
  203. }
  204.  
  205. function IMG()
  206. {
  207. return new Resource(FOAF_NS . 'img');
  208.  
  209. }
  210.  
  211. function INTEREST()
  212. {
  213. return new Resource(FOAF_NS . 'interest');
  214.  
  215. }
  216.  
  217. function JABBER_ID()
  218. {
  219. return new Resource(FOAF_NS . 'jabberID');
  220.  
  221. }
  222.  
  223. function KNOWS()
  224. {
  225. return new Resource(FOAF_NS . 'knows');
  226.  
  227. }
  228.  
  229. function LOGO()
  230. {
  231. return new Resource(FOAF_NS . 'logo');
  232.  
  233. }
  234.  
  235. function MADE()
  236. {
  237. return new Resource(FOAF_NS . 'made');
  238.  
  239. }
  240.  
  241. function MAKER()
  242. {
  243. return new Resource(FOAF_NS . 'maker');
  244.  
  245. }
  246.  
  247. function MBOX()
  248. {
  249. return new Resource(FOAF_NS . 'mbox');
  250.  
  251. }
  252.  
  253. function MBOX_SHA1SUM()
  254. {
  255. return new Resource(FOAF_NS . 'mbox_sha1sum');
  256.  
  257. }
  258.  
  259. function MEMBER()
  260. {
  261. return new Resource(FOAF_NS . 'member');
  262.  
  263. }
  264.  
  265. function MEMBERSHIP_CLASS()
  266. {
  267. return new Resource(FOAF_NS . 'membershipClass');
  268.  
  269. }
  270.  
  271. function MSN_CHAT_ID()
  272. {
  273. return new Resource(FOAF_NS . 'msnChatID');
  274.  
  275. }
  276.  
  277. function MYERS_BRIGGS()
  278. {
  279. return new Resource(FOAF_NS . 'myersBriggs');
  280.  
  281. }
  282.  
  283. function NAME()
  284. {
  285. return new Resource(FOAF_NS . 'name');
  286.  
  287. }
  288.  
  289. function NICK()
  290. {
  291. return new Resource(FOAF_NS . 'nick');
  292.  
  293. }
  294.  
  295. function PAGE()
  296. {
  297. return new Resource(FOAF_NS . 'page');
  298.  
  299. }
  300.  
  301. function PAST_PROJECT()
  302. {
  303. return new Resource(FOAF_NS . 'pastProject');
  304.  
  305. }
  306.  
  307. function PHONE()
  308. {
  309. return new Resource(FOAF_NS . 'phone');
  310.  
  311. }
  312.  
  313. function PLAN()
  314. {
  315. return new Resource(FOAF_NS . 'plan');
  316.  
  317. }
  318.  
  319. function PRIMARY_TOPIC()
  320. {
  321. return new Resource(FOAF_NS . 'primaryTopic');
  322.  
  323. }
  324.  
  325. function PUBLICATIONS()
  326. {
  327. return new Resource(FOAF_NS . 'publications');
  328.  
  329. }
  330.  
  331. function SCHOOL_HOMEPAGE()
  332. {
  333. return new Resource (FOAF_NS . 'schoolHomepage');
  334.  
  335. }
  336.  
  337. function SHA1()
  338. {
  339. return new Resource (FOAF_NS . 'sha1');
  340.  
  341. }
  342.  
  343. function SURNAME()
  344. {
  345. return new Resource (FOAF_NS . 'surname');
  346.  
  347. }
  348.  
  349. function THEME()
  350. {
  351. return new Resource(FOAF_NS . 'theme');
  352.  
  353. }
  354.  
  355. function THUMBNAIL()
  356. {
  357. return new Resource(FOAF_NS . 'thumbnail');
  358.  
  359. }
  360.  
  361. function TIPJAR()
  362. {
  363. return new Resource(FOAF_NS . 'tipjar');
  364.  
  365. }
  366.  
  367. function TITLE()
  368. {
  369. return new Resource(FOAF_NS . 'title');
  370.  
  371. }
  372.  
  373. function TOPIC()
  374. {
  375. return new Resource(FOAF_NS . 'topic');
  376.  
  377. }
  378.  
  379. function TOPIC_INTEREST()
  380. {
  381. return new Resource(FOAF_NS . 'topic_interest');
  382.  
  383. }
  384.  
  385. function WEBLOG()
  386. {
  387. return new Resource(FOAF_NS . 'weblog');
  388.  
  389. }
  390.  
  391. function WORK_INFO_HOMEPAGE()
  392. {
  393. return new Resource(FOAF_NS . 'workInfoHomepage');
  394.  
  395. }
  396.  
  397. function WORKPLACE_HOMEPAGE()
  398. {
  399. return new Resource(FOAF_NS . 'workplaceHomepage');
  400.  
  401. }
  402.  
  403. function YAHOO_CHAT_ID()
  404. {
  405. return new Resource(FOAF_NS . 'yahooChatID');
  406. }
  407. }
  408.  
  409.  
  410.  
  411.  
  412.  
  413. ?>

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