organize code RDFAdjListPattern