You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ch...@apache.org on 2012/10/16 10:40:50 UTC

svn commit: r1398697 - in /jena/Scratch/Eyeball/trunk/src: main/java/com/hp/hpl/jena/eyeball/assemblers/ main/resources/etc/ test/java/com/hp/hpl/jena/eyeball/main/ test/java/com/hp/hpl/jena/eyeball/main/test/

Author: chrisdollin
Date: Tue Oct 16 08:40:49 2012
New Revision: 1398697

URL: http://svn.apache.org/viewvc?rev=1398697&view=rev
Log:
mirror and etc are now on the resources path.

Added:
    jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/
    jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/
    jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/RunExample.java
Modified:
    jena/Scratch/Eyeball/trunk/src/main/java/com/hp/hpl/jena/eyeball/assemblers/EyeballAssembler.java
    jena/Scratch/Eyeball/trunk/src/main/resources/etc/eyeball-config.ttl

Modified: jena/Scratch/Eyeball/trunk/src/main/java/com/hp/hpl/jena/eyeball/assemblers/EyeballAssembler.java
URL: http://svn.apache.org/viewvc/jena/Scratch/Eyeball/trunk/src/main/java/com/hp/hpl/jena/eyeball/assemblers/EyeballAssembler.java?rev=1398697&r1=1398696&r2=1398697&view=diff
==============================================================================
--- jena/Scratch/Eyeball/trunk/src/main/java/com/hp/hpl/jena/eyeball/assemblers/EyeballAssembler.java (original)
+++ jena/Scratch/Eyeball/trunk/src/main/java/com/hp/hpl/jena/eyeball/assemblers/EyeballAssembler.java Tue Oct 16 08:40:49 2012
@@ -63,6 +63,7 @@ public class EyeballAssembler extends As
                 {
                 Statement s = arg0;
                 RDFNode ob = s.getObject();
+                System.err.println( ">> loadModel: " + ob );
                 return ob.isResource() ? (Model) sub.openModel(  (Resource) ob  ) : fm.loadModel( ((Literal) ob).getLexicalForm() );
                 }
             };

Modified: jena/Scratch/Eyeball/trunk/src/main/resources/etc/eyeball-config.ttl
URL: http://svn.apache.org/viewvc/jena/Scratch/Eyeball/trunk/src/main/resources/etc/eyeball-config.ttl?rev=1398697&r1=1398696&r2=1398697&view=diff
==============================================================================
--- jena/Scratch/Eyeball/trunk/src/main/resources/etc/eyeball-config.ttl (original)
+++ jena/Scratch/Eyeball/trunk/src/main/resources/etc/eyeball-config.ttl Tue Oct 16 08:40:49 2012
@@ -292,6 +292,22 @@ eye:VocabularyDoctor a eye:Doctor
     .
 
 # Mirrored namespaces 
+
+[]  a eye:mirror
+    ; eye:shortName "rdf"
+    ; eye:path "mirror/rdf.rdf"
+    .
+
+[]  a eye:mirror
+    ; eye:shortName "rdfs"
+    ; eye:path "mirror/rdfs.rdf"
+    .
+
+[]  a eye:mirror
+    ; eye:shortName "xsd"
+    ; eye:path "mirror/xsd.ttl"
+    .
+
 []  a eye:mirror
     ; eye:shortName "owl"
     ; eye:path "mirror/owl.rdf"

Added: jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/RunExample.java
URL: http://svn.apache.org/viewvc/jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/RunExample.java?rev=1398697&view=auto
==============================================================================
--- jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/RunExample.java (added)
+++ jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/main/test/RunExample.java Tue Oct 16 08:40:49 2012
@@ -0,0 +1,43 @@
+package com.hp.hpl.jena.eyeball.main.test;
+/*
+ 	(c) Copyright 2012 Hewlett-Packard Development Company, LP
+ 	All rights reserved.
+ 	$Id: org.eclipse.jdt.ui.prefs,v 1.2 2008-10-27 15:56:55 chris-dollin Exp $
+ */
+
+import jena.eyeball;
+
+public class RunExample {
+
+	public static void main( String [] args ) {
+		eyeball.main( new String[] { "-check", "etc/eyeball-config.ttl", "-assume", "rdf" } );
+	}
+}
+
+
+/*
+ * (c) Copyright 2005, 2006, 2007 Hewlett-Packard Development Company, LP
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
\ No newline at end of file