@@ -43,7 +43,7 @@ public static List<Node> graphToNodes(McfGraph graph, Counter mcfNodesWithoutTyp
4343 // Generate corresponding node
4444 Map <String , McfGraph .Values > pv = pvs .getPvsMap ();
4545 Node .Builder node = Node .builder ();
46- String dcid = GraphUtils .getPropertyValue ( pv , " dcid" );
46+ String dcid = GraphUtils .getPropVal ( pvs , GraphUtils . Property . dcid . name () );
4747 String subjectId = !dcid .isEmpty () ? dcid : McfUtil .stripNamespace (nodeEntry .getKey ());
4848 node .subjectId (subjectId );
4949
@@ -54,7 +54,8 @@ public static List<Node> graphToNodes(McfGraph graph, Counter mcfNodesWithoutTyp
5454 mcfNodesWithoutTypeCounter .inc ();
5555 }
5656 node .value (subjectId );
57- node .name (GraphUtils .getPropertyValue (pv , "name" ));
57+ String name = GraphUtils .getPropVal (pvs , GraphUtils .Property .name .name ());
58+ node .name (!name .isEmpty () ? name : subjectId );
5859 node .types (types );
5960 nodes .add (node .build ());
6061
@@ -92,7 +93,7 @@ public static List<Edge> graphToEdges(McfGraph graph, String provenance) {
9293 PropertyValues pvs = nodeEntry .getValue ();
9394 if (!GraphUtils .isObservation (pvs )) {
9495 Map <String , McfGraph .Values > pv = pvs .getPvsMap ();
95- String dcid = GraphUtils .getPropertyValue ( pv , " dcid" );
96+ String dcid = GraphUtils .getPropVal ( pvs , GraphUtils . Property . dcid . name () );
9697 String subjectId = !dcid .isEmpty () ? dcid : McfUtil .stripNamespace (nodeEntry .getKey ());
9798 for (Map .Entry <String , McfGraph .Values > entry : pv .entrySet ()) {
9899 if (entry .getKey ().equals ("dcid" )) {
0 commit comments