{"id":20282212,"url":"https://github.com/ubccr/ralph","last_synced_at":"2026-06-01T06:31:50.324Z","repository":{"id":57074477,"uuid":"84483939","full_name":"ubccr/ralph","owner":"ubccr","description":"A simple SPARQL client built on top of Guzzle.","archived":false,"fork":false,"pushed_at":"2018-04-10T20:54:11.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-14T02:24:59.654Z","etag":null,"topics":["guzzle","guzzlehttp","php","php-library","sparql","sparql-endpoints","sparql-query","sparql-query-builder"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubccr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-09T20:09:03.000Z","updated_at":"2022-03-25T04:46:52.000Z","dependencies_parsed_at":"2022-08-24T14:55:08.833Z","dependency_job_id":null,"html_url":"https://github.com/ubccr/ralph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ubccr/ralph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fralph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fralph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fralph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fralph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubccr","download_url":"https://codeload.github.com/ubccr/ralph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubccr%2Fralph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33763648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["guzzle","guzzlehttp","php","php-library","sparql","sparql-endpoints","sparql-query","sparql-query-builder"],"created_at":"2024-11-14T14:08:34.455Z","updated_at":"2026-06-01T06:31:50.306Z","avatar_url":"https://github.com/ubccr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ralph\n\n**R**DF **A**bstraction **L**ayer for **PH**P: A simple SPARQL client built on top of Guzzle.\n\nTake a look at the `list` target in the Makefile for how to use `make` to manage the project.\n\n### An example of a query against the British Museum SPARQL endpoint:\n\n```php\n$result = (new CCR\\Sparql\\SparqlClient(new GuzzleHttp\\Client()));\n    -\u003ewithEndpoint('http://collection.britishmuseum.org/sparql')\n    -\u003ewithPrefix('crm', 'http://erlangen-crm.org/current/')\n    -\u003ewithPrefix('fts', 'http://www.ontotext.com/owlim/fts#');\n    -\u003equery('\n        SELECT DISTINCT ?obj\n        {\n            ?obj crm:P102_has_title ?title .\n            ?title rdfs:label ?label .\n            FILTER(STR(?label) = \"Hoa Hakananai\\'a\")\n        }\n    ');\nprint_r($result);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubccr%2Fralph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubccr%2Fralph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubccr%2Fralph/lists"}