Changeset 21 for php/trunk/classes/rdfa_Data.php
- Timestamp:
- Jul 12, 2011, 12:54:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
php/trunk/classes/rdfa_Data.php
r20 r21 756 756 } // public function _getFirstValue 757 757 758 // -------------------------------------------------------- 759 760 /** 761 * Sets a property value for a subject. 762 * 763 * \param subject subject to get the property set 764 * \param property property to be added 765 * \param value value to be set for the property 766 * \param type the type of the value, either 'uri', 'literal' or 'bnode' 767 * (case-insensitive). Specifying the first character is sufficient. 768 * If not specified, strings starting with 'http://' are taken as a URI, 769 * otherwise as a literal 770 * \retval true property value set 771 * \retval false subject not found or invalid value type specified 772 * 773 * \see rdfa::Projection::set 774 * 775 * <strong>NOTE: 776 * - This method is a library specific extension to the RDFa API 777 * - The parameter type is a library specific extension to the RDF API 778 * </strong> 779 */ 780 781 public function setValue( $subject, $property, $value, $type = NULL) { 782 783 $predicate = $property; 784 $object = $value; 785 786 // insert code here 787 } 788 758 789 /**@} */ /***************** DOXYGEN GROUP ENDS - Basic APIs */ 759 790 … … 1003 1034 $ser = \ARC2::getTurtleSerializer(); 1004 1035 break; 1005 1036 1006 1037 case 'n3': 1007 1038 $ser = \ARC2::getNTriplesSerializer(); 1008 1039 break; 1009 1040 1010 1041 case 'json': 1011 1042 $ser = \ARC2::getRDFJSONSerializer(); 1012 1043 break; 1013 1044 1014 1045 } // switch ($type) 1015 1046 … … 1017 1048 1018 1049 } // public function _serialize 1019 1050 1020 1051 } // class Data 1021 1052
Note:
See TracChangeset
for help on using the changeset viewer.