Skip to content
Browse files

WL-1709 Include notes about where to get the library codes.

  • Loading branch information...
1 parent e4c6f22 commit 7c97199930f7d4dfe59d58e5731eb6853e4522aa @buckett buckett committed Aug 15, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/main/java/uk/ac/ox/oucs/sirlouie/utils/LibraryCodes.java
View
16 src/main/java/uk/ac/ox/oucs/sirlouie/utils/LibraryCodes.java
@@ -9,6 +9,22 @@
import java.util.StringTokenizer;
+/**
+ * This maps the library codes onto nice library names. The best place to get a up to data
+ * mapping is from http://data.ox.ac.uk/ with a SPARQL query of:
+ * <pre>
+ * PREFIX dc: <http://purl.org/dc/elements/1.1/>
+ * PREFIX dcterms: <http://purl.org/dc/terms/>
+ * PREFIX oxp: <http://ns.ox.ac.uk/namespace/oxpoints/2009/02/owl#>
+ *
+ * SELECT ?code ?title WHERE {
+ * ?library a oxp:Library .
+ * ?library dc:title ?title .
+ * ?library oxp:hasOLISAlephCode ?code .
+ * }
+ * </pre>
+ *
+ */
public class LibraryCodes extends HashMap<String, String> {
private static final long serialVersionUID = 1L;

0 comments on commit 7c97199

Please sign in to comment.
Something went wrong with that request. Please try again.