Resource i = model.createResource( ns + "i" );
Resource j = model.createResource( ns + "j" );
Resource k = model.createResource( ns + "k" );
Property p = model.createObjectProperty( ns + "p" );
Property q = model.createObjectProperty( ns + "q" );
RDFList list = model.createList( new RDFNode[] { p } );
model.add( C, OWL2.hasKey, list );
model.add( i, RDF.type, C );
model.add( i, p, k );
model.add( j, RDF.type, C );