Github user christopher-johnson commented on a diff in the pull request:
https://github.com/apache/commons-rdf/pull/42#discussion_r147875892
--- Diff:
jena/src/main/java/org/apache/commons/rdf/jena/impl/JenaDatasetImpl.java ---
@@ -149,7 +149,7 @@ public long size() {
@Override
public String toString() {
final StringWriter sw = new StringWriter();
- RDFDataMgr.write(sw, graph, Lang.NT);
--- End diff --
right. would something like this be ok?
```java
private final DatasetGraph dg;
JenaDatasetImpl(final DatasetGraph datasetGraph, final UUID salt) {
this.dg = datasetGraph;
this.salt = salt;
this.factory = new JenaRDF(salt);
}
```
so `dg` is the private variable, and `datasetGraph` is only used in the
constructor to match InternalJenaFactory.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]