Source for file QueryTriple.php

Documentation is available at QueryTriple.php

  1. <?php
  2. // ---------------------------------------------
  3. // Class: QueryTriple
  4. // ---------------------------------------------
  5.  
  6. /**
  7. * Represents a query triple.
  8. *
  9. * <BR><BR>History:<UL>
  10. * <LI>08.09.2005: Initial version</LI>
  11. *
  12. * @author Tobias Gauss <tobias.gauss@web.de>
  13. * @version 0.9.3
  14. *
  15. * @package sparql
  16. */
  17. Class QueryTriple extends Object{
  18.  
  19. /**
  20. * The QueryTriples Subject.
  21. */
  22. private $subject;
  23.  
  24. /**
  25. * The QueryTriples Predicate.
  26. */
  27. private $predicate;
  28.  
  29. /**
  30. * The QueryTriples Object.
  31. */
  32. private $object;
  33.  
  34.  
  35. /**
  36. * Constructor
  37. */
  38. public function QueryTriple($sub,$pred,$ob){
  39. $this->subject = $sub;
  40. $this->predicate = $pred;
  41. $this->object = $ob;
  42. }
  43.  
  44. /**
  45. * Returns the Triples Subject.
  46. *
  47. * @return Node
  48. */
  49. public function getSubject(){
  50. return $this->subject;
  51. }
  52.  
  53. /**
  54. * Returns the Triples Predicate.
  55. *
  56. * @return Node
  57. */
  58. public function getPredicate(){
  59. return $this->predicate;
  60. }
  61.  
  62. /**
  63. * Returns the Triples Object.
  64. *
  65. * @return Node
  66. */
  67. public function getObject(){
  68. return $this->object;
  69. }
  70.  
  71. }
  72.  
  73. // end class: QueryTriple.php
  74. ?>

Documentation generated on Fri, 13 Jan 2006 07:48:55 +0100 by phpDocumentor 1.3.0RC4