1. Chempound
  2. Untitled project
  3. chemistry

Commits

Sam Adams  committed e23ae6d

Workaround for jumboconverter bug - not dictRef

  • Participants
  • Parent commits f625d36
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
 
     protected void addCmlProperties(Model model, Resource resource, List<CMLProperty> nodes) {
         for (CMLProperty property : nodes) {
-            Property prop = getProperty(model, property);
+            String dictRefUri = getDictRefUri(property);
+            if (dictRefUri == null) {
+                continue;
+            }
+            Property prop = getProperty(model, dictRefUri);
             Elements elements = property.getChildElements();
             if (elements.size() == 1) {
                 Element child = elements.get(0);