Commits

gigadot  committed a03f962

Corrected xml-cml namespaces.

  • Participants
  • Parent commits 3e5a205

Comments (0)

Files changed (2)

File semsci-converters-chem/pom.xml

 			<version>5.5.1-SNAPSHOT</version>
 			<type>jar</type>
 		</dependency>
-		<dependency>
+		<!--dependency>
 			<groupId>cml</groupId>
 			<artifactId>jumbo-converters</artifactId>
 			<version>0.2-SNAPSHOT</version>
 					<groupId>log4j</groupId>
 				</exclusion>
 			</exclusions>
-		</dependency>
+		</dependency-->
 		<dependency>
 			<groupId>org.hamcrest</groupId>
 			<artifactId>hamcrest-all</artifactId>

File semsci-converters-chem/src/main/java/gigadot/semsci/converters/chem/CompChemCML2RDF.java

 import org.xmlcml.cml.base.CMLBuilder;
 import org.xmlcml.cml.base.CMLElement;
 import org.xmlcml.cml.base.CMLNamespace;
-import org.xmlcml.cml.converters.AbstractConverter;
-import org.xmlcml.cml.converters.Type;
 import org.xmlcml.cml.element.CMLCml;
 import org.xmlcml.cml.element.CMLModule;
 import org.xmlcml.cml.element.CMLMolecule;
  *
  * @author wp214
  */
-public class CompChemCML2RDF extends AbstractConverter implements HasURIGenerator {
+public class CompChemCML2RDF implements HasURIGenerator {
 
     private Logger logger = Logger.getLogger(getClass());
     private DictionaryCollection dictionaryCollection = null;
                     createUUIDURIString(cml), CompChemSematics.qmComputation);
             // N3:       cml:representedBy <./target/CH4.cml>;
             unq_com_res.addProperty(CompChemSematics.cmlrdfRepresentedBy, path_res);
+            // N3:       cml:representedBy <./target/CH4.cml>;
+            unq_com_res.addProperty(CompChemSematics.cmlrdfRepresentedBy, path_res);
+            unq_com_res.addProperty(CompChemSematics.cmlrdfRepresentedBy, path_res);
             // N3:       qm:jobs ( jim:job1 ).
 
             CMLModule joblist_mod = (CMLModule) joblist_nodes.get(0);
         dictionaryCollection.loadDictionary(DictionaryCollection.PropertyG03Location);
     }
 
-    @Override
-    public int getConverterVersion() {
-        return 1;
-    }
+//    @Override
+//    public int getConverterVersion() {
+//        return 1;
+//    }
+//
+//    @Override
+//    public Type getOutputType() {
+//        return Type.RDFXML;
+//    }
+//
+//    @Override
+//    public Type getInputType() {
+//        return Type.CML;
+//    }
 
-    public Type getOutputType() {
-        return Type.RDFXML;
-    }
-
-    public Type getInputType() {
-        return Type.CML;
-    }
-
-    @Override
     public Element convertToXML(Element xml) {
         Model compchemModel = null;
         try {