curl --http1.1 --data-urlencode update@basic_insert.txt -H 'X-API-Key: <API KEY>' https://d176x3sh52.execute-api.us-west-2.amazonaws.com/development/rialto-sparql-loader
Where basic_insert.txt
is a text file with a sparql query like:
PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT DATA { <http://example/book3> dc:title 'A new book' ; dc:creator 'A.N.Other' . }
source env/bin/activate
pip install -r requirements.txt
pytest -vv -k unit
Start localstack and blazegraph via docker.
docker-compose up
Run the test
AWS_ACCESS_KEY_ID=999999 AWS_SECRET_ACCESS_KEY=1231 pytest -vv
Per the AWS Documentation, a deployment package is made from the virtualenv
installed dependencies.
source env/bin/activate
pip install -r requirements.txt
zip sparql-loader.zip handler.py sns_client.py neptune_client.py
cd env/lib/python3.6/site-packages/
zip -r ../../../../sparql-loader.zip honeybadger isodate psutil rdflib rdflib_sparql requests
Note: We are packaging the minimum level of dependencies to try to keep our deployment package small.