You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/04/12 18:20:10 UTC

svn commit: r1325350 - /incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java

Author: andy
Date: Thu Apr 12 16:20:09 2012
New Revision: 1325350

URL: http://svn.apache.org/viewvc?rev=1325350&view=rev
Log: (empty)

Added:
    incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java

Added: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java?rev=1325350&view=auto
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java (added)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/Jena234_TDB_Prefixes_Sync.java Thu Apr 12 16:20:09 2012
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package dev;
+
+import org.openjena.atlas.lib.FileOps ;
+
+import com.hp.hpl.jena.rdf.model.Model ;
+import com.hp.hpl.jena.tdb.TDBFactory ;
+import com.hp.hpl.jena.tdb.base.file.Location ;
+
+public class Jena234_TDB_Prefixes_Sync
+{
+    public static void main(String[] argv) throws Exception
+    {
+        String DIR = "/tmp/tdb" ;
+        FileOps.ensureDir(DIR) ;
+        FileOps.clearDirectory(DIR) ;
+        Location location = new Location (DIR);
+        Model model = TDBFactory.createDataset(location).getDefaultModel();
+        model.setNsPrefix("foaf", "http://xmlns.com/foaf/0.1/");
+        System.out.println("DONE") ;
+    }
+}
+