diff --git a/README b/README index 48e7e609673255c46caa5749a2d57b92fb1b3c3a..839586ed59575909b8256ad9877a3b04df93a6a8 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ lodspeakr - Linked Open Data Simple Publishing Kit author: Alvaro Graves (alvaro@graves.cl) -version: 20120329 +version: 20120411 Simplest Installation --------------------- diff --git a/classes/Utils.php b/classes/Utils.php index 64a40faf4b82dbcc660ceb0d539c9a2cdafc576f..29028d5f8b4fd61d4ad7745bdfc46a2db9047ba1 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -87,7 +87,15 @@ class Utils{ $row[$k]['uri'] = 1; }elseif($v['type'] == 'bnode'){ $row[$k]['curie'] = 'blankNode'; - } + }else{ + if($v['datatype']){ + $row[$k]['type'] = $v['datatype']; + } + if($v['xml:lang']){ + $row[$k]['lang'] = $v['xml:lang']; + } + + } } /*if(sizeof($aux) == 1){ $obj = $row; @@ -428,9 +436,6 @@ class Utils{ if(Utils::getResultsType($query) == $conf['output']['select']){ $rPointer[$strippedModelFile] = Utils::sparqlResult2Obj($aux); $fPointer[$strippedModelFile] = $rPointer[$strippedModelFile][0]; - /*if(sizeof($rPointer)>0){ - $rPointer[$modelFile]['firstResults'] = $rPointer[$modelFile][0]; - }*/ }else{ $lodspk['resultRdf'] = true; $rPointer[$strippedModelFile] = $aux; @@ -439,9 +444,6 @@ class Utils{ if(Utils::getResultsType($query) == $conf['output']['select']){ $rPointer = Utils::sparqlResult2Obj($aux); $fPointer[$strippedModelFile] = $rPointer[0]; - /*if(sizeof($rPointer)>0){ - $rPointer['firstResults'] = $rPointer[0]; - }*/ }else{ $lodspk['resultRdf'] = true; $rPointer = $aux;