Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a Java API version of the CDK ontology (not synched to the OWL)

  • Loading branch information...
commit 235f822511be0c86f592edad91c7dfab45abd142 1 parent 0e67951
@egonw egonw authored
Showing with 47 additions and 0 deletions.
  1. +47 −0 src/main/org/openscience/cdk/libio/jena/CDK.java
View
47 src/main/org/openscience/cdk/libio/jena/CDK.java
@@ -0,0 +1,47 @@
+/* Copyright (C) 2009 Egon Willighagen <egonw@users.sf.net>
+ *
+ * Contact: jchempaint-devel@lists.sourceforge.net
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1
+ * of the License, or (at your option) any later version.
+ * All we ask is that proper credit is given for our work, which includes
+ * - but is not limited to - adding the above copyright notice to the beginning
+ * of your source code files, and to any copyright notice that you may distribute
+ * with programs based on this work.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+package org.openscience.cdk.libio.jena;
+
+import com.hp.hpl.jena.rdf.model.Property;
+import com.hp.hpl.jena.rdf.model.Resource;
+import com.hp.hpl.jena.rdf.model.ResourceFactory;
+
+public class CDK {
+
+ public static final String URI ="http://cdk.sourceforge.net/model.owl#";
+
+ private static final Resource resource(String local) {
+ return ResourceFactory.createResource(URI + local);
+ }
+
+ private static final Property property(String local) {
+ return ResourceFactory.createProperty(URI, local);
+ }
+
+ public static final Resource Molecule = resource("Molecule");
+ public static final Resource Atom = resource("Atom");
+
+ public static final Property hasAtom = property("hasAtom");
+ public static final Property symbol = property("symbol");
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.