Commits

Sam Adams committed 39dce93

Adjusted CML>RDF to compensate for changes to jumbo converters

Comments (0)

Files changed (1)

chemistry-common/src/main/java/uk/ac/cam/ch/wwmm/chempound/chemistry/CmlRdfUtils.java

         RDFNode unitsNode = createUnitsNode(scalar, model);
         RDFNode errorNode = createErrorNode(scalar, model);
 
+        // Force bNode creation for non-string
         if (unitsNode == null && errorNode == null) {
-            return valueNode;
+            if ("xsd:string".equals(scalar.getDataType())) {
+                return valueNode;
+            }
         }
 
         Resource bnode = model.createResource();