{"id":34553659,"url":"https://github.com/ross-spencer/spargo","last_synced_at":"2026-05-19T16:32:11.225Z","repository":{"id":51299454,"uuid":"236413231","full_name":"ross-spencer/spargo","owner":"ross-spencer","description":"SPARQL helper library for Golang","archived":false,"fork":false,"pushed_at":"2021-05-17T06:14:40.000Z","size":67,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-25T19:37:55.535Z","etag":null,"topics":["cli-app","golang-package","linked-open-data","sparql","wikidata"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ross-spencer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-27T03:26:19.000Z","updated_at":"2021-09-30T11:04:39.000Z","dependencies_parsed_at":"2022-09-01T23:20:58.941Z","dependency_job_id":null,"html_url":"https://github.com/ross-spencer/spargo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ross-spencer/spargo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Fspargo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Fspargo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Fspargo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Fspargo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ross-spencer","download_url":"https://codeload.github.com/ross-spencer/spargo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Fspargo/sbom","scorecard":{"id":785140,"data":{"date":"2025-08-11","repo":{"name":"github.com/ross-spencer/spargo","commit":"a0e30b87228cecfe125921ebc54b6975a9588d9e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/github-actions.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-actions.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/ross-spencer/spargo/github-actions.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/github-actions.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/ross-spencer/spargo/github-actions.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T05:54:14.145Z","repository_id":51299454,"created_at":"2025-08-23T05:54:14.145Z","updated_at":"2025-08-23T05:54:14.145Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33224573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-app","golang-package","linked-open-data","sparql","wikidata"],"created_at":"2025-12-24T08:21:39.465Z","updated_at":"2026-05-19T16:32:11.220Z","avatar_url":"https://github.com/ross-spencer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spargo\n\nSPARQL helper library for Golang\n\n[![Go test](https://github.com/ross-spencer/spargo/actions/workflows/github-actions.yml/badge.svg)](https://github.com/ross-spencer/spargo/actions/workflows/github-actions.yml)\n[![GoDoc](https://godoc.org/github.com/ross-spencer/spargo?status.svg)](https://godoc.org/github.com/ross-spencer/spargo/pkg/spargo)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ross-spencer/spargo/pkg/spargo)](https://goreportcard.com/report/github.com/ross-spencer/spargo/pkg/spargo)\n\n## .sparql File Format\n\nThe .sparql file format can be written as follows, note `#!spargo` is a magic\nnumber when used like this.\n\n```\n#!spargo\n\nENDPOINT=...\n\n# Comment\n{sparql query}\n```\n\n## spargo interpreter\n\nBorrowing from the above, with spargo reachable via a path such as\n`/usr/bin/spargo` then a .sparql file can be configured like an interpretable\nscript, so:\n\n```\n#!/usr/bin/spargo\n\nENDPOINT=...\n\n# Comment\n{sparql query}\n```\n\nLets call it `mysparql.sparql`. It can be run with executable permissions:\n\n```\n$ ./mysparql.sparql\n```\n\nAnd a JSON response will be returned to the caller.\n\n## spargo Command\n\nThe `spargo` command supports piped input, and there are some example queries\nthat can help demonstrate that.\n\nIn the spargo cmd folder, one can do the following:\n\n```\ngithub.com/ross-spencer/spargo/cmd/spargo$ cat examples/5-describe-wikidata.sparql | ./spargo\n\nConnecting to: https://query.wikidata.org/sparql\n\nQuery: #! spargo\n# Describe JPEG2000 in Wikidata database.\ndescribe wd:Q931783\n\n...{result}...\n```\n\n\u003e **NB.** output via CLI args may be supported in the future. The placeholders\nare there, but the capability is not. The user is given clear feedback on this\nwhen run via args.\n\n## spargo Package\n\nThe important part of this repository is the `spargo` package. To use it we\ncan do something like as follows once it is imported.\n\n```golang\npackage ...\n\nimport (\n\t...\n\t...\n\n\t\"github.com/ross-spencer/spargo/pkg/spargo\"\n)\n\nfunc ...() {\n\tsparqlMe := spargo.SPARQLClient{}\n\tsparqlMe.ClientInit(url, queryString)\n\tres, _ := sparqlMe.SPARQLGo()\n}\n```\n\nAnd the results will be available in the `res` variable to be consumed by your\napplication.\n\n## License\n\nApache License 2.0. More info [here](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross-spencer%2Fspargo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fross-spencer%2Fspargo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross-spencer%2Fspargo/lists"}