Travel map app
These are the sources for the travel map app.
FIXME: add some more detail here
- Create a database and app server for the application.
- Point the app server root at this repository.
- Load the data (see below). The data comes from OurAirports.
- Point your browser at the app server and you should be ready to go!
Load the data
I loaded the data in QueryConsole:
xquery version "1.0-ml"; declare default function namespace "http://www.w3.org/2005/xpath-functions"; declare namespace air="http://nwalsh.com/ns/airports"; declare option xdmp:mapping "false"; let $airports := xdmp:document-get("/MarkLogic/travelmap/etc/airports.xml")/air:airports let $load := for $airport in $airports/air:airport let $uri := concat("/airports/", $airport/air:id, ".xml") return xdmp:document-insert($uri, $airport) return concat("Loaded ", count($airports/air:airport), " airports.");
xdmp:document-get path as necessary to point to the
Depending on how you setup the security on the server, you may need to add read privileges to the documents that you insert.
Questions or problems
Let norm know.