Summary:<?=str_replace('<','<',str_replace('>','>',$tabObj->result->doc[$i]->str[2]))?>
<p>
Link: <?='<a href="http://labs.daum.net/search/med/detail.php?q='.str_replace('#','%23',str_replace('<','',str_replace('>','',$tabObj->result->doc[$i]->str[0]))).'">'.str_replace('<','',str_replace('>','',$tabObj->result->doc[$i]->str[0])).'</a><br />'?>
for($i=0;$i<count($domObj->result->doc);$i++){
//url
$documentStr=$domObj->result->doc[$i]->str[0];
$encodedurl = 'http://143.248.160.126/document/?q='.str_replace('>','',str_replace('<','',$documentStr));
//echo 'simplexml: '.'http://143.248.160.126/document/?q='.str_replace('>','',str_replace('<','',$documentStr));
$arrEncodedurl = split('/',$encodedurl);
$encodedurl='';
for($j=0;$j<count($arrEncodedurl);$j++){
if($j<count($arrEncodedurl)-1){
$encodedurl.=$arrEncodedurl[$j].'/';
}else{
$encodedurl.=urlencode($arrEncodedurl[$j]);
}
}
$documentObj=simplexml_load_string(get_url_contents($encodedurl));
for($j=0;$j<count($documentObj->result->doc);$j++){
$parser->parse($documentStr,$documentObj->result->doc[$j]->str[2]);
$triples = $parser->getTriples();
for($k=0;$k<count($triples);$k++){
if(!strcmp($triples[$k]['p'],'http://www.w3.org/1999/02/22-rdf-syntax-ns#type')){
@$objectNumber[$triples[$k]['o']]++;
}
}
}
}
#healthColl .wrap_section dt {padding-left:19px;background:url(http://i1.daumcdn.net/imgsrc.search/search_all/2011/ico/deseise_qicon.gif) no-repeat;}
#healthColl .wrap_section dd {padding-left:19px;background:url(http://i1.daumcdn.net/imgsrc.search/search_all/2011/ico/ico_health.gif) no-repeat;}