Github user ajs6f commented on a diff in the pull request:
https://github.com/apache/jena/pull/287#discussion_r144321650
--- 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 --
I didn't do that at first because it felt like a bit of a conflict against
the rest of the API for `Dataset`, which discusses models/graphs and not
tuples. But if you're okay with it, it doesn't bother me.
---