I would like to paginate results of a SPARQL query to AWS Neptune. So far I've been using the HTTP API to query AWS Neptune, like
curl -X POST --data-binary 'query=select ?s ?p ?o where {?s ?p ?o} limit 10' https://your-neptune-endpoint:port/sparql
I haven't found an option to paginate results from the HTTP API, but the aws-cli and python boto3 library mention marker
and maxrecords
parameters to enable pagination.
However, I do not understand how I can query AWS Neptune via aws-cli or boto3 library, there are almost no examples/samples in the documentation.
- how do I connect to the cluster?
- how do I authenticate?
- how do I issue the query as simple as
select ?s ?p ?o where {?s ?p ?o}
? - how do I paginate the results?
Any help is highly appreciated.