[MOBY-guts] biomoby commit
Gary Schlitz
gss at pub.open-bio.org
Fri Jun 18 21:39:42 UTC 2004
gss
Fri Jun 18 17:39:42 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/smoby/vocabulary
In directory pub.open-bio.org:/tmp/cvs-serv29908/src/org/smoby/vocabulary
Modified Files:
MOBY.java
Log Message:
Added nsPrefix methods
moby-live/S-MOBY/ref-impl/core/src/org/smoby/vocabulary MOBY.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/smoby/vocabulary/MOBY.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/smoby/vocabulary/MOBY.java 2004/06/17 17:34:17 1.3
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/core/src/org/smoby/vocabulary/MOBY.java 2004/06/18 21:39:42 1.4
@@ -13,6 +13,16 @@
return "http://www.s-moby.org:8080/terms/";
}
+ public static String getNsPrefix()
+ {
+ return "moby";
+ }
+
+ public static void addNsPrefix(Model model)
+ {
+ model.setNsPrefix(getNsPrefix(), getURI());
+ }
+
public static final Resource Provider = resource(getURI(), "Provider");
public static final Resource Graph = resource(getURI(), "Graph");
public static final Resource Subject = resource(getURI(), "Subject");
More information about the MOBY-guts
mailing list