Exports ArcGIS online catalogue data into RDF files
Additional libraries in use apart of the standard Python libs : rdflib and json
- rdflib -> RDFLib is open source and is maintained in a GitHub repository: http://github.com/RDFLib/rdflib/ RDFLib may be easy_installed: First is needed to install in the machine the easy install package at: http://pypi.python.org/pypi/setuptools Second run in shell: $ easy_install rdflib
- json -> This library is available sonce Python 2.6 can be found at: http://pypi.python.org/pypi/simplejson/
1. Use the shell
2. Go to the script directory (Python exported is needed)
3. Run: python readEoEGroup_rdf.py <outputfilepath> -g "GROUPNAME"
outputpath: Provides the full output in the server machine with the filename with extension .rdf e.g. "M:\ags_mxd_data\RDF\test.rdf"
--group, -g : It possible retrive data from sevaral groups. The dafault group is "European Environment Agency (Applications)" Avalilable groups are listed in http://eea.maps.arcgis.com/home/groups.html
python readEoEGroup_rdf.py retrive_data.rdf -g "GMES Services"
Note: Work in progress. We will add it to Docker Hub once it is working properly with environment variables.
Build the Dockerfile locally.
git clone eea.docker.arcgis2rdf
cd eea.docker.arcgis2rdf
docker build -t arcgis2rdf .
Create a output directory with mkdir rdf
.
Run the docker container to create a RDF output in ./rdf
docker run -ti -v ./rdf:/var/local/arcgis2rdf:rw arcgis2rdf
Now you should see the rdf file with more rdf/arcgis_data.rdf