Select
doSelect()
inits a SELECT query: the function accepts an array of items (by default plain strings are converted to Prefixed terms) that will be retrieved for each entity matching the conditions appended to the Builder. The query returns a Result.
use MadBob\Sparqler\Terms\OwnSubject;
$client->doSelect([new OwnSubject(), 'rdf:predicate'])
->where('rdf:filter', 'foobar')->get();
Show generated query
doSelectDistinct()
acts in the same way, but inits a SELECT DISTINCT query.
$client->doSelectDistinct(['rdf:predicate'])
->where('rdf:search', 'foobar')->get();
Show generated query