This is a PHP library to convert the Datex2 Open Data feeds from the city of Ghent to Linked Data. The data can be queried using the Linked Data Fragments client.
Link: http://linked.open.gent/parking
Be sure to have composer installed on your system: http://getcomposer.org/
After cloning this repo, perform:
composer install
If you have a webserver, such as apache, direct your webserver to have the public/
directory as the web root.
For development purposes, you can test your code with php -S localhost:1234 -t public/
and your site will be available at http://localhost:1234/
Constructor takes a URL to a Datex2 file and optionally an EasyRDF_Graph
. The data is added to the $graph
element.
Given an EasyRDF_Graph
object, generates the metadata and adds it to the graph
Given an accept header, a metadata EasyRDF object and a data EasyRDF object, will stream a string to HTTP output. Will take care of HTTP response and cache headers as well.