Source for file NamedGraphDb.php

Documentation is available at NamedGraphDb.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Class: NamedGraphDb
  4. // ----------------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. /**
  9. * Persistent NamedGraph implementation that extends a {@link DbModel}.
  10. * The graphName is not stored in the database. As soon as the namedGraph is added
  11. * to a RDF dataset the graphName is saved.
  12. *
  13. * <BR><BR>History:<UL>
  14. * <LI>05-30-2005 : First version of this class.</LI>
  15. *
  16. * @version V0.9
  17. * @author Daniel Westphal (http://www.d-westphal.de)
  18. *
  19. * @package dataset
  20. * @access public
  21. ***/
  22. class NamedGraphDb extends DbModel
  23. {
  24.  
  25. /**
  26. * Name of the NamedGraphDb
  27. *
  28. * @var string
  29. * @access private
  30. */
  31. var $graphName;
  32. /**
  33. * Constructor
  34. * Do not call this directly.
  35. * Use the method getModel,getNewModel or putModel of the Class NamedGraphDb instead.
  36. *
  37. * @param ADODBConnection
  38. * @param string
  39. * @param string
  40. * @param string
  41. * @access public
  42. */
  43. function NamedGraphDb(&$dbConnection, $modelURI, $modelID,$graphName, $baseURI=NULL)
  44. {
  45. $this->dbConn =& $dbConnection;
  46. $this->modelURI = $modelURI;
  47. $this->modelID = $modelID;
  48. $this->baseURI = $this->_checkBaseURI($baseURI);
  49. $this->graphName = $graphName;
  50. }
  51. /**
  52. * Sets the graph name.
  53. *
  54. * @param string
  55. * @access public
  56. */
  57. function setGraphName($graphName)
  58. {
  59. $this->graphName=$graphName;
  60. }
  61. /**
  62. * Return the graph name.
  63. *
  64. * @return string
  65. * @access public
  66. */
  67. function getGraphName()
  68. {
  69. return $this->graphName;
  70. }
  71. }
  72. ?>

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