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. @author   Tobias Gauss <tobias.gauss@web.de>
  10. @version    $Id: fsource_sparql__sparqlQueryTriple.php.html,v 1.7 2006/06/26 12:34:18 tgauss Exp $
  11. *
  12. @package sparql
  13. */
  14. Class QueryTriple extends Object{
  15.  
  16.     /**
  17.     * The QueryTriples Subject.
  18.     */
  19.     private $subject;
  20.  
  21.     /**
  22.     * The QueryTriples Predicate.
  23.     */
  24.     private $predicate;
  25.  
  26.     /**
  27.     * The QueryTriples Object.
  28.     */
  29.     private $object;
  30.  
  31.  
  32.     /**
  33.     * Constructor
  34.     */
  35.     public function QueryTriple($sub,$pred,$ob){
  36.         $this->subject   $sub;
  37.         $this->predicate $pred;
  38.         $this->object    $ob;
  39.     }
  40.  
  41.     /**
  42.     * Returns the Triples Subject.
  43.     *
  44.     * @return Node 
  45.     */
  46.     public function getSubject(){
  47.         return $this->subject;
  48.     }
  49.  
  50.     /**
  51.     * Returns the Triples Predicate.
  52.     *
  53.     * @return Node 
  54.     */
  55.     public function getPredicate(){
  56.         return $this->predicate;
  57.     }
  58.  
  59.     /**
  60.     * Returns the Triples Object.
  61.     *
  62.     * @return Node 
  63.     */
  64.     public function getObject(){
  65.         return $this->object;
  66.     }
  67.  
  68. }
  69.  
  70. // end class: QueryTriple.php
  71. ?>

Documentation generated on Mon, 26 Jun 2006 14:25:49 +0200 by phpDocumentor 1.3.0RC6