Resource builtins = graph.getResource(libUri);
List<Item> actions = new ArrayList<>();
// actions.addAll(getItems(graph, project,type));
Resource builtins = graph.getResource(libUri);
List<Item> actions = new ArrayList<>();
// actions.addAll(getItems(graph, project,type));
Plant3D p3d = Plant3D.getInstance(graph);
String name = graph.getRelatedValue(r, l0.HasName);
String uri = graph.getURI(r);
Plant3D p3d = Plant3D.getInstance(graph);
String name = graph.getRelatedValue(r, l0.HasName);
String uri = graph.getURI(r);
- Item item = new Item(uri, name);
+ String label = graph.getPossibleRelatedValue(r, l0.HasLabel);
+ Item item = new Item(uri, name, label);
if (graph.isInstanceOf(r, p3d.Equipment))
item.setType(Type.EQUIPMENT);
else if (graph.isInstanceOf(r, p3d.InlineComponent))
if (graph.isInstanceOf(r, p3d.Equipment))
item.setType(Type.EQUIPMENT);
else if (graph.isInstanceOf(r, p3d.InlineComponent))
if (graph.hasStatement(r, p3d.VariableAngleTurnComponent) ||
graph.hasStatement(r, p3d.VariableLengthInlineComponent))
item.setVariable(true);
if (graph.hasStatement(r, p3d.VariableAngleTurnComponent) ||
graph.hasStatement(r, p3d.VariableLengthInlineComponent))
item.setVariable(true);
if (graph.hasStatement(r, p3d.SizeChangeComponent))
item.setSizeChange(true);
if (graph.hasStatement(r, p3d.SizeChangeComponent))
item.setSizeChange(true);
- public static void finalizeDBLoad2(P3DRootNode rootNode) throws Exception{
- PipingRules.setEnabled(true);
+ public static void finalizeDBLoad2(P3DRootNode rootNode) throws Exception {
+ PipingRules.setEnabled(true);