Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/287#discussion_r144312365
--- 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 --
"is empty of graphs"
Firstly, there is always at least one graph (the default graph).
Secondly, "isEmpty" on a DSG means no triples in any graph (default
implement is `!contain(ANY,ANY,ANY,ANY)` which includes the default graph).
---