Nested RDF

Is it possible to have and query turtle files like this in the data pods?

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

[ foaf:name "Alice" ] foaf:knows [
    foaf:name "Bob" ;
    foaf:knows [
        foaf:name "Eve" ] ;
    foaf:mbox <bob@example.com> ] .

And how would you do that? Because I get the dataset and then getThingAll and get Alice, but how do I get Eve for instance via getThing?