Source for file NamedGraphMem.php

Documentation is available at NamedGraphMem.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Class: NamedGraphMem
  4. // ----------------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. /**
  9. * NamedGraph implementation that extends a {@link MemModel}
  10. * with a name.
  11. *
  12. * <BR><BR>History:<UL>
  13. * <LI>05-02-2005 : First version of this class.</LI>
  14. *
  15. * @version V0.9
  16. * @author Daniel Westphal <http://www.d-westphal.de>
  17. *
  18. * @package dataset
  19. * @access public
  20. ***/
  21. class NamedGraphMem extends MemModel
  22. {
  23. /**
  24. * Name of the NamedGraphMem
  25. *
  26. * @var string
  27. * @access private
  28. */
  29. var $graphName;
  30. /**
  31. * Constructor
  32. * You have to supply a graph name. You can supply a URI
  33. *
  34. * @param string
  35. * @param string
  36. * @access public
  37. */
  38. function NamedGraphMem($graphName,$baseURI = null)
  39. {
  40. $this->setBaseURI($baseURI);
  41. $this->indexed = INDEX_TYPE;
  42. $this->setGraphName($graphName);
  43. }
  44. /**
  45. * Sets the graph name.
  46. *
  47. * @param string
  48. * @access public
  49. */
  50. function setGraphName($graphName)
  51. {
  52. $this->graphName=$graphName;
  53. }
  54. /**
  55. * Return the graph name.
  56. *
  57. * @return string
  58. * @access public
  59. */
  60. function getGraphName()
  61. {
  62. return $this->graphName;
  63. }
  64. }
  65. ?>

Documentation generated on Thu, 7 Jul 2005 13:42:16 +0200 by phpDocumentor 1.3.0RC3