Semantic Scholar (S2) Adapter

Implements ScholarlyDataSource against the Semantic Scholar Graph API with offset pagination and high-throughput batch endpoints.

Highlights

Search works/authors

$works = $s2->searchWorks(Query::from(['q' => 'transformers', 'limit' => 100]));
$authors = $s2->searchAuthors(Query::from(['q' => 'goodfellow']));

Lookup & lists

$s2->getWorkById('s2:123');
$s2->listReferences('s2:123', Query::from(['limit' => 200]));

Batch

foreach ($s2->batchWorksByIds(['s2:1','s2:2','s2:3'], Query::from(['fields' => ['id','title']])) as $work) {}

Configuration

Notes