Skip to content

Commit

Permalink
Typos and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Nov 13, 2018
1 parent ea7c22d commit b1f83c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public interface DatasetGraph extends Transactional, Closeable
/** Get the default graph as a Jena Graph */
public Graph getDefaultGraph() ;

/** Get the graph named by graphNode : returns null on no graph
/** Get the graph named by graphNode : returns null when there is no such graph.
* NB Whether a dataset contains a graph if there are no triples is not defined - see the specific implementation.
* Some datasets are "open" - they have all graphs even if no triples,
* Some datasets are "open" - they have all graphs even if no triples.
*/
public Graph getGraph(Node graphNode) ;

Expand Down
2 changes: 1 addition & 1 deletion jena-cmds/src/main/java/arq/cmdline/ModDatasetGeneral.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void registerWith(CmdGeneral cl) {
cl.getUsage().startCategory("Dataset") ;
cl.add(dataDecl,
"--data=FILE",
"Data for the datset - triple or quad formats") ;
"Data for the dataset - triple or quad formats") ;
cl.add(graphDecl,
"--graph=FILE",
"Graph for default graph of the datset") ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public static void checking(boolean onOrOff) {

/** Output a lot of detailed information. */
public static void infoAll(boolean onOrOff) {
DumpTree = true ;
Logging = true ;
DumpTree = onOrOff ;
Logging = onOrOff ;
}

static boolean logging(Logger log) {
Expand Down Expand Up @@ -123,7 +123,7 @@ static void promotePage(AccessPath path, BPTreePage page) {
List<AccessStep> y = path.getPath().subList(0, path.getPath().size()-2) ;
Optional<AccessStep> z = y.stream().filter(e -> e.node.isLeaf() ).findFirst() ;
if ( z.isPresent() )
error("promote: Leaf %s found in path but not at the tail: %s") ;
error("promote: Leaf %s found in path but not at the tail: %s", z.get(), path) ;
}
// Check the page/index pointers
Optional<AccessStep> z2 = path.getPath().stream().filter(e -> e.node.ptrs.get(e.idx) != e.page.getId()).findFirst() ;
Expand Down

0 comments on commit b1f83c2

Please sign in to comment.