{"id":19463520,"url":"https://github.com/easyrdf/easyrdf","last_synced_at":"2025-05-13T20:18:28.629Z","repository":{"id":43953050,"uuid":"755139","full_name":"easyrdf/easyrdf","owner":"easyrdf","description":"EasyRdf is a PHP library designed to make it easy to consume and produce RDF.","archived":false,"fork":false,"pushed_at":"2025-01-10T09:08:30.000Z","size":3670,"stargazers_count":610,"open_issues_count":74,"forks_count":151,"subscribers_count":31,"default_branch":"main","last_synced_at":"2025-04-28T11:52:54.571Z","etag":null,"topics":["php","rdf","sparql"],"latest_commit_sha":null,"homepage":"http://www.easyrdf.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easyrdf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2010-07-03T14:20:53.000Z","updated_at":"2025-04-09T18:21:20.000Z","dependencies_parsed_at":"2022-08-12T10:52:07.301Z","dependency_job_id":"bc676953-bf46-4f75-a011-9bc591f0be92","html_url":"https://github.com/easyrdf/easyrdf","commit_stats":{"total_commits":1415,"total_committers":33,"mean_commits":"42.878787878787875","dds":"0.17385159010600704","last_synced_commit":"111f65b000c17cefb4b3f892d89c0083725f3f24"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easyrdf%2Feasyrdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easyrdf%2Feasyrdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easyrdf%2Feasyrdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easyrdf%2Feasyrdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easyrdf","download_url":"https://codeload.github.com/easyrdf/easyrdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020659,"owners_count":22000757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["php","rdf","sparql"],"created_at":"2024-11-10T18:11:02.197Z","updated_at":"2025-05-13T20:18:28.612Z","avatar_url":"https://github.com/easyrdf.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"EasyRdf\n=======\n\nEasyRdf is a PHP library designed to make it easy to consume and produce [RDF].\nIt was designed for use in mixed teams of experienced and inexperienced RDF\ndevelopers. It is written in Object Oriented PHP and has been tested\nextensively using PHPUnit.\n\nAfter parsing EasyRdf builds up a graph of PHP objects that can then be walked\naround to get the data to be placed on the page. Dump methods are available to\ninspect what data is available during development.\n\nData is typically loaded into an [`EasyRdf\\Graph`] object from source RDF\ndocuments, loaded from the web via HTTP. The [`EasyRdf\\GraphStore`] class\nsimplifies loading and saving data to a SPARQL 1.1 Graph Store.\n\nSPARQL queries can be made over HTTP to a Triplestore using the\n[`EasyRdf\\Sparql\\Client`] class. `SELECT` and `ASK` queries will return an\n[`EasyRdf\\Sparql\\Result`] object and `CONSTRUCT` and `DESCRIBE` queries will return\nan [`EasyRdf\\Graph`] object.\n\n### Example ###\n\n```php\n$foaf = new \\EasyRdf\\Graph(\"http://njh.me/foaf.rdf\");\n$foaf-\u003eload();\n$me = $foaf-\u003eprimaryTopic();\necho \"My name is: \".$me-\u003eget('foaf:name').\"\\n\";\n```\n\nDownloads\n---------\n\nThe latest _stable_ version of EasyRdf can be [downloaded from the EasyRdf website].\n\n\nLinks\n-----\n\n* [EasyRdf Homepage](https://www.easyrdf.org/)\n* [API documentation](https://www.easyrdf.org/docs/api)\n* [Change Log](https://github.com/easyrdf/easyrdf/blob/main/CHANGELOG.md)\n* [Source Code](https://github.com/easyrdf/easyrdf)\n* [Issue Tracker](https://github.com/easyrdf/easyrdf/issues)\n\n\nRequirements\n------------\n\n* PHP 7.1 or higher\n\n\nFeatures\n--------\n\n* API documentation written in `phpdoc`\n* Extensive unit tests written using `phpunit`\n* Built-in parsers and serialisers: RDF/JSON, N-Triples, RDF/XML, Turtle\n* Optional parsing support for: [ARC2], [rapper]\n* Optional support for [`Zend\\Http\\Client`]\n* No required external dependencies upon other libraries (PEAR, Zend, etc...)\n* Complies with Zend Framework coding style.\n* Type mapper - resources of type `foaf:Person` can be mapped into PHP object of class `Foaf_Person`\n* Support for visualisation of graphs using [GraphViz]\n* Comes with a number of examples\n\n\nList of Examples\n----------------\n\n* [`basic.php`](/examples/basic.php#slider) - Basic \"Hello World\" type example\n* [`basic_sparql.php`](/examples/basic_sparql.php#slider) - Example of making a SPARQL `SELECT` query\n* [`converter.php`](/examples/converter.php#slider) - Convert RDF from one format to another\n* [`dump.php`](/examples/dump.php#slider) - Display the contents of a graph\n* [`foafinfo.php`](/examples/foafinfo.php#slider) - Display the basic information in a FOAF document\n* [`foafmaker.php`](/examples/foafmaker.php#slider) - Construct a FOAF document with a choice of serialisations\n* [`graph_direct.php`](/examples/graph_direct.php#slider) - Example of using `EasyRdf\\Graph` directly without `EasyRdf\\Resource`\n* [`graphstore.php`](/examples/graphstore.php#slider) - Store and retrieve data from a SPARQL 1.1 Graph Store\n* [`graphviz.php`](/examples/graphviz.php#slider) - GraphViz rendering example\n* [`html_tag_helpers.php`](/examples/html_tag_helpers.php#slider) - Rails Style html tag helpers to make the EasyRdf examples simpler\n* [`httpget.php`](/examples/httpget.php#slider) - No RDF, just test `EasyRdf\\Http\\Client`\n* [`open_graph_protocol.php`](/examples/open_graph_protocol.php#slider) - Extract Open Graph Protocol metadata from a webpage\n* [`serialise.php`](/examples/serialise.php#slider) - Basic serialisation example\n* [`sparql_queryform.php`](/examples/sparql_queryform.php#slider) - Form to submit SPARQL queries and display the result\n* [`uk_postcode.php`](/examples/uk_postcode.php#slider) - Example of resolving UK postcodes using uk-postcodes.com\n* [`wikidata_villages.php`](/examples/wikidata_villages.php#slider) - Fetch and information about villages in Fife from Wikidata\n* [`zend_framework.php`](/examples/zend_framework.php#slider) - Example of using `Zend\\Http\\Client` with EasyRdf\n\n\nContributing\n------------\n\nWe welcome any contributions. For further information please read [CONTRIBUTING.md](CONTRIBUTING.md).\n\nFor further information about extending / hack EasyRdf please read [DEVELOPER.md](DEVELOPER.md).\n\nRunning Examples\n----------------\n\nThe easiest way of trying out some of the examples is to use the PHP command to\nrun a local web server on your computer.\n\n```\nphp -S localhost:8080 -t examples\n```\n\nThen open the following URL in your browser: http://localhost:8080/\n\n\nLicensing\n---------\n\nThe EasyRdf library and tests are licensed under the [BSD-3-Clause] license.\nThe examples are in the public domain, for more information see [UNLICENSE].\n\n\n\n[`EasyRdf\\Graph`]:https://www.easyrdf.org/docs/api/EasyRdf\\Graph.html\n[`EasyRdf\\GraphStore`]:https://www.easyrdf.org/docs/api/EasyRdf\\GraphStore.html\n[`EasyRdf\\Sparql\\Client`]:https://www.easyrdf.org/docs/api/EasyRdf\\Sparql\\Client.html\n[`EasyRdf\\Sparql\\Result`]:https://www.easyrdf.org/docs/api/EasyRdf\\Sparql\\Result.html\n\n[ARC2]:https://github.com/semsol/arc2/\n[BSD-3-Clause]:https://www.opensource.org/licenses/BSD-3-Clause\n[downloaded from the EasyRdf website]:https://www.easyrdf.org/downloads\n[GraphViz]:https://www.graphviz.org/\n[rapper]:http://librdf.org/raptor/rapper.html\n[RDF]:https://en.wikipedia.org/wiki/Resource_Description_Framework\n[SPARQL 1.1 query language]:https://www.w3.org/TR/sparql11-query/\n[UNLICENSE]:https://unlicense.org/\n[`Zend\\Http\\Client`]:https://docs.zendframework.com/zend-http/client/intro/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasyrdf%2Feasyrdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasyrdf%2Feasyrdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasyrdf%2Feasyrdf/lists"}