"http://dbpedia.org/sparql", ); $store = ARC2::getRemoteStore($dbpconfig); if ($errs = $store->getErrors()) { echo "

getRemoteSotre error

" ; } $query = ' PREFIX rdf: PREFIX rdfs: select distinct ?l ?c where {?c a rdfs:Class. ?c rdfs:label ?l} limit 100 '; $rows = $store->query($query, 'rows'); /* execute the query */ if ($errs = $store->getErrors()) { echo "Query errors" ; print_r($errs); } /* display the results in an HTML table */ echo "" ; foreach( $rows as $row ) { /* loop for each returned row */ print ""; } echo "
" .$row['l'] . "" . $row['c']. "
" ?>