public static void main(String[] args) throws Exception { NamespaceStore nsStore = new NamespaceStore(new File(args[0])); for (Namespace ns : nsStore) { System.out.println(ns.getPrefix() + " = " + ns.getName()); } } }
public static void main(String[] args) throws Exception { NamespaceStore nsStore = new NamespaceStore(new File(args[0])); for (Namespace ns : nsStore) { System.out.println(ns.getPrefix() + " = " + ns.getName()); } } }
/** * Creates a new {@link NativeSailStore}. */ public NativeSailStore(File dataDir, String tripleIndexes, boolean forceSync, int valueCacheSize, int valueIDCacheSize, int namespaceCacheSize, int namespaceIDCacheSize) throws IOException, SailException { boolean initialized = false; try { namespaceStore = new NamespaceStore(dataDir); valueStore = new ValueStore(dataDir, forceSync, valueCacheSize, valueIDCacheSize, namespaceCacheSize, namespaceIDCacheSize); tripleStore = new TripleStore(dataDir, tripleIndexes, forceSync); initialized = true; } finally { if (!initialized) { close(); } } }
/** * Creates a new {@link NativeSailStore}. */ public NativeSailStore(File dataDir, String tripleIndexes, boolean forceSync, int valueCacheSize, int valueIDCacheSize, int namespaceCacheSize, int namespaceIDCacheSize) throws IOException, SailException { boolean initialized = false; try { namespaceStore = new NamespaceStore(dataDir); valueStore = new ValueStore(dataDir, forceSync, valueCacheSize, valueIDCacheSize, namespaceCacheSize, namespaceIDCacheSize); tripleStore = new TripleStore(dataDir, tripleIndexes, forceSync); initialized = true; } finally { if (!initialized) { close(); } } }