rdftemplate

Library for generating XML documents from RDF data using templates
git clone https://code.djc.id.au/git/rdftemplate/
commit 2e178c5776f7eb0a4485407e72dcc1919229198a
parent c87b9151425cf3d71d573c784184422c23981666
Author: Dan Callaghan <djc@djc.id.au>
Date:   Mon, 16 Nov 2009 23:08:30 +1000

depend on forked Jena

Diffstat:
Mpom.xml | 4++--
Msrc/test/java/au/com/miskinhill/rdftemplate/TestNamespacePrefixMap.java | 4++--
Msrc/test/java/au/com/miskinhill/rdftemplate/selector/SelectorParserUnitTest.java | 5++---
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/pom.xml b/pom.xml
@@ -69,9 +69,9 @@
         	<version>3.1.3</version>
         </dependency>
         <dependency>
-            <groupId>com.hp.hpl.jena</groupId>
+            <groupId>au.com.miskinhill.jena</groupId>
             <artifactId>jena</artifactId>
-            <version>2.5.7</version>
+            <version>2.6.2.1-SNAPSHOT</version>
         </dependency>
         <dependency>
         	<groupId>joda-time</groupId>
diff --git a/src/test/java/au/com/miskinhill/rdftemplate/TestNamespacePrefixMap.java b/src/test/java/au/com/miskinhill/rdftemplate/TestNamespacePrefixMap.java
@@ -2,7 +2,6 @@ package au.com.miskinhill.rdftemplate;
 
 import java.util.HashMap;
 
-import com.hp.hpl.jena.sparql.vocabulary.FOAF;
 import com.hp.hpl.jena.vocabulary.DCTerms;
 import com.hp.hpl.jena.vocabulary.RDF;
 import org.junit.Ignore;
@@ -11,6 +10,7 @@ import org.junit.Ignore;
 public final class TestNamespacePrefixMap extends HashMap<String, String> {
     
     public static final String MHS_NS = "http://miskinhill.com.au/rdfschema/1.0/";
+    public static final String FOAF_NS = "http://xmlns.com/foaf/0.1/";
     
     private static final long serialVersionUID = 2119318190108418683L;
     
@@ -22,7 +22,7 @@ public final class TestNamespacePrefixMap extends HashMap<String, String> {
     private TestNamespacePrefixMap() {
         put("mhs", MHS_NS);
         put("dc", DCTerms.NS);
-        put("foaf", FOAF.NS);
+        put("foaf", FOAF_NS);
         put("rdf", RDF.getURI());
         put("sioc", "http://rdfs.org/sioc/ns#");
         put("lingvoj", "http://www.lingvoj.org/ontology#");
diff --git a/src/test/java/au/com/miskinhill/rdftemplate/selector/SelectorParserUnitTest.java b/src/test/java/au/com/miskinhill/rdftemplate/selector/SelectorParserUnitTest.java
@@ -1,6 +1,6 @@
 package au.com.miskinhill.rdftemplate.selector;
 
-import static au.com.miskinhill.rdftemplate.TestNamespacePrefixMap.MHS_NS;
+import static au.com.miskinhill.rdftemplate.TestNamespacePrefixMap.*;
 import static au.com.miskinhill.rdftemplate.selector.AdaptationMatcher.*;
 import static au.com.miskinhill.rdftemplate.selector.PredicateMatcher.*;
 import static au.com.miskinhill.rdftemplate.selector.SelectorComparatorMatcher.*;
@@ -9,7 +9,6 @@ import static au.com.miskinhill.rdftemplate.selector.TraversalMatcher.*;
 import static org.junit.Assert.*;
 
 import com.hp.hpl.jena.rdf.model.RDFNode;
-import com.hp.hpl.jena.sparql.vocabulary.FOAF;
 import com.hp.hpl.jena.vocabulary.DCTerms;
 import com.hp.hpl.jena.vocabulary.RDF;
 import org.junit.Before;
@@ -38,7 +37,7 @@ public class SelectorParserUnitTest {
         Selector<RDFNode> selector = factory.get("dc:creator/foaf:name").withResultType(RDFNode.class);
         assertThat(selector, selector(
                 traversal(DCTerms.NS, "creator"),
-                traversal(FOAF.NS, "name")));
+                traversal(FOAF_NS, "name")));
     }
     
     @Test