Changeset 36 for php/trunk/classes/rdfa_Data.php
- Timestamp:
- Jul 15, 2011, 3:02:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
php/trunk/classes/rdfa_Data.php
r35 r36 823 823 $uriPredicate = ($uriPredicate === NULL) ? $predicate : $uriPredicate; 824 824 $uriObject = ($uriObject === NULL) ? $object : $uriObject; 825 825 826 826 // check what type we have 827 827 // This is not clear in the API. It could be interpreted that the only acceptable value is a literal … … 838 838 if (!preg_match('#^(uri|bnode|literal)$#', strtolower($type))) 839 839 return false; 840 840 841 841 // construct the aTriple array 842 842 $aTriple = array(); … … 848 848 $aTriple['p_type'] = 'uri'; 849 849 $aTriple['o_type'] = strtolower($type); 850 850 851 851 $aTriple['o_datatype'] = ''; // data types, currently not supported by the API 852 852 $aTriple['o_lang'] = ''; // language, same same 853 853 854 854 855 855 $this->_addTriple( $aTriple); 856 856 857 857 return true; 858 858 … … 890 890 $fLogMessages = (!$this->_calledFromOwnCode()); 891 891 if (! $this->_subjectExists( $subject)) { 892 echo "### no subject \n";893 892 if ($fLogMessages) $this->debugger->sendMessage( "Cannot get projection for subject: $subject", 894 893 self::debugcontext);
Note:
See TracChangeset
for help on using the changeset viewer.