Let make sure you have seen the manual which has a quick start guide: https://github.com/apache/incubator-rya/blob/5463da23c7cd5eaddf2ab13f0b42141211ab59f2/extras/rya.manual/src/site/markdown/index.md
Here is a better example that loads a file then does queries. This one uses MongoDB, but most everything is the same for Accumulo. https://github.com/apache/incubator-rya/blob/5463da23c7cd5eaddf2ab13f0b42141211ab59f2/extras/indexingExample/src/main/java/MongoRyaDirectExample.java#L902 david.