clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1062551 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java
Date Sun, 23 Jan 2011 22:23:09 GMT
Author: reto
Date: Sun Jan 23 22:23:08 2011
New Revision: 1062551

URL: http://svn.apache.org/viewvc?rev=1062551&view=rev
Log:
CLEREZZA-406: handling situation that bnodes aren't yet available as jena version

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java?rev=1062551&r1=1062550&r2=1062551&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.jena.serializer/src/test/java/org/apache/clerezza/rdf/jena/serializer/TestJenaSerializerProvider.java
Sun Jan 23 22:23:08 2011
@@ -32,6 +32,10 @@ import org.apache.clerezza.rdf.jena.faca
 
 import com.hp.hpl.jena.rdf.model.Model;
 import com.hp.hpl.jena.rdf.model.ModelFactory;
+import org.apache.clerezza.rdf.core.BNode;
+import org.apache.clerezza.rdf.core.LiteralFactory;
+import org.apache.clerezza.rdf.core.UriRef;
+import org.apache.clerezza.rdf.core.impl.TripleImpl;
 
 /**
  * Serializes a Graph to different formats
@@ -44,18 +48,26 @@ public class TestJenaSerializerProvider 
 
 	private void initializeGraph() {
 		mGraph = new SimpleMGraph();
-		com.hp.hpl.jena.graph.Graph graph = new JenaGraph(mGraph);
+		/*com.hp.hpl.jena.graph.Graph graph = new JenaGraph(mGraph);
 		Model model = ModelFactory.createModelForGraph(graph);
 		// create the resource
 		// and add the properties cascading style
 		String URI = "http://example.org/";
 
-		model.createResource(URI + "A").addProperty(
 				model.createProperty(URI + "B"), "C").addProperty(
 				model.createProperty(URI + "D"),
 				model.createResource().addProperty(
 						model.createProperty(URI + "E"), "F").addProperty(
 						model.createProperty(URI + "G"), "H"));
+		mGraph.add(new TripleImpl(new UriRef("http://foo/bar"),
+				new UriRef("http://foo/bar"),
+				LiteralFactory.getInstance().createTypedLiteral("foo")));
+		mGraph.add(new TripleImpl(new UriRef("http://foo/bar"),
+				new UriRef("http://foo/bar"),
+				LiteralFactory.getInstance().createTypedLiteral(54675)));*/
+		mGraph.add(new TripleImpl(new BNode(),
+				new UriRef("http://foo/bar"),
+				new UriRef("http://foo/bar")));
 	}
 
 	/*



Mime
View raw message