commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [2/8] incubator-commonsrdf git commit: Use AbstractRDFParserBuilder<JenaRDFParserBuilder>
Date Mon, 04 Jul 2016 11:23:59 GMT
Use AbstractRDFParserBuilder<JenaRDFParserBuilder>


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/f441dfb9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/f441dfb9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/f441dfb9

Branch: refs/heads/jena
Commit: f441dfb94012a8947d2f1a066ce1beaabf3cab76
Parents: 6bbb383
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Mon Jul 4 12:05:34 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Mon Jul 4 12:05:34 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java  | 5 ++++-
 .../java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java  | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/f441dfb9/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java
index afd71d4..d999861 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/JenaRDFParserBuilder.java
@@ -15,6 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.commons.rdf.jena;
 
 import java.io.IOException;
@@ -31,7 +32,8 @@ import org.apache.jena.riot.RDFDataMgr;
 import org.apache.jena.riot.system.StreamRDF;
 import org.apache.jena.riot.system.StreamRDFLib;
 
-public class JenaRDFParserBuilder extends AbstractRDFParserBuilder implements RDFParserBuilder
{
+public class JenaRDFParserBuilder extends AbstractRDFParserBuilder<JenaRDFParserBuilder>

+	implements RDFParserBuilder {
 
 	protected RDFTermFactory createRDFTermFactory() {
 		return new RDFTermFactoryJena();
@@ -61,4 +63,5 @@ public class JenaRDFParserBuilder extends AbstractRDFParserBuilder implements
RD
 		}
 	}
 
+
 }

http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/f441dfb9/jena/src/test/java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java
----------------------------------------------------------------------
diff --git a/jena/src/test/java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java b/jena/src/test/java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java
index faf4f35..f8e9616 100644
--- a/jena/src/test/java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java
+++ b/jena/src/test/java/org/apache/commons/rdf/jena/TestRDFParserBuilder.java
@@ -34,9 +34,9 @@ public class TestRDFParserBuilder {
 	@Test
 	public void parseTurtle() throws Exception {
 		Path d = Paths.get("D.ttl");
-		Graph g = new RDFTermFactoryJena().createGraph();
+		Graph g = new RDFTermFactoryJena().createGraph();		
 		Future<ParseResult> gFuture = new JenaRDFParserBuilder().contentType(RDFSyntax.TURTLE).source(d).target(g).parse();
-		Graph g = gFuture.get(5, TimeUnit.SECONDS);
+		gFuture.get(5, TimeUnit.SECONDS);
 		assertEquals(3, g.size());
 	}
 }


Mime
View raw message