You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/10/05 12:56:15 UTC
[5/5] jena git commit: Javadoc and formatting.
Javadoc and formatting.
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/97ec600b
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/97ec600b
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/97ec600b
Branch: refs/heads/master
Commit: 97ec600b686a3068d6fd4c24f93c69910af04b57
Parents: 6a284b4
Author: Andy Seaborne <an...@apache.org>
Authored: Mon Oct 5 10:32:56 2015 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Mon Oct 5 10:32:56 2015 +0100
----------------------------------------------------------------------
.../org/apache/jena/sparql/core/DatasetGraph.java | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/97ec600b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
index 0743351..8732fc4 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraph.java
@@ -45,9 +45,18 @@ public interface DatasetGraph extends Closeable
/** Get the graph named by graphNode : returns null on no graph
* NB Whether a dataset contains a graph if there are no triples is not defined - see the specifc implementation.
* Some datasets are "open" - they have all graphs even if no triples,
- * */
+ */
public Graph getGraph(Node graphNode) ;
-
+
+ /**
+ * Does the DatasetGraph contain a specific named graph?
+ * Whether a dataset contains a graph if there are no triples is
+ * not defined - see the specifc implementation. Some datasets are "open" -
+ * they have all graphs even if no triples and thsi returns true always.
+ *
+ * @param graphNode
+ * @return boolean
+ */
public boolean containsGraph(Node graphNode) ;
/** Set the default graph. Set the active graph if it was null.
@@ -62,7 +71,6 @@ public interface DatasetGraph extends Closeable
* get the graph and add triples to it, or add quads to the dataset.
* Do not assume that the same Java object is returned by {@link #getGraph}
*/
-
public void addGraph(Node graphName, Graph graph) ;
/** Remove all data associated with the named graph */