You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.1 KiB
76 lines
1.1 KiB
13 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Subject Predicate Object
|
||
|
* I.E. This, has, that
|
||
|
*/
|
||
|
class SPO
|
||
|
{
|
||
|
private $subject;
|
||
|
private $predicate;
|
||
|
private $object;
|
||
|
|
||
|
public function __construct($subject, $predicate, $object)
|
||
|
{
|
||
|
$this->subject = $subject;
|
||
|
$this->predicate = $predicate;
|
||
|
$this->object = $object;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the subject
|
||
|
* @return type
|
||
|
*/
|
||
|
public function getSubject()
|
||
|
{
|
||
|
return $this->subject;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the predicate
|
||
|
* @return type
|
||
|
*/
|
||
|
public function getPredicate()
|
||
|
{
|
||
|
return $this->predicate;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the object
|
||
|
* @return type
|
||
|
*/
|
||
|
public function getObject()
|
||
|
{
|
||
|
return $this->object;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Set the subject
|
||
|
* @param type $value
|
||
|
*/
|
||
|
public function setSubject($value)
|
||
|
{
|
||
|
$this->subject = $value;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Set the predicate
|
||
|
* @param type $value
|
||
|
*/
|
||
|
public function setPredicate($value)
|
||
|
{
|
||
|
$this->predicate = $value;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Set the object
|
||
|
* @param type $value
|
||
|
*/
|
||
|
public function setObject($value)
|
||
|
{
|
||
|
$this->object = $value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|