With the latest work: https://github.com/graphhopper/graphhopper/pull/1447 you can define several attributes per edge much easier and use them for a restriction. E.g. see this discussion where this pull request is further enhanced and provides simple configuration options via JSON or scripting: Flexible Vehicle Profiles