NonLiteral result = new BNode();
RdfList list = new RdfList(result, mGraph);
for (Menu menu : menus) {
BNode node = new BNode();
final String label = menu.root.getLabel();
Literal labelLiteral = new PlainLiteralImpl(label);
mGraph.add(new TripleImpl(node, RDFS.label,labelLiteral));
final String description = menu.root.getDescription();
if (description != null) {
Literal descLiteral = new PlainLiteralImpl(description);
mGraph.add(new TripleImpl(node, DCTERMS.description, descLiteral));
}
final String path = menu.root.getPath();
if (path != null) {
Literal pathLiteral = LiteralFactory.getInstance().
createTypedLiteral(path);
mGraph.add(new TripleImpl(node, GLOBALMENU.path, pathLiteral));
}
if (menu.children.size() > 0) {
mGraph.add(new TripleImpl(node, GLOBALMENU.children,