Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/287#discussion_r144321132
--- Diff: jena-arq/src/main/java/org/apache/jena/query/Dataset.java ---
@@ -113,4 +113,11 @@
* The dataset can not be used for query after this call.
*/
public void close() ;
+
+ /**
+ * @return Whether this {@code Dataset} is empty of graphs. Be aware
of the semantic looseness inherent in
+ * <a
href="https://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#h_note_4">the
definition
+ * of RDF Datasets</a>; whether a named graph exists if nothing is in
it is implementation-specific.
+ */
+ boolean isEmpty();
--- End diff --
Sure we can. Change the javadoc to "returns true if the dataset contains
no statements in any model". That's what it does, and what the test does
anyway, because the impl passes down to `DatasetGraph.isEmpty`. That is the
useful operation.
---