{"id":20114721,"url":"https://github.com/gatenlp/sesamesparql","last_synced_at":"2026-05-13T09:03:06.326Z","repository":{"id":43635732,"uuid":"266746574","full_name":"GateNLP/SesameSPARQL","owner":"GateNLP","description":"Query a SPARQL Endpoint and Retrieve Result as a TSV file","archived":false,"fork":false,"pushed_at":"2024-10-03T18:47:10.000Z","size":2353,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-09T19:52:49.722Z","etag":null,"topics":["cli","command-line-tool","openrdf","sparql","sparql-query","tsv"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GateNLP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-25T10:07:43.000Z","updated_at":"2022-02-22T16:27:31.000Z","dependencies_parsed_at":"2022-09-16T02:11:53.093Z","dependency_job_id":null,"html_url":"https://github.com/GateNLP/SesameSPARQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GateNLP/SesameSPARQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FSesameSPARQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FSesameSPARQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FSesameSPARQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FSesameSPARQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GateNLP","download_url":"https://codeload.github.com/GateNLP/SesameSPARQL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GateNLP%2FSesameSPARQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32975183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line-tool","openrdf","sparql","sparql-query","tsv"],"created_at":"2024-11-13T18:31:32.144Z","updated_at":"2026-05-13T09:03:06.310Z","avatar_url":"https://github.com/GateNLP.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tool for Accessing a SPARQL endpoint and fetching query results from there.\n\nSimple API and command line tool to retrieve the result of SPARQL queries from a \nSesame repository.\n\nThe tool can be used to retrieve large result sets without overwhelming the server by retrieving\nsmall batches of data (see option -b below) and allows to increase the maxmimum query timeout\nfor queries over a large repository.\n\n## Setup \n\n* clone the repository and change into the directory\n* run `mvn package`\n\nThis creates a single jar in `./target` which contains all the dependencies.\n\n## Usage\n\n\nRun the command:\n```\n./bin/query.sh -u \u003cSPARQL-endpoing-URL\u003e -i \u003cQUERY\u003e [OTHEROPTIONS]\n```\n\nThe result rows are written to standard output.\n\nTo get usage information:\n```\n./bin/query.sh -h\n```\n\nThis outputs:\n```\nusage: ./bin/query.sh [options]\n -b \u003carg\u003e    Batchsize for queries, default: retrieve all at once\n -ee \u003carg\u003e   error on invalid strings: true or false, default=false\n -h          Show help information\n -i \u003carg\u003e    Query input file (required)\n -ii \u003carg\u003e   include inferred: true or false, default=true\n -mt \u003carg\u003e   maximum query time in seconds, default=3600\n -ph \u003carg\u003e   print headers: true or false, default=false\n -u \u003carg\u003e    endpoint URL (required)\n```\n\n### Examples\n\nQuery DBPedia and get the URI and English language film title of films starring Charlie Chaplin:\n\nQuery file `examples/example2.sparql`:\n```\nPREFIX dbo: \u003chttp://dbpedia.org/ontology/\u003e\nPREFIX res: \u003chttp://dbpedia.org/resource/\u003e\nPREFIX rdf: \u003chttp://www.w3.org/1999/02/22-rdf-syntax-ns#\u003e\nPREFIX rdfs: \u003chttp://www.w3.org/2000/01/rdf-schema#\u003e\nSELECT DISTINCT ?uri ?string\nWHERE {\n        ?uri rdf:type dbo:Film .\n        ?uri dbo:starring res:Charlie_Chaplin .\n        OPTIONAL {?uri rdfs:label ?string . FILTER (lang(?string) = 'en') }\n}\n```\n\nRun the command to retrieve the result, write to file `chaplin_films.tsv` with column headers:\n```\n./bin/query.sh -ph true -u  http://DBpedia.org/sparql -i examples/example2.sparql \u003e chaplin_films.tsv \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fsesamesparql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgatenlp%2Fsesamesparql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgatenlp%2Fsesamesparql/lists"}