Both, the LSM9DS0 and the LSM9DS1, include accelerometer, gyroscope and magnetometer. I'm not aware about the differences between both ICs, but they might work very similar. My recommendation for you is to check their datasheets to know how they work. If they work in a similar way, you might be able to adapt a code originally for the LSM9DS0 to be used with the LSM9DS1. The differences might be in the registers used.
An example code for the LSM9DS0 can be checked in the following site: upm: LSM9DS0 Class Reference. The datasheets for each IC can be checked in the following links: