How to work with LarKC using the command line
Thanks to Paul Groth for providing these tips.
These are some commands for submitting and query larkc from the command line. I assume that larkc is started on http://localhost:8182
Submitting workflows
replace foaf.rdf with your workflow path
$ curl --data "workflow=`cat foaf.rdf`" http://localhost:8182/rdf/workflows
this returns a workflow id {WID}
Retrieving a Sparql Endpoint
replace {WID} with the id of your workflow
$ curl "http://localhost:8182/rdf/workflows/{WID}/endpoint?type=urn:eu.larkc.endpoint.sparql"this returns a sparql endpoint url {endpoint_url}
Querying a larkc workflow
assumes https://github.com/tialaramex/sparql-query is installed.
replace {endpoint_url} with the sparql endpoint url of your workflow returned by larkc
$ sparql-query -n {endpoint_url}run your favorite queries.
