diff --git a/BUILD.md b/BUILD.md
index 0f0adbfd4a5..40bcdef456d 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -7,7 +7,7 @@ It is not normally necessary to build from source. Apache Jena provides already-
See http://jena.apache.org/download/
-For most usage, there is no requirment to build from source. Use maven
+For most usage, there is no requirement to build from source. Use maven
or other build system that can download from the central repositories.
diff --git a/jena-arq/src-examples/arq/examples/AlgebraEx.java b/jena-arq/src-examples/arq/examples/AlgebraEx.java
index 494f83cafae..d676d1c5326 100644
--- a/jena-arq/src-examples/arq/examples/AlgebraEx.java
+++ b/jena-arq/src-examples/arq/examples/AlgebraEx.java
@@ -26,7 +26,7 @@
import org.apache.jena.sparql.engine.binding.Binding ;
/** Simple example to show parsing a query and producing the
- * SPARQL agebra expression for the query. */
+ * SPARQL algebra expression for the query. */
public class AlgebraEx
{
public static void main(String []args)
diff --git a/jena-arq/src-examples/arq/examples/propertyfunction/labelSearch.java b/jena-arq/src-examples/arq/examples/propertyfunction/labelSearch.java
index a009c50b635..8089806ab6b 100644
--- a/jena-arq/src-examples/arq/examples/propertyfunction/labelSearch.java
+++ b/jena-arq/src-examples/arq/examples/propertyfunction/labelSearch.java
@@ -54,10 +54,10 @@
/** Example extension or property function to show rewriting part of a query.
* A simpler, more direct way to implement property functions is to extend
* one of the helper classes and have the custom code called on each solution from the
- * the previosu query stage.
+ * the previous query stage.
*
* See examples {@link localname} for a general predicate that allows for any of
- * subject or object to be a variable of boudn value, or see {@link uppercase} for a simple
+ * subject or object to be a variable of bound value, or see {@link uppercase} for a simple
* implementation that transforms on graph node into a new node.
*
* This is a more complicated example which uses the PropertyFunction interface directly.
diff --git a/jena-arq/src-examples/arq/examples/update/UpdateExecuteOperations.java b/jena-arq/src-examples/arq/examples/update/UpdateExecuteOperations.java
index 83082a8bd95..c2481edbac4 100644
--- a/jena-arq/src-examples/arq/examples/update/UpdateExecuteOperations.java
+++ b/jena-arq/src-examples/arq/examples/update/UpdateExecuteOperations.java
@@ -28,8 +28,8 @@
import org.apache.jena.update.UpdateFactory ;
import org.apache.jena.update.UpdateRequest ;
-/** Build an update request up out of indvidiual Updates specified as strings.
- * See UpdatePorgrammatic for another way to build up a request.
+/** Build an update request up out of individual Updates specified as strings.
+ * See UpdateProgrammatic for another way to build up a request.
* These two approaches can be mixed.
*/
diff --git a/jena-arq/src-examples/arq/examples/update/UpdateProgrammatic.java b/jena-arq/src-examples/arq/examples/update/UpdateProgrammatic.java
index 5e90485ce7c..e62a15cc0fe 100644
--- a/jena-arq/src-examples/arq/examples/update/UpdateProgrammatic.java
+++ b/jena-arq/src-examples/arq/examples/update/UpdateProgrammatic.java
@@ -30,7 +30,7 @@
import org.apache.jena.sparql.sse.SSE ;
import org.apache.jena.update.* ;
-/** Build an update request up out of indvidiual Update objects, not by parsing.
+/** Build an update request up out of individual Update objects, not by parsing.
* This is quite low-level.
* See UpdateExecuteOperations for ways to build the request up from strings.
* These two approaches can be mixed.
diff --git a/jena-arq/src/main/java/org/apache/jena/atlas/json/JsonBuilder.java b/jena-arq/src/main/java/org/apache/jena/atlas/json/JsonBuilder.java
index 8183a9cacfa..9347e980943 100644
--- a/jena-arq/src/main/java/org/apache/jena/atlas/json/JsonBuilder.java
+++ b/jena-arq/src/main/java/org/apache/jena/atlas/json/JsonBuilder.java
@@ -49,7 +49,7 @@ private static enum State {
public static JsonBuilder create() { return new JsonBuilder() ; }
/** Create a builder from a {@link JsonValue}.
- *
If the argument is an object or array, use it to initailize the builder.
+ *
If the argument is an object or array, use it to initialize the builder.
*
If the argument is a JSON primitive (string, number, boolean or null),
*
Otherwise thrown {@link IllegalArgumentException}.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/query/Dataset.java b/jena-arq/src/main/java/org/apache/jena/query/Dataset.java
index b93d2f4a700..6f8bc0edf88 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/Dataset.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/Dataset.java
@@ -35,7 +35,7 @@ public interface Dataset extends Transactional
/** Get the default graph as a Jena Model */
public Model getDefaultModel() ;
- /** Get the graph which is teh unionof all named graphs as a Jena Model */
+ /** Get the graph which is the unionof all named graphs as a Jena Model */
public Model getUnionModel() ;
/** Set the default graph. Can be set to null for none. */
diff --git a/jena-arq/src/main/java/org/apache/jena/query/DatasetAccessor.java b/jena-arq/src/main/java/org/apache/jena/query/DatasetAccessor.java
index 6b1ae1f373e..23c1d3134d7 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/DatasetAccessor.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/DatasetAccessor.java
@@ -21,7 +21,7 @@
import org.apache.jena.rdf.model.Model ;
/** Accessor to a dataset as a collection of models, providing
- * whole model operations. Models can be added, remopve and replaced.
+ * whole model operations. Models can be added, removed and replaced.
* This interface provides a uniform interface to local and remote datasets and is based on
* SPARQL 1.1 Graph Store HTTP Protocol.
* The factory methods in {@link DatasetAccessorFactory} provides creators for
diff --git a/jena-arq/src/main/java/org/apache/jena/query/DatasetFactory.java b/jena-arq/src/main/java/org/apache/jena/query/DatasetFactory.java
index 42f960b9213..7ec58b802ed 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/DatasetFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/DatasetFactory.java
@@ -119,7 +119,7 @@ public static Dataset create(Model model) {
/**
* @param dataset Dataset to clone structure from.
- * @return a dataset: clone the dataset structure of named graohs, and share the graphs themselves.
+ * @return a dataset: clone the dataset structure of named graphs, and share the graphs themselves.
* @deprecated This operation may be removed.
*/
@Deprecated
@@ -184,7 +184,7 @@ public static Dataset createNamed(List namedSourceList) {
* (Jena calls graphs "Models" and triples "Statements")
*
* @param uriList graphs to be loaded into the unnamed, default graph
- * @param namedSourceList graphs to be atatched as named graphs
+ * @param namedSourceList graphs to be attached as named graphs
* @return Dataset
*/
@@ -214,7 +214,7 @@ public static Dataset create(String uri, List namedSourceList) {
* (Jena calls graphs "Models" and triples "Statements")
*
* @param uri graph to be loaded into the unnamed, default graph
- * @param namedSourceList graphs to be atatched as named graphs
+ * @param namedSourceList graphs to be attached as named graphs
* @param baseURI baseURI for relative URI expansion
* @return Dataset
*/
@@ -230,7 +230,7 @@ public static Dataset create(String uri, List namedSourceList, String ba
* (Jena calls graphs "Models" and triples "Statements")
*
* @param uriList graphs to be loaded into the unnamed, default graph
- * @param namedSourceList graphs to be atatched as named graphs
+ * @param namedSourceList graphs to be attached as named graphs
* @param baseURI baseURI for relative URI expansion
* @return Dataset
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java b/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
index db173f91667..f421d37473e 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/ParameterizedSparqlString.java
@@ -898,7 +898,7 @@ public void setLiteral(String var, String value, String lang) {
}
/**
- * Sets a positional arameter to a typed literal
+ * Sets a positional parameter to a typed literal
*
* Setting a parameter to null is equivalent to calling
* {@link #clearParam(int)} for the given index
diff --git a/jena-arq/src/main/java/org/apache/jena/query/Query.java b/jena-arq/src/main/java/org/apache/jena/query/Query.java
index 3ff5b3f536e..d29c6ac70f7 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/Query.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/Query.java
@@ -46,7 +46,7 @@
* There are two ways of creating a query - use the parser to turn
* a string description of the query into the executable form, and
* the programmatic way (the parser is calling the programmatic
- * operations driven by the quyery string). The declarative approach
+ * operations driven by the query string). The declarative approach
* of passing in a string is preferred.
*
* Once a query is built, it can be passed to the QueryFactory to produce a query execution engine.
@@ -765,7 +765,7 @@ public int hashCode()
* not mean the queries do different things.
*
* For example, reordering a group or union
- * means that that a query is different.
+ * means that a query is different.
*
* Two instances of a query parsed from the same string are equal.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/query/QueryBuildException.java b/jena-arq/src/main/java/org/apache/jena/query/QueryBuildException.java
index 0117b565847..e499b4ebfeb 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/QueryBuildException.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/QueryBuildException.java
@@ -18,7 +18,7 @@
package org.apache.jena.query;
-/** QueryBuildException is exception for all excpetions during query
+/** QueryBuildException is exception for all exceptions during query
* execution construction. */
diff --git a/jena-arq/src/main/java/org/apache/jena/query/QueryExecution.java b/jena-arq/src/main/java/org/apache/jena/query/QueryExecution.java
index 5322dddf5bb..ada0d0055aa 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/QueryExecution.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/QueryExecution.java
@@ -78,7 +78,7 @@ public interface QueryExecution extends AutoCloseable
public Model execConstruct();
/** Execute a CONSTRUCT query, putting the statements into 'model'.
- * @return Model The model argument for casaded code.
+ * @return Model The model argument for cascaded code.
*/
public Model execConstruct(Model model);
@@ -116,12 +116,12 @@ public interface QueryExecution extends AutoCloseable
public Iterator execConstructQuads();
/** Execute a CONSTRUCT query, putting the statements into 'dataset'.
- * This maybe an exetended synatx query (if supported).
+ * This maybe an extended syntax query (if supported).
*/
public Dataset execConstructDataset();
/** Execute a CONSTRUCT query, putting the statements into 'dataset'.
- * This maybe an exetended synatx query (if supported).
+ * This maybe an extended syntax query (if supported).
*/
public Dataset execConstructDataset(Dataset dataset);
@@ -169,7 +169,7 @@ public interface QueryExecution extends AutoCloseable
* QueryExecution objects, and a {@link ResultSet} from {@link #execSelect},
* can not be used once the QueryExecution is closed.
* Model results from {@link #execConstruct} and {@link #execDescribe}
- * are stil valid.
+ * are still valid.
* It is important to close query execution objects in order to release
* resources such as working memory and to stop the query execution.
* Some storage subsystems require explicit ends of operations and this
@@ -187,7 +187,7 @@ public interface QueryExecution extends AutoCloseable
public boolean isClosed();
/** Set a timeout on the query execution.
- * Processing will be aborted after the timeout (which starts when the approprate exec call is made).
+ * Processing will be aborted after the timeout (which starts when the appropriate exec call is made).
* Not all query execution systems support timeouts.
* A timeout of less than zero means no timeout.
*/
@@ -212,9 +212,9 @@ public interface QueryExecution extends AutoCloseable
*/
public void setTimeout(long timeout1, long timeout2) ;
- /** Return the first timeout (time to first result), in millseconds: negative if unset */
+ /** Return the first timeout (time to first result), in milliseconds: negative if unset */
public long getTimeout1() ;
- /** Return the second timeout (overall query execution after first result), in millseconds: negative if unset */
+ /** Return the second timeout (overall query execution after first result), in milliseconds: negative if unset */
public long getTimeout2() ;
// /** Say whether this QueryExecution is useable or not.
diff --git a/jena-arq/src/main/java/org/apache/jena/query/ResultSetFactory.java b/jena-arq/src/main/java/org/apache/jena/query/ResultSetFactory.java
index 805076eae57..dcf33f58d1f 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/ResultSetFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/ResultSetFactory.java
@@ -363,7 +363,7 @@ public static ResultSet fromSSE(InputStream in) {
}
/**
- * Turns an RDF model, with properties and classses from the result set
+ * Turns an RDF model, with properties and classes from the result set
* vocabulary, into a SPARQL result set. The result set formed is a copy in
* memory.
*
@@ -375,7 +375,7 @@ static public ResultSet makeResults(Model model) {
}
/**
- * Turns an RDF model, with properties and classses from the result set
+ * Turns an RDF model, with properties and classes from the result set
* vocabulary, into a SPARQL result set which is rewindable (has a
* .reset()operation). The result set formed is a copy in memory.
*
@@ -388,7 +388,7 @@ static public ResultSetRewindable makeRewindable(Model model) {
/**
* Turn an existing result set into a rewindable one.
- * May take a copy but this is not guarantted
+ * May take a copy but this is not guaranteed
* Uses up the result set passed in which is no longer valid as a ResultSet.
*
* @param resultSet
diff --git a/jena-arq/src/main/java/org/apache/jena/query/ResultSetFormatter.java b/jena-arq/src/main/java/org/apache/jena/query/ResultSetFormatter.java
index ddfe2d26145..43bb07b0dee 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/ResultSetFormatter.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/ResultSetFormatter.java
@@ -348,7 +348,7 @@ static public void outputAsXML(OutputStream outStream, ResultSet qresults)
/** Output a result set in the XML format, inserting a style sheet in the XMl output
*
* @param qresults result set
- * @param stylesheet The URL of the stylsheet
+ * @param stylesheet The URL of the stylesheet
*/
static public void outputAsXML(ResultSet qresults, String stylesheet)
@@ -358,7 +358,7 @@ static public void outputAsXML(ResultSet qresults, String stylesheet)
*
* @param outStream output stream
* @param qresults result set
- * @param stylesheet The URL of the stylsheet
+ * @param stylesheet The URL of the stylesheet
*/
static public void outputAsXML(OutputStream outStream, ResultSet qresults, String stylesheet)
@@ -443,7 +443,7 @@ public static String asXMLString(ResultSet qresults, String stylesheet)
return xOut.asString(qresults) ;
}
- /** Return a string that has the result set serilized as XML (not RDF)
+ /** Return a string that has the result set serialized as XML (not RDF)
*
* This builds the string in memory which can lead to memory exhaustion
* for large results. It is generally better to use the
@@ -459,7 +459,7 @@ public static String asXMLString(boolean booleanResult)
return asXMLString(booleanResult, null) ;
}
- /** Return a string that has the result set serilized as XML (not RDF)
+ /** Return a string that has the result set serialized as XML (not RDF)
*
* This builds the string in memory which can lead to memory exhaustion
* for large results. It is generally better to use the
@@ -596,7 +596,7 @@ static public void outputAsSSE(OutputStream outStream, ResultSet resultSet, Prol
static public void outputAsCSV(boolean booleanResult)
{ outputAsCSV(System.out, booleanResult ) ; }
- /** Output a boolean result in in CSV format
+ /** Output a boolean result in CSV format
*
* @param outStream output stream
* @param booleanResult The boolean result to encode
@@ -636,7 +636,7 @@ static public void outputAsCSV(OutputStream outStream, ResultSet resultSet)
static public void outputAsTSV(boolean booleanResult)
{ outputAsTSV(System.out, booleanResult ) ; }
- /** Output a boolean result in in TSV format
+ /** Output a boolean result in TSV format
*
* @param outStream output stream
* @param booleanResult The boolean result to encode
@@ -667,7 +667,7 @@ static public void outputAsTSV(OutputStream outStream, ResultSet resultSet)
}
/** Output a result set in BIO format
- * @deprecated Exprimental - may be removed
+ * @deprecated Experimental - may be removed
*/
@Deprecated
public static void outputAsBIO(OutputStream out, ResultSet results)
diff --git a/jena-arq/src/main/java/org/apache/jena/query/Syntax.java b/jena-arq/src/main/java/org/apache/jena/query/Syntax.java
index fdedaa93133..7a68a6d3fe4 100644
--- a/jena-arq/src/main/java/org/apache/jena/query/Syntax.java
+++ b/jena-arq/src/main/java/org/apache/jena/query/Syntax.java
@@ -115,7 +115,7 @@ public static Syntax guessFileSyntax(String url)
return guessFileSyntax(url, syntaxSPARQL) ;
}
- /** Gues the syntax (query and update) based on filename */
+ /** Guess the syntax (query and update) based on filename */
public static Syntax guessFileSyntax(String url, Syntax defaultSyntax)
{
if ( url.endsWith(".arq") ) return syntaxARQ ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/LangBuilder.java b/jena-arq/src/main/java/org/apache/jena/riot/LangBuilder.java
index a13020e741c..f9024b28756 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/LangBuilder.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/LangBuilder.java
@@ -114,7 +114,7 @@ public String getContentType()
}
/** Set the main content type for this language.
- * If tehre is an officially registers, preferred type, this should be that.
+ * If there is an officially registered, preferred type, this should be that.
*/
public LangBuilder contentType(String officialContentType)
{
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
index 552114bc283..3430056de62 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFDataMgr.java
@@ -84,7 +84,7 @@ public class RDFDataMgr
public static Symbol streamManagerSymbol = SysRIOT.sysStreamManager;
/** Read triples into a Model from the given location.
- * The syntax is detemined from input source URI (content negotiation or extension).
+ * The syntax is determined from input source URI (content negotiation or extension).
* @param model Destination for the RDF read.
* @param uri URI to read from (includes file: and a plain file name).
* @throws RiotNotFoundException if the location is not found - the model is unchanged.
@@ -93,7 +93,7 @@ public class RDFDataMgr
public static void read(Model model, String uri) { read(model.getGraph(), uri) ; }
/** Read triples into a Model from the given location.
- * The syntax is detemined from input source URI (content negotiation or extension).
+ * The syntax is determined from input source URI (content negotiation or extension).
* @param graph Destination for the RDF read.
* @param uri URI to read from (includes file: and a plain file name).
* @throws RiotNotFoundException if the location is not found - the graph is unchanged.
@@ -132,7 +132,7 @@ public class RDFDataMgr
/** Read triples into a Model from the given location, with hint of language and the with some parameters for the reader
* @see #read(Graph,String,String,Lang,Context)
- * Throws parse errors depending on the language and reader; the Model model may be partially updated.
+ * Throws parse errors depending on the language and reader; the model may be partially updated.
* @param graph Destination for the RDF read.
* @param uri URI to read from (includes file: and a plain file name).
* @param base Base URI (defaults to uri).
@@ -223,7 +223,7 @@ public static void read(Graph graph, String uri, String base, Lang hintLang, Con
/** Read triples into a Model with bytes from an InputStream.
* A base URI and a syntax can be provided.
- * The base URI defualts to "no base" in which case the data should have no relative URIs.
+ * The base URI defaults to "no base" in which case the data should have no relative URIs.
* The lang gives the syntax of the stream.
* @param model Destination for the RDF read.
* @param in InputStream
@@ -233,7 +233,7 @@ public static void read(Graph graph, String uri, String base, Lang hintLang, Con
/** Read triples into a Model with bytes from an InputStream.
* A base URI and a syntax can be provided.
- * The base URI defualts to "no base" in which case the data should have no relative URIs.
+ * The base URI defaults to "no base" in which case the data should have no relative URIs.
* The lang gives the syntax of the stream.
* @param graph Destination for the RDF read.
* @param in InputStream
@@ -243,7 +243,7 @@ public static void read(Graph graph, String uri, String base, Lang hintLang, Con
/** Read triples into a Model with bytes from an InputStream.
* A base URI and a syntax can be provided.
- * The base URI defualts to "no base" in which case the data should have no relative URIs.
+ * The base URI defaults to "no base" in which case the data should have no relative URIs.
* The lang gives the syntax of the stream.
* @param model Destination for the RDF read.
* @param in InputStream
@@ -255,7 +255,7 @@ public static void read(Model model, InputStream in, String base, Lang lang)
/** Read triples into a Model with bytes from an InputStream.
* A base URI and a syntax can be provided.
- * The base URI defualts to "no base" in which case the data should have no relative URIs.
+ * The base URI defaults to "no base" in which case the data should have no relative URIs.
* The lang gives the syntax of the stream.
* @param graph Destination for the RDF read.
* @param in InputStream
@@ -758,7 +758,7 @@ public static void parse(StreamRDF sink, StringReader in, String base, Lang hint
* @param sink Destination for the RDF read.
* @param in Reader
* @param lang Syntax for the stream.
- * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferrable. Use {@code RDFParser.create().source(in).lang(hintLang).parse()}
+ * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferable. Use {@code RDFParser.create().source(in).lang(hintLang).parse()}
*/
@Deprecated
public static void parse(StreamRDF sink, Reader in, Lang lang) {
@@ -770,7 +770,7 @@ public static void parse(StreamRDF sink, Reader in, Lang lang) {
* @param in Reader
* @param base Base URI (defaults to uri).
* @param hintLang Hint for the syntax
- * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferrable. Use {@code RDFParser.create().source(in).lang(hintLang).context(context).parse(sink)}
+ * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferable. Use {@code RDFParser.create().source(in).lang(hintLang).context(context).parse(sink)}
*/
@Deprecated
public static void parse(StreamRDF sink, Reader in, String base, Lang hintLang) {
@@ -783,7 +783,7 @@ public static void parse(StreamRDF sink, Reader in, String base, Lang hintLang)
* @param base Base URI (defaults to uri).
* @param hintLang Hint for the syntax
* @param context Content object to control reading process.
- * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferrable. Use {@code RDFParser.create().source(in).lang(hintLang).base(base).context(context).parse(sink)}
+ * @deprecated To be removed. An {@code InputStream} or {@code StringReader} is preferable. Use {@code RDFParser.create().source(in).lang(hintLang).base(base).context(context).parse(sink)}
*/
@Deprecated
public static void parse(StreamRDF sink, Reader in, String base, Lang hintLang, Context context) {
@@ -950,7 +950,7 @@ private static String defaultBase(String uri) {
return uri ;
}
- /** Default lang - usually left as unknown so that extended content negotation happens */
+ /** Default lang - usually left as unknown so that extended content negotiation happens */
private static Lang defaultLang(String uri) {
return null;
}
@@ -979,7 +979,7 @@ public static Lang determineLang(String target, String ctStr, Lang hintLang) {
/** Write the model to the output stream in the default serialization for the language.
* @param out OutputStream
* @param model Graph to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(OutputStream out, Model model, Lang lang) {
write(out, model.getGraph(), lang);
@@ -1037,7 +1037,7 @@ public static void write(Writer out, Model model, RDFFormat serialization) {
/** Write the graph to the output stream in the default serialization for the language.
* @param out OutputStream
* @param graph Graph to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(OutputStream out, Graph graph, Lang lang) {
RDFFormat serialization = langToFormatOrException(lang);
@@ -1098,7 +1098,7 @@ public static void write(Writer out, Graph graph, RDFFormat serialization) {
/** Write the Dataset to the output stream in the default serialization for the language.
* @param out OutputStream
* @param dataset Dataset to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(OutputStream out, Dataset dataset, Lang lang) {
write(out, dataset.asDatasetGraph(), lang);
@@ -1125,7 +1125,7 @@ public static void write(StringWriter out, Dataset dataset, RDFFormat serializat
/** Write the graph to the output stream in the default serialization for the language.
* @param out StringWriter
* @param dataset Dataset to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(StringWriter out, Dataset dataset, Lang lang) {
RDFFormat serialization = langToFormatOrException(lang);
@@ -1146,7 +1146,7 @@ public static void write(Writer out, Dataset dataset, RDFFormat serialization) {
/** Write the DatasetGraph to the output stream in the default serialization for the language.
* @param out OutputStream
* @param dataset DatasetGraph to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(OutputStream out, DatasetGraph dataset, Lang lang) {
RDFFormat serialization = langToFormatOrException(lang);
@@ -1165,7 +1165,7 @@ public static void write(OutputStream out, DatasetGraph dataset, RDFFormat seria
/** Write the DatasetGraph to the output stream in the default serialization for the language.
* @param out StringWriter
* @param dataset DatasetGraph to write
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
*/
public static void write(StringWriter out, DatasetGraph dataset, Lang lang) {
RDFFormat serialization = langToFormatOrException(lang);
@@ -1209,7 +1209,7 @@ public static void writeQuads(OutputStream out, Iterator iterator) {
}
/** Create a writer for an RDF language
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
* @return WriterGraphRIOT
*/
public static WriterGraphRIOT createGraphWriter(Lang lang) {
@@ -1226,7 +1226,7 @@ public static WriterGraphRIOT createGraphWriter(RDFFormat serialization) {
}
/** Create a writer for an RDF language
- * @param lang Language for the seralization.
+ * @param lang Language for the serialization.
* @return WriterGraphRIOT
*/
public static WriterDatasetRIOT createDatasetWriter(Lang lang) {
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFLanguages.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFLanguages.java
index c093cc679c2..b6ea677cfe7 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFLanguages.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFLanguages.java
@@ -243,7 +243,7 @@ private static void initStandard()
* To create a {@link Lang} object use {@link LangBuilder}.
* See also
* {@link RDFParserRegistry#registerLang}
- * for registering a language and it's RDF parser fatory.
+ * for registering a language and it's RDF parser factory.
*
* @see RDFParserRegistry
*/
@@ -297,7 +297,7 @@ private static void checkRegistration(Lang lang)
error("Language overlap: " +lang+" and "+mapFileExtToLang.get(ext)+" on file extension type "+ext) ;
}
- /** Remove a regsitration of a language - this also removes all recorded mapping
+ /** Remove a registration of a language - this also removes all recorded mapping
* of content types and file extensions.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFParserBuilder.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFParserBuilder.java
index 08c0d240a85..09a1de4bf10 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFParserBuilder.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFParserBuilder.java
@@ -316,11 +316,11 @@ public RDFParserBuilder httpClient(HttpClient httpClient) {
public RDFParserBuilder canonicalLiterals(boolean flag) { this.canonicalLiterals = flag ; return this; }
/** Set whether to perform checking,
- * NTriples and NQuads default to no checking, olther langauges to checking.
+ * NTriples and NQuads default to no checking, other languages to checking.
*
* Checking adds warnings over and above basic syntax errors.
*
- *
URIs - whether IRs confrm to all the rules of the URI scheme
+ *
URIs - whether IRs confirm to all the rules of the URI scheme
*
Literals: whether the lexical form conforms to the rules for the datatype.
*
Triples and quads: check slots have a valid kind of RDF term (parsers usually make this a syntax error anyway).
*
@@ -421,7 +421,7 @@ public void parse(StreamRDF stream) {
* Parse the source, sending the results to a {@link Graph}. The source must be for
* triples; any quads are discarded.
* Short form for {@code build().parse(stream)}
- * where {@code stream} sends tripes and prfixes to the {@code Graph}.
+ * where {@code stream} sends triples and prefixes to the {@code Graph}.
*
* @param graph
*/
@@ -432,7 +432,7 @@ public void parse(Graph graph) {
/**
* Parse the source, sending the results to a {@link DatasetGraph}.
* Short form for {@code build().parse(stream)}
- * where {@code stream} sends tripes and prefixes to the {@code DatasetGraph}.
+ * where {@code stream} sends triples and prefixes to the {@code DatasetGraph}.
*
* @param dataset
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterBuilder.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterBuilder.java
index 1840fcf04ce..336e629704a 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterBuilder.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterBuilder.java
@@ -38,7 +38,7 @@ public class RDFWriterBuilder {
*/
RDFWriterBuilder () {}
- /** Set the source of wriing to the graph argument.
+ /** Set the source of writing to the graph argument.
*
* Any prrvious source setting is cleared.
* @param graph A {@link Graph}.
@@ -50,7 +50,7 @@ public RDFWriterBuilder source(Graph graph) {
return this;
}
- /** Set the source of wriing to the {@code DatasetGraph} argument.
+ /** Set the source of writing to the {@code DatasetGraph} argument.
*
* Any prrvious source setting is cleared.
* @param dataset A {@link DatasetGraph}.
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java
index d331c1d3b55..fa367ce6d38 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/RDFWriterRegistry.java
@@ -297,7 +297,7 @@ private static void register(RDFFormat serialization)
* @param lang
* Languages
* @param format
- * The serialization forma to use when the language is used for
+ * The serialization format to use when the language is used for
* writing.
*/
public static void register(Lang lang, RDFFormat format) {
@@ -343,7 +343,7 @@ public static Collection registered() {
}
- /** Get the graph writer factory asscoiated with the language */
+ /** Get the graph writer factory associated with the language */
public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang) {
RDFFormat serialization = defaultSerialization(lang) ;
if ( serialization == null )
@@ -351,12 +351,12 @@ public static WriterGraphRIOTFactory getWriterGraphFactory(Lang lang) {
return getWriterGraphFactory(serialization) ;
}
- /** Get the graph writer factory asscoiated with the output format */
+ /** Get the graph writer factory associated with the output format */
public static WriterGraphRIOTFactory getWriterGraphFactory(RDFFormat serialization) {
return registryGraph.get(serialization) ;
}
- /** Get the dataset writer factory asscoiated with the language */
+ /** Get the dataset writer factory associated with the language */
public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang) {
RDFFormat serialization = defaultSerialization(lang) ;
if ( serialization == null )
@@ -364,7 +364,7 @@ public static WriterDatasetRIOTFactory getWriterDatasetFactory(Lang lang) {
return getWriterDatasetFactory(serialization) ;
}
- /** Get the dataset writer factory asscoiated with the output format */
+ /** Get the dataset writer factory associated with the output format */
public static WriterDatasetRIOTFactory getWriterDatasetFactory(RDFFormat serialization) {
if ( serialization == null )
return null ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/ReaderRIOT.java b/jena-arq/src/main/java/org/apache/jena/riot/ReaderRIOT.java
index 7c365060d45..7555f8d95d0 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/ReaderRIOT.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/ReaderRIOT.java
@@ -41,7 +41,7 @@ public interface ReaderRIOT
* parser will have already been done so this only useful to get
* addition Content-Type information or if this ReaderRIOT can
* handle multiple media types.
- * @param output Destintation for the parser output.
+ * @param output Destination for the parser output.
* @param context Environment settings.
*/
public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context) ;
@@ -53,7 +53,7 @@ public interface ReaderRIOT
* parser will have already been done so this only useful to get
* addition Content-Type information or if this ReaderRIOT can
* handle multiple media types.
- * @param output Destintation for the parser output.
+ * @param output Destination for the parser output.
* @param context Environment settings.
*/
public void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/adapters/AdapterRDFWriter.java b/jena-arq/src/main/java/org/apache/jena/riot/adapters/AdapterRDFWriter.java
index 8bfaef9e3f1..76b87a2d435 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/adapters/AdapterRDFWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/adapters/AdapterRDFWriter.java
@@ -36,7 +36,7 @@
/**
* Adapter providing RIOT interface {@link WriterGraphRIOT} over an old-style
* Jena {@link RDFWriter}. Subclasses of this class are used for RDF/XML
- * (basic and abbrevated) in RIOT.
+ * (basic and abbreviated) in RIOT.
*
* See {@link RDFWriterRIOT} for the class plugged into RIOT that provides the
* {@link RDFWriter} interface to Jena core operations. It is {@link RDFWriter} over
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/checker/CheckerIRI.java b/jena-arq/src/main/java/org/apache/jena/riot/checker/CheckerIRI.java
index 2ad61c20fdd..f5d4285b14f 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/checker/CheckerIRI.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/checker/CheckerIRI.java
@@ -99,7 +99,7 @@ public static void iriViolations(IRI iri, ErrorHandler errorHandler, long line,
* Assumes error handler throws exceptions on errors if needbe
* @param iri IRI to check
* @param errorHandler The error handler to call on each warning or error.
- * @param allowRelativeIRIs Allow realtive URIs (discouraged)
+ * @param allowRelativeIRIs Allow relative URIs (discouraged)
*/
private static void iriViolations(IRI iri, ErrorHandler errorHandler, boolean allowRelativeIRIs) {
iriViolations(iri, errorHandler, allowRelativeIRIs, -1, -1) ;
@@ -110,7 +110,7 @@ private static void iriViolations(IRI iri, ErrorHandler errorHandler, boolean al
* Assumes error handler throws exceptions on errors if needbe
* @param iri IRI to check
* @param errorHandler The error handler to call on each warning or error.
- * @param allowRelativeIRIs Allow realtive URIs (discouraged)
+ * @param allowRelativeIRIs Allow relative URIs (discouraged)
*/
private static void iriViolations(IRI iri, ErrorHandler errorHandler, boolean allowRelativeIRIs, long line, long col) {
iriViolations(iri, errorHandler, allowRelativeIRIs, true, line, col) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocator.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocator.java
index 8b8a8c482a5..4d810284fb7 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocator.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocator.java
@@ -25,7 +25,7 @@ public interface BlankNodeAllocator
{
/** Allocate based on a non-null label.
* Calling this twice, with the same label will generate equivalent nodes
- * but they may not be identicial (i.e they are .equals but may not be ==)
+ * but they may not be identical (i.e they are .equals but may not be ==)
*/
public Node alloc(String label) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorLabelEncoded.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorLabelEncoded.java
index 42220d021c7..8f783bb65d1 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorLabelEncoded.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorLabelEncoded.java
@@ -28,7 +28,7 @@
/**
* Allocate blank nodes according to the label given.
- * This alloctor reconstructs labels made by
+ * This allocator reconstructs labels made by
* {@link NodeToLabel#createBNodeByLabelEncoded()}
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorTraditional.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorTraditional.java
index ee1380f3a74..b44fd43dc70 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorTraditional.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/BlankNodeAllocatorTraditional.java
@@ -24,7 +24,7 @@
import org.apache.jena.graph.Node ;
import org.apache.jena.graph.NodeFactory ;
-/** Allocate blank ndoes according to the traditional policy (up to jena 2.10.0)
+/** Allocate blank nodes according to the traditional policy (up to jena 2.10.0)
* This allocator has arbitrary sized state.
* Create a fresh one for each parser run.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/LabelToNode.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/LabelToNode.java
index 272ecd4556f..0222b0594cb 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/LabelToNode.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/LabelToNode.java
@@ -31,7 +31,7 @@
* Various different policies.
* See {@link SyntaxLabels#createLabelToNode} for getting a default setup;
* some of the others are for testing and debugging and may not generate
- * legal RDF overall (e.g. reparsign the same file gets the same bNodes)
+ * legal RDF overall (e.g. reparsing the same file gets the same bNodes)
*/
public class LabelToNode extends MapWithScope
@@ -66,7 +66,7 @@ public static LabelToNode createScopeByGraph() {
* The reverse operation is provided by {@link NodeToLabel#createBNodeByLabelAsGiven()}
* but the pair is unsafe for output-input. Use encoded labels for that.
*
- * The main pupose of this LabelToNode is to preserve the used label for debugging.
+ * The main purpose of this LabelToNode is to preserve the used label for debugging.
*/
public static LabelToNode createUseLabelAsGiven()
{ return new LabelToNode(new AllocScopePolicy(), nodeAllocatorRawLabel()) ; }
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/lang/LangTurtleBase.java b/jena-arq/src/main/java/org/apache/jena/riot/lang/LangTurtleBase.java
index c82d5586cb7..98e4cf17d56 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/lang/LangTurtleBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/lang/LangTurtleBase.java
@@ -316,7 +316,7 @@ protected final Node predicate() {
return n ;
}
- /** Check raw token to see if it might be a predciate */
+ /** Check raw token to see if it might be a predicate */
protected final boolean peekPredicate() {
if ( lookingAt(TokenType.KEYWORD) ) {
String image = peekToken().getImage() ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFmtLib.java b/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFmtLib.java
index bb10d2562ce..1e547522092 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFmtLib.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFmtLib.java
@@ -35,7 +35,7 @@
import org.apache.jena.sparql.ARQConstants ;
import org.apache.jena.sparql.core.Quad ;
-/** Presentation utilitiles for Nodes, Triples, Quads and more.
+/** Presentation utilities for Nodes, Triples, Quads and more.
*
* Methods str generate a reparsable string.
*
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFormatterTTL_MultiLine.java b/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFormatterTTL_MultiLine.java
index bd843a8dbe0..04a663fb6ee 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFormatterTTL_MultiLine.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/out/NodeFormatterTTL_MultiLine.java
@@ -31,7 +31,7 @@
/**
* Node formatter for pretty-printed Turtle.
- * This {@link NodeFormatter} switches between " and ' quotes to avoid ecapes.
+ * This {@link NodeFormatter} switches between " and ' quotes to avoid escapes.
* This code writes multiline literals with """ or '''.
*/
public class NodeFormatterTTL_MultiLine extends NodeFormatterTTL {
@@ -115,4 +115,4 @@ private void writeLexicalMultiLine(AWriter writer, String str, Runnable action)
if ( indent >= 0 )
iw.setAbsoluteIndent(indent);
}
-}
\ No newline at end of file
+}
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedStringOutputBase.java b/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedStringOutputBase.java
index db62bb0546e..7ea7eb0ce2b 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedStringOutputBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/out/quoted/QuotedStringOutputBase.java
@@ -22,7 +22,7 @@
import org.apache.jena.atlas.lib.CharSpace ;
import org.apache.jena.atlas.lib.EscapeStr ;
-/** Quoted strign output - single line, settable quote character and char space. */
+/** Quoted string output - single line, settable quote character and char space. */
public class QuotedStringOutputBase implements QuotedStringOutput {
protected final CharSpace charSpace ;
protected final char quoteChar;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/IteratorStreamRDFText.java b/jena-arq/src/main/java/org/apache/jena/riot/system/IteratorStreamRDFText.java
index e0fe4b82878..b9249f76929 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/IteratorStreamRDFText.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/IteratorStreamRDFText.java
@@ -39,7 +39,7 @@
import org.slf4j.LoggerFactory ;
/** Testing/development convenience.
- * Iterator of StreamRowRDF (always a tuple) for an input stream of tokenized RDT terms.
+ * Iterator of StreamRowRDF (always a tuple) for an input stream of tokenized RDF terms.
*/
public class IteratorStreamRDFText extends IteratorStreamRDF implements Iterator {
private final TokenInputStream in ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfile.java b/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfile.java
index 1888826d4c9..9fc2bcfb14c 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfile.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/ParserProfile.java
@@ -72,7 +72,7 @@ public interface ParserProfile {
/**
* Make a node from a token - called after all else has been tried to handle
- * special cases Return null for "no special node recoginzed"
+ * special cases Return null for "no special node recognized"
*/
public Node createNodeFromToken(Node scope, Token token, long line, long col);
@@ -88,4 +88,4 @@ public interface ParserProfile {
/** Get the error handler used by this {@code ParserProfile} */
public ErrorHandler getErrorHandler();
-}
\ No newline at end of file
+}
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/PrefixMapFactory.java b/jena-arq/src/main/java/org/apache/jena/riot/system/PrefixMapFactory.java
index 62a661fd0bb..b490183968a 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/PrefixMapFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/PrefixMapFactory.java
@@ -230,7 +230,7 @@ public static PrefixMap extend(PrefixMap pmap) {
/** Return an immutable view of the prefix map.
* Throws {@link UnsupportedOperationException} on
- * attempts to update it. Refelcts hcnages mad to the underlying map.
+ * attempts to update it. Reflects changes made to the underlying map.
* @param pmap PrefixMap
* @return Prefix Map
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/RiotLib.java b/jena-arq/src/main/java/org/apache/jena/riot/system/RiotLib.java
index 637a640c65a..769f8af553c 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/RiotLib.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/RiotLib.java
@@ -382,7 +382,7 @@ public static int calcWidthTriples(PrefixMap prefixMap, String baseURI, Collecti
return nodeMaxWidth;
}
- /** IndentedWriter over a jaav.io.Writer (better to use an IndentedWriter over an OutputStream) */
+ /** IndentedWriter over a java.io.Writer (better to use an IndentedWriter over an OutputStream) */
public static IndentedWriter create(Writer writer) { return new IndentedWriterWriter(writer); }
public static PrefixMap prefixMap(Graph graph) { return PrefixMapFactory.create(graph.getPrefixMapping()); }
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamOps.java b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamOps.java
index 6a19229753b..89bf376fcfb 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamOps.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamOps.java
@@ -41,14 +41,14 @@
public class StreamOps {
- /** Send a dataset to a StreamRDF as prefixes, triples and quads, enclosed in stream.start()/steram.finish() */
+ /** Send a dataset to a StreamRDF as prefixes, triples and quads, enclosed in stream.start()/stream.finish() */
public static void datasetToStream(DatasetGraph datasetGraph, StreamRDF stream) {
stream.start() ;
sendDatasetToStream(datasetGraph, stream) ;
stream.finish() ;
}
- /** Send the triples of graph and it's prefix mapping to a StreamRDF, enclosed in stream.start()/steram.finish() */
+ /** Send the triples of graph and it's prefix mapping to a StreamRDF, enclosed in stream.start()/stream.finish() */
public static void graphToStream(Graph graph, StreamRDF stream) {
stream.start();
sendGraphToStream(graph, stream) ;
@@ -142,4 +142,4 @@ public static void sendQuadsToStream(Iterator iter, StreamRDF dest)
}
}
-}
\ No newline at end of file
+}
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDF.java b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDF.java
index ff71a3055fb..63c7b094858 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDF.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDF.java
@@ -22,7 +22,7 @@
import org.apache.jena.sparql.core.Quad ;
/** The interface for the output of RDF, such as the RIOT parsers.
- * The parser event model is that items are emitted for signficant events.
+ * The parser event model is that items are emitted for significant events.
* The events are start/finish, emitting triples/quads/tuples as necessary, prefixes and base directives.
* Tuples are generalized triples or quads. A triple language will call triple(),
* quad language quad() in preference.
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFWriter.java b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFWriter.java
index f9eb9ddab7e..e01237c8946 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFWriter.java
@@ -39,7 +39,7 @@
import org.apache.jena.sparql.core.Quad ;
/** Write RDF in a streaming fashion.
- * {@link RDFDataMgr} operations do not provide this guaranttee.
+ * {@link RDFDataMgr} operations do not provide this guarantee.
* See {@link RDFWriterRegistry} for general purpose writers.
*
* @see RDFDataMgr
@@ -104,7 +104,7 @@ public StreamRDF create(OutputStream output, RDFFormat format) {
/** Register the default serialization for the language (replace any existing registration).
* @param lang Languages
- * @param format The serialization forma to use when the language is used for writing.
+ * @param format The serialization format to use when the language is used for writing.
*/
public static void register(Lang lang, RDFFormat format) {
registry.register(lang, format) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/stream/JenaIOEnvironment.java b/jena-arq/src/main/java/org/apache/jena/riot/system/stream/JenaIOEnvironment.java
index 50ddef1eace..7d822d8730e 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/stream/JenaIOEnvironment.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/stream/JenaIOEnvironment.java
@@ -74,7 +74,7 @@ static private String getGlobalConfigPath()
return s_globalMapperPath ;
}
- /** Set the global lcoation mapper. (as returned by get())
+ /** Set the global location mapper. (as returned by get())
* If called before any call to get(), then the usual default global location mapper is not created
* @param globalLocationMapper
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/system/stream/LocationMapper.java b/jena-arq/src/main/java/org/apache/jena/riot/system/stream/LocationMapper.java
index 10fe79b5491..81036388577 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/system/stream/LocationMapper.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/system/stream/LocationMapper.java
@@ -79,7 +79,7 @@ public String altMapping(String uri) {
*
* @param uri
* @param otherwise
- * @return The alternative location choosen
+ * @return The alternative location chosen
*/
public String altMapping(String uri, String otherwise) {
if ( altLocations.containsKey(uri) )
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/thrift/TRDF.java b/jena-arq/src/main/java/org/apache/jena/riot/thrift/TRDF.java
index ce00bfd80d5..e7bd316a4a1 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/thrift/TRDF.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/thrift/TRDF.java
@@ -96,12 +96,12 @@ public static TProtocol protocol(TTransport transport) {
throw new RiotThriftException("No protocol impl choosen") ;
}
- /** Flush a TProtocol; expections converted to {@link RiotException} */
+ /** Flush a TProtocol; exceptions converted to {@link RiotException} */
public static void flush(TProtocol protocol) {
flush(protocol.getTransport()) ;
}
- /** Flush a TTransport; expections converted to {@link RiotException} */
+ /** Flush a TTransport; exceptions converted to {@link RiotException} */
public static void flush(TTransport transport) {
try { transport.flush() ; }
catch (TException ex) { TRDF.exception(ex) ; }
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java b/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
index e65a350a8ac..80eaf01ec9e 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/web/HttpOp.java
@@ -58,7 +58,7 @@
* of HTTP. The expectation is that the simplified operations in this class can
* be used by other code to generate more application specific HTTP interactions
* (e.g. SPARQL queries). For more complicated requirements of HTTP, then the
- * application wil need to use org.apache.http.client directly.
+ * application will need to use org.apache.http.client directly.
*
*
* For HTTP GET, the application supplies a URL, the accept header string, and a
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/web/LangTag.java b/jena-arq/src/main/java/org/apache/jena/riot/web/LangTag.java
index bdd2885ceec..c2e0cd18d1d 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/web/LangTag.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/web/LangTag.java
@@ -181,7 +181,7 @@ private static int checkPart(String languageTag, int idx, boolean leader) {
* constants for the array contents. Parts not present cause a null in
* the return array.
*
- * @return Langtag parts, or null if the input string does not poarse as a lang tag.
+ * @return Langtag parts, or null if the input string does not parse as a lang tag.
*/
public static String[] parse(String languageTag) {
String[] parts = new String[partsLength] ;
@@ -224,7 +224,7 @@ public static String[] parse(String languageTag) {
return parts ;
}
- /** Canonicalize with the rules of RFC 4646, or RFC5646 without replacement of perferred form. */
+ /** Canonicalize with the rules of RFC 4646, or RFC5646 without replacement of preferred form. */
public static String canonical(String str) {
if ( str == null )
return null ;
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/writer/WriterStreamRDFBase.java b/jena-arq/src/main/java/org/apache/jena/riot/writer/WriterStreamRDFBase.java
index 680a960a090..acfcff7ac5d 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/writer/WriterStreamRDFBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/writer/WriterStreamRDFBase.java
@@ -34,7 +34,7 @@
import org.apache.jena.sparql.core.Quad ;
/** Core engine for output of triples / quads that is streaming.
- * Handles prefixes and base, toegther with the environment for processing.
+ * Handles prefixes and base, together with the environment for processing.
* If fed quads, the output is valid TriG.
* If fed only triples, the output is valid Turtle.
* Not for N-Quads and N-triples.
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpAssign.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpAssign.java
index 8eafaca9e98..f13a49398fc 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpAssign.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpAssign.java
@@ -34,7 +34,7 @@ public class OpAssign extends OpExtendAssign {
// Not possible if it's the reassignment of something already assigned.
/** Create an OpAssign or add to an existing one.
- * This coperation collapses what woudl otherwise be stacks
+ * This cooperation collapses what would otherwise be stacks
* of OpExtend.
*/
static public Op assign(Op op, Var var, Expr expr) {
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpExtend.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpExtend.java
index 88c1cbe835f..2f26a3437ef 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpExtend.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpExtend.java
@@ -30,7 +30,7 @@
import org.apache.jena.sparql.util.NodeIsomorphismMap ;
/**
- * This is the operation in stadard SPARQL 1.1 OpAssign is specifically in
+ * This is the operation in standard SPARQL 1.1 OpAssign is specifically in
* support of LET.
*/
public class OpExtend extends OpExtendAssign {
@@ -38,7 +38,7 @@ public class OpExtend extends OpExtendAssign {
// Not possible if it's the reassignment of something already assigned.
/** Create an OpExtend or add to an existing one.
- * This coperation collapses what woudl otherwise be stacks
+ * This cooperation collapses what would otherwise be stacks
* of OpExtend.
*/
static public Op extend(Op op, Var var, Expr expr) {
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpFilter.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpFilter.java
index 4b01b8abe07..4790e0b983e 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpFilter.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpFilter.java
@@ -64,7 +64,7 @@ public static Op filter(ExprList exprs, Op op) {
/** Combine an ExprList with an Op so that the expressions filter the Op.
* If the exprs are empty, return the Op.
- * If the op is already a OpFilter, merge the expressions into the filters existintg expressions.
+ * If the op is already a OpFilter, merge the expressions into the filters existing expressions.
* Else create a new OpFilter with the expressions and subOp.
*/
public static Op filterBy(ExprList exprs, Op op) {
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpLabel.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpLabel.java
index d2f47641dcd..2a335590fc7 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpLabel.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpLabel.java
@@ -29,7 +29,7 @@
/** Do-nothing class that means that tags/labels/comments can be left in the algebra tree.
* If serialized, toString called on the object, reparsing yields a string.
- * Can have zero one one sub ops. */
+ * Can have zero one sub ops. */
public class OpLabel extends Op1
{
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpN.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpN.java
index d161f378bc9..567855ce26e 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpN.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpN.java
@@ -34,7 +34,7 @@ public abstract class OpN extends OpBase
protected OpN(List x) { elements = x ; }
/** Accumulate an op in the OpN.
- * This exists to help building OpN in teh first place.
+ * This exists to help building OpN in the first place.
* Once built, an OpN, like any Op should be treated as immutable
* with no calls change the sub ops contents.
* No calls to .add.
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpProcedure.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpProcedure.java
index 12a0465f02a..bab14c5f833 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpProcedure.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpProcedure.java
@@ -31,7 +31,7 @@
* Syntax (ARQ extension): CALL (?x, ?y+3)
*
* See also the similar algebra form for property functions. The difference is in argument handling.
- * A property function has a URI and two argment lists, one for subject, one for objects.
+ * A property function has a URI and two argument lists, one for subject, one for objects.
* A procedure is a URI and a list of arguments. */
public class OpProcedure extends Op1
{
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpQuadPattern.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpQuadPattern.java
index ee9c15780e1..f8b3311a55b 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpQuadPattern.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/op/OpQuadPattern.java
@@ -32,7 +32,7 @@
/** The main Op used in converting SPARQL algebra to quad form.
* OpQuadPattern reflects the fact that quads come in per-GRAPH units.
* {@link OpQuadBlock} is for a general containers of quads
- * without any contract on the quads sharing the same garph node.
+ * without any contract on the quads sharing the same graph node.
*/
public class OpQuadPattern extends Op0
{
@@ -78,7 +78,7 @@ public QuadPattern getPattern()
public BasicPattern getBasicPattern() { return triples ; }
public boolean isEmpty() { return triples.size() == 0 ; }
- /** Is this quad pattern referring to the default graph by quad transformation or explict naming? */
+ /** Is this quad pattern referring to the default graph by quad transformation or explicit naming? */
public boolean isDefaultGraph() { return Quad.isDefaultGraph(graphNode) ; }
/** Is this quad pattern explicitly naming the union graph? */
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/Optimize.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/Optimize.java
index 8b6b6fe5b69..dd3524e1228 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/Optimize.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/Optimize.java
@@ -89,7 +89,7 @@ static private Rewrite decideOptimizer(Context context) {
return f.create(context) ;
}
- /** Globably set the factory for making optimizers */
+ /** Globally set the factory for making optimizers */
public static void setFactory(RewriteFactory aFactory)
{ factory = aFactory ; }
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/TransformPathFlatternStd.java b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/TransformPathFlatternStd.java
index ebfe3517220..07109ecaada 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/TransformPathFlatternStd.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/algebra/optimize/TransformPathFlatternStd.java
@@ -37,7 +37,7 @@
import org.apache.jena.sparql.path.* ;
/** The path transformation step exactly as per the SPARQL 1.1 spec.
- * i.e. joins triples rather creatign BGPs.
+ * i.e. joins triples rather creating BGPs.
* It does not produce very nice execution structures so ARQ uses
* a functional equivalent, but different, transformation.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/BasicPattern.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/BasicPattern.java
index 6196e7568f3..04df9cbb053 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/BasicPattern.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/BasicPattern.java
@@ -53,7 +53,7 @@ private BasicPattern(List triples) {
}
/**
- * Wrap a list of triples up as a BasicPattern. Chnaging the list, changes the
+ * Wrap a list of triples up as a BasicPattern. Changing the list, changes the
* BasicPattern
*/
public static BasicPattern wrap(List triples) {
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 313af4d1335..9892d476e66 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
@@ -43,7 +43,7 @@ public interface DatasetGraph extends Transactional, Closeable
public Graph getDefaultGraph() ;
/** 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.
+ * 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,
*/
public Graph getGraph(Node graphNode) ;
@@ -58,8 +58,8 @@ public interface DatasetGraph extends Transactional, Closeable
/**
* 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.
+ * not defined - see the specific implementation. Some datasets are "open" -
+ * they have all graphs even if no triples and this returns true always.
*
* @param graphNode
* @return boolean
@@ -151,10 +151,10 @@ public interface DatasetGraph extends Transactional, Closeable
public void close() ;
/**
- * A {@code DatasetGraph} supports tranactions if it provides {@link #begin}/
+ * A {@code DatasetGraph} supports transactions if it provides {@link #begin}/
* {@link #commit}/{@link #end}. There core storage {@code DatasetGraph} that
* provide fully serialized transactions. {@code DatasetGraph} that provide
- * functionality acorss independent systems can not provide such strong guarantees.
+ * functionality across independent systems can not provide such strong guarantees.
* For example, they may use MRSW locking and some isolation control.
* Specifically, they do not necessarily provide {@link #abort}.
*
{@link DatasetGraphInMemory} provides full transactions for an in-memory {@code DatasetGraph}.
*
{@link DatasetGraphTriplesQuads} that adds mutating quad operations.
*
{@link DatasetGraphMap} provides for operations working over a collection of in-memory graphs.
- *
{@link DatasetGraphMapLink} provides for operations working over a collection of graphs provived by the application.
+ *
{@link DatasetGraphMapLink} provides for operations working over a collection of graphs provided by the application.
*
{@link DatasetGraphCollection} that provides for operations working over a collection of graphs.
*
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphFactory.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphFactory.java
index 68e680f62d1..18060fc4250 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/DatasetGraphFactory.java
@@ -94,7 +94,7 @@ public static DatasetGraph create() {
public static DatasetGraph createMem() { return createGeneral() ; }
/** Create a DatasetGraph based on an existing one;
- * this is a structure copy of the dataset struture
+ * this is a structure copy of the dataset structure
* but graphs are shared
* @deprecated Use {@link #cloneStructure}
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
index 2a656d4ffc1..09ed4a3345b 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Prologue.java
@@ -205,7 +205,7 @@ public String shortForm(String uri)
return prefixMap.shortForm(uri) ;
}
- /** Test whether a Prologue wil perform the same as this one. */
+ /** Test whether a Prologue will perform the same as this one. */
public boolean samePrologue(Prologue other) {
// Prologue are mutable and superclasses so .equals is left as the default.
String base1 = explicitlySetBaseURI() ? getBaseURI() : null ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
index e8fde57803f..dbe6c50e123 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
@@ -123,7 +123,7 @@ public static boolean isUnionGraph(Node node)
}
- /** Default, concrete graph via generated URI (not explciitly named) */
+ /** Default, concrete graph via generated URI (not explicitly, named) */
public boolean isDefaultGraphExplicit()
{ return isDefaultGraphExplicit(getGraph()) ; }
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Transactional.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Transactional.java
index 91809aff00c..e31b05c507b 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Transactional.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Transactional.java
@@ -20,10 +20,10 @@
import org.apache.jena.query.ReadWrite ;
-/** Interface that encapulsated begin/abort|commit/close.
- *
The read lifcycle is:
+/** Interface that encapsulated begin/abort|commit/close.
+ *
The read lifecycle is:
*
begin(READ) ... end()
- *
The write lifcycle is:
+ *
The write lifecycle is:
*
begin(WRITE) ... abort() or commit() [end()]
*
{@code end()} is optional, but encouraged; it performs checks and can be called multiple times.
*
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/TransactionalLock.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/TransactionalLock.java
index dde847828d1..5e84b165e9d 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/TransactionalLock.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/TransactionalLock.java
@@ -27,7 +27,7 @@
import org.apache.jena.shared.LockMutex ;
import org.apache.jena.sparql.JenaTransactionException ;
-/** An implementation of Tranactional that provides MRSW locking but no abort.
+/** An implementation of Transactional that provides MRSW locking but no abort.
* This is often the best you can do for a system that does not itself provide transactions.
* @apiNote
* To use with implementation inheritance, for when you don't inherit:
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/describe/DescribeHandler.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/describe/DescribeHandler.java
index cf1b729c7f1..0eb2d5c1187 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/describe/DescribeHandler.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/describe/DescribeHandler.java
@@ -45,7 +45,7 @@ public interface DescribeHandler
public void describe(Resource resource) ;
- /** Finish the description process for thsis query execution
+ /** Finish the description process for this query execution
*/
public void finish() ;
}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/QueryEngineFactory.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/QueryEngineFactory.java
index 178d97062aa..bc6d03fc858 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/QueryEngineFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/QueryEngineFactory.java
@@ -60,7 +60,7 @@ public interface QueryEngineFactory {
public boolean accept(Query query, DatasetGraph dataset, Context context);
/**
- * Call to create a {@link Plan} : the companion {@link #accept} wil have returned {@code true}.
+ * Call to create a {@link Plan} : the companion {@link #accept} will have returned {@code true}.
* @param query
* @param dataset
* @param inputBinding
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/Rename.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/Rename.java
index 8f9aae62591..a113af74d48 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/Rename.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/Rename.java
@@ -31,7 +31,7 @@
import org.apache.jena.sparql.graph.NodeTransform;
import org.apache.jena.sparql.graph.NodeTransformLib ;
-/** Support for renaming all the variables in an algebra expession
+/** Support for renaming all the variables in an algebra expression
* except for a fixed set to leave alone */
public class Rename
{
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetWrapper.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetWrapper.java
index 11292bb8ef1..5a7d05f080c 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetWrapper.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/ResultSetWrapper.java
@@ -20,10 +20,10 @@
import org.apache.jena.query.ResultSet ;
-/** @derpecated Use {@link org.apache.jena.sparql.resultset.ResultSetWrapper} */
+/** @deprecated Use {@link org.apache.jena.sparql.resultset.ResultSetWrapper} */
@Deprecated
public class ResultSetWrapper extends org.apache.jena.sparql.resultset.ResultSetWrapper {
public ResultSetWrapper(ResultSet rs) {
super(rs);
}
-}
\ No newline at end of file
+}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingHashMap.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingHashMap.java
index d5cdfda2231..6c507c6949e 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingHashMap.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingHashMap.java
@@ -28,7 +28,7 @@
import org.apache.jena.sparql.core.Var ;
import org.apache.jena.sparql.util.FmtUtils ;
-/** A muatable mapping from a name to a value such that we can create a tree of levels
+/** A mutable mapping from a name to a value such that we can create a tree of levels
* with higher (earlier levels) being shared.
* Looking up a name is done by looking in the current level,
* then trying the parent is not found. */
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingInputStream.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingInputStream.java
index 6bbc4a34ddd..7ab0bff77b4 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingInputStream.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingInputStream.java
@@ -90,7 +90,7 @@ static ParserProfile profile()
/** Create an RDF Tuples parser.
* No need to pass in a buffered InputStream; the code
- * will do it's own buffering.
+ * will do its own buffering.
*/
private BindingInputStream(Tokenizer tokenizer, ParserProfile profile)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingUtils.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingUtils.java
index 12942abcc3a..3bb7cd1d940 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingUtils.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/binding/BindingUtils.java
@@ -105,7 +105,7 @@ public static void materialize(Binding binding) {
}
/** Touch every var/value in case that makes the binding do retrieval work.
- * Use the given vars - does no matter if a variable is no tpresent in the binding. */
+ * Use the given vars - does no matter if a variable is not present in the binding. */
public static void materialize(List vars, Binding binding) {
vars.forEach(binding::get);
}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/Params.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/Params.java
index dce789a3af6..78ade9638b1 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/Params.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/http/Params.java
@@ -107,7 +107,7 @@ public List pairs()
public int count() { return paramList.size() ; }
- /** Get the names of parameters - one ocurrence */
+ /** Get the names of parameters - one occurrence */
public List names()
{
return paramList.stream().map(Pair::getName).distinct().collect(toList());
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterPlainWrapper.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterPlainWrapper.java
index cdfc7313f92..30c8dcb6646 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterPlainWrapper.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterPlainWrapper.java
@@ -43,7 +43,7 @@ public QueryIterPlainWrapper(Iterator iter, ExecutionContext context)
iterator = iter ;
}
- /** Preferrable to use a constructor - but sometimes that is inconvenient
+ /** Preferable to use a constructor - but sometimes that is inconvenient
* so pass null in the constructor and then call this before the iterator is
* used.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterSlice.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterSlice.java
index d6aec13c132..b3a2c248811 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterSlice.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/iterator/QueryIterSlice.java
@@ -37,7 +37,7 @@ public class QueryIterSlice extends QueryIter1
*
* @param cIter The closable iterator to throttle
* @param startPosition Offset of start after - 0 is the no-op.
- * @param numItems Maximium number of items to yield.
+ * @param numItems Maximum number of items to yield.
*/
public QueryIterSlice(QueryIterator cIter, long startPosition, long numItems, ExecutionContext context)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/AbstractIterHashJoin.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/AbstractIterHashJoin.java
index 730d7720f25..b40f180ea3a 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/AbstractIterHashJoin.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/AbstractIterHashJoin.java
@@ -213,7 +213,7 @@ private Binding doOneTail() {
/**
* Signal the end of the hash join.
- * Outer joins can now add any "no matche" results.
+ * Outer joins can now add any "no matched" results.
* @return QueryIterator or null
*/
protected abstract QueryIterator joinFinished() ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/Join.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/Join.java
index 3044a866a98..f3c626f2c24 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/Join.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/join/Join.java
@@ -159,7 +159,7 @@ public static QueryIterator hashLeftJoin(JoinKey joinKey, QueryIterator left, Qu
/** Very simple, materializing version - useful for debugging.
* Builds output early. Materializes left, streams right.
* Does not scale.
- * No cancelation, no stats.
+ * No cancellation, no stats.
*
* @see #nestedLoopJoin
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/QueryEngineMainQuad.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/QueryEngineMainQuad.java
index 95398bba31c..493dca7ff0a 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/QueryEngineMainQuad.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/QueryEngineMainQuad.java
@@ -28,7 +28,7 @@
import org.apache.jena.sparql.engine.binding.Binding ;
import org.apache.jena.sparql.util.Context ;
-/** Same as QueryEngineMain except tranform to quads */
+/** Same as QueryEngineMain except transform to quads */
public class QueryEngineMainQuad extends QueryEngineMain
{
public QueryEngineMainQuad(Op op, DatasetGraph dataset, Binding input, Context context)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageBuilder.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageBuilder.java
index 1a1ec450596..c733fc91371 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageBuilder.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageBuilder.java
@@ -30,7 +30,7 @@
* evaluation of a basic graph pattern (BGP). Matching BGPs is an extension
* point of SPARQL; different entailment regimes plug in at this point.
* They are also an extension point in ARQ to connect to any datasource,
- * the most common case being connectinbg to a Jena graph.
+ * the most common case being connecting to a Jena graph.
*
* The StageBuilder finds the registered StageGenerator, and calls it to
* evaluate a basic graph pattern that has any bound variables
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageGenerator.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageGenerator.java
index 01294ee6211..ef15f73308c 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageGenerator.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/main/StageGenerator.java
@@ -23,11 +23,11 @@
import org.apache.jena.sparql.engine.QueryIterator ;
/** Interface for execution of a basic graph pattern.
- * A StageGenerator is registred in the context of an query
+ * A StageGenerator is registered in the context of an query
* execution to be found and called by the StageBuilder.
*
* The StageGenerator is called repeated for a basic graph pattern
- * with each possible bindings unsed to instantiate variables
+ * with each possible bindings unused to instantiate variables
* where possible.
*
* Each call of a stage generator returns a QueryIterator
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/StatsMatcher.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/StatsMatcher.java
index b1baacbe044..06e0c6842dc 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/StatsMatcher.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/StatsMatcher.java
@@ -306,7 +306,7 @@ public double match(PatternTriple pTriple)
}
/** Return the matching weight for the first triple match found,
- * else apply default value for fixed, unknnown predciate,
+ * else apply default value for fixed, unknown predicate,
* else return NOMATCH
*/
public double match(Item subj, Item pred, Item obj)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderFixedAlt.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderFixedAlt.java
index f1fcb7c557a..a2428dd362e 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderFixedAlt.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderFixedAlt.java
@@ -27,8 +27,8 @@
/**
* Alternative fixed reorder function. This corresponds to the algorithm prior
- * to Jena 2.11.2. It is susceptable to picking bad orders when there are lots
- * of non-characterstic (non-selective) rdf:type triples.
+ * to Jena 2.11.2. It is susceptible to picking bad orders when there are lots
+ * of non-characteristic (non-selective) rdf:type triples.
*
* The default "ReorderFixed" is better in most cases because it avoids
* "? rdf:type T" which can be very unselective. Being data independent, that is
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderTransformationSubstitution.java b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderTransformationSubstitution.java
index 9dc6c65525e..decf1cdf7ab 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderTransformationSubstitution.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/engine/optimizer/reorder/ReorderTransformationSubstitution.java
@@ -223,8 +223,8 @@ protected enum DefaultChoice { ZERO, LAST, FIRST , NUMERIC ; }
/** What to do if the {@link weight} comes back as "not found".
* Choices are:
* ZERO Assume the weight is zero (the rules were complete over the data so this is a pattern that will not match the data.
- * LAST Place after all explciitly weighted triple patterns
- * FIRST Place before all explciitly weighted triple patterns
+ * LAST Place after all explicitly weighted triple patterns
+ * FIRST Place before all explicitly weighted triple patterns
* NUMERIC Use value returned by {@link defaultWeight}
* The default, default choice is LAST.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/Expr.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/Expr.java
index cb02efef24b..2646d3889ac 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/Expr.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/Expr.java
@@ -40,7 +40,7 @@ public interface Expr
public static final int CMP_INDETERMINATE = DatatypeConstants.INDETERMINATE ;
/** Test whether a Constraint is satisfied, given a set of bindings
- * Includes error propagtion and Effective Boolean Value rules.
+ * Includes error propagation and Effective Boolean Value rules.
*
* @param binding The bindings
* @param execCxt FunctionEnv
@@ -95,7 +95,7 @@ public interface Expr
/** NodeValue constant (returns null if not a constant) */
public NodeValue getConstant() ;
- /** Answer wether this is a function. */
+ /** Answer whether this is a function. */
public boolean isFunction() ;
/** Get the function (returns null if not a function) */
public ExprFunction getFunction() ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprLib.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprLib.java
index d582f91ff4a..6c67e1ba8c2 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprLib.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprLib.java
@@ -82,7 +82,7 @@ private static NodeValue evalOrElse(Expr expr, Binding binding, FunctionEnv func
}
/** Attempt to fold any sub-expressions of the Expr.
- * Return an expression that is euqivalent to the argument but maybe simpler.
+ * Return an expression that is equivalent to the argument but maybe simpler.
* @param expr
* @return Expression
*/
@@ -110,7 +110,7 @@ public Expr transform(ExprAggregator eAgg)
{ return eAgg.getAggVar() ; }
} ;
- /** Decide whether an expression is safe for using a a graph substitution.
+ /** Decide whether an expression is safe for using a graph substitution.
* Need to be careful about value-like tests when the graph is not
* matched in a value fashion.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprList.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprList.java
index 6410b7609cb..9e60e2cb017 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprList.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/ExprList.java
@@ -33,7 +33,7 @@ public class ExprList implements Iterable
/** Create a copy which does not share the list of expressions with the original */
public static ExprList copy(ExprList other) { return new ExprList(other) ; }
- /** Create an ExprList that contaisn the expressions */
+ /** Create an ExprList that contains the expressions */
public static ExprList create(Collection exprs) {
ExprList exprList = new ExprList() ;
exprs.forEach(exprList::add) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java
index fc6e606aeb7..ece4fe72e72 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/NodeValue.java
@@ -630,7 +630,7 @@ public static boolean notSameAs(NodeValue nv1, NodeValue nv2)
*
* @param nv1
* @param nv2
- * @return negative, 0, or postive for less than, equal, greater than.
+ * @return negative, 0, or positive for less than, equal, greater than.
*/
public static int compareAlways(NodeValue nv1, NodeValue nv2)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/RegexEngine.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/RegexEngine.java
index 5204f10cc84..a890f503777 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/RegexEngine.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/RegexEngine.java
@@ -18,7 +18,7 @@
package org.apache.jena.sparql.expr;
-/** Interface to abstract away from specific regular expression systsms
+/** Interface to abstract away from specific regular expression systems
* (Apache Xerces and java.util.regex) */
public interface RegexEngine
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorExpr.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorExpr.java
index 43a68446966..35a9e815d51 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorExpr.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorExpr.java
@@ -84,7 +84,7 @@ public NodeValue getValue() {
/** Called if no errors to get the accumulated result */
protected abstract NodeValue getAccValue() ;
- /** Called when the expression beeing aggregated evaluates OK.
+ /** Called when the expression being aggregated evaluates OK.
* Can throw ExprEvalException - in which case the accumulateError is called */
protected abstract void accumulate(NodeValue nv, Binding binding, FunctionEnv functionEnv) ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorFactory.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorFactory.java
index a9b9438bfc6..36bbf28eae6 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorFactory.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AccumulatorFactory.java
@@ -18,7 +18,7 @@
package org.apache.jena.sparql.expr.aggregate;
-/** Fatory to create accumulators. An Accumulator is
+/** Factory to create accumulators. An Accumulator is
* processor for one group key for one execution.
*/
public interface AccumulatorFactory {
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AggregatorBase.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AggregatorBase.java
index d1cf07c95f2..289039bbf40 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AggregatorBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/AggregatorBase.java
@@ -94,8 +94,8 @@ public final Aggregator copyTransform(NodeTransform transform)
return copy(e) ;
}
- /** Many aggergate use a single expression.
- * This convebnience operation gets the expression if there is exactly one.
+ /** Many aggregate use a single expression.
+ * This convenience operation gets the expression if there is exactly one.
*/
protected Expr getExpr() {
if ( exprList != null && exprList.size() == 1 )
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/Args.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/Args.java
index 4a4d5db4234..dad10f03588 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/Args.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/aggregate/Args.java
@@ -21,7 +21,7 @@
import org.apache.jena.sparql.expr.ExprList ;
/** An Args is an ExprList with a flag for DISTINCT.
- * Only used for rule ArgList in the SPARQl grammar.
+ * Only used for rule ArgList in the SPARQL grammar.
*/
public class Args extends ExprList {
public boolean distinct = false ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
index 8aff09c190a..33c82fb4c5c 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeFunctions.java
@@ -66,7 +66,7 @@ public static Node checkAndGetStringLiteral(String label, NodeValue nv) {
}
/**
- * Check for string operations with primary first arg and second second arg
+ * Check for string operations with primary first arg and second arg
* (e.g. CONTAINS). The arguments are not used in the same way and the check
* operation is not symmetric.
*
"abc"@en is compatible with "abc"
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeValueOps.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeValueOps.java
index 370ee7fec39..81b1614a10f 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeValueOps.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/nodevalue/NodeValueOps.java
@@ -40,7 +40,7 @@
import org.apache.jena.sparql.expr.ValueSpaceClassification ;
import org.apache.jena.sparql.util.NodeFactoryExtra ;
-/** The code parts of arithmetic opperations on Nodevlaues.
+/** The code parts of arithmetic operations on Nodevalues.
*/
public class NodeValueOps
{
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/function/CastXSD.java b/jena-arq/src/main/java/org/apache/jena/sparql/function/CastXSD.java
index d5c8103e3bd..8919334b297 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/function/CastXSD.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/function/CastXSD.java
@@ -77,7 +77,7 @@ private static boolean isDurationDatatype(XSDDatatype datatype) {
}
/** Cast a NodeValue to an XSD datatype.
- * This includes "by value" so 1e0 (an xsd:double) casts to 1 (an xsd:intger)
+ * This includes "by value" so 1e0 (an xsd:double) casts to 1 (an xsd:integer)
* @param nv
* @param castType
* @return NodeValue
@@ -313,4 +313,4 @@ private static String doubleToDecimalString(double d) {
lex = lex.substring(0, lex.length()-1) ;
return lex ;
}
-}
\ No newline at end of file
+}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/lang/ParserBase.java b/jena-arq/src/main/java/org/apache/jena/sparql/lang/ParserBase.java
index 075d6b12a9a..3a4eedddbff 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/lang/ParserBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/lang/ParserBase.java
@@ -222,7 +222,7 @@ protected static String stripQuotes3(String s) {
return s.substring(3, s.length() - 3) ;
}
- /** remove the first n charcacters from the string */
+ /** remove the first n characters from the string */
public static String stripChars(String s, int n) {
return s.substring(n, s.length()) ;
}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/modify/UpdateEngineRegistry.java b/jena-arq/src/main/java/org/apache/jena/sparql/modify/UpdateEngineRegistry.java
index 07478982479..91364471196 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/modify/UpdateEngineRegistry.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/modify/UpdateEngineRegistry.java
@@ -57,7 +57,7 @@ public static UpdateEngineFactory findFactory(DatasetGraph graphStore, Context c
/** Locate a suitable factory for this dataset
*
* @param graphStore A GraphStore
- * @return A UpdateProcessorFactroy or null if none accept the request
+ * @return A UpdateProcessorFactory or null if none accept the request
*/
public UpdateEngineFactory find(DatasetGraph graphStore, Context context)
{
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/path/P_Multi.java b/jena-arq/src/main/java/org/apache/jena/sparql/path/P_Multi.java
index 4f1ec46c7a2..86e16871633 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/path/P_Multi.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/path/P_Multi.java
@@ -20,7 +20,7 @@
import org.apache.jena.sparql.util.NodeIsomorphismMap;
-/** A path element that, on evalution, switches to multi-cardinality semantics. */
+/** A path element that, on evaluation, switches to multi-cardinality semantics. */
public class P_Multi extends P_Path1 {
public P_Multi(Path p) {
super(p);
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/pfunction/library/ListBase.java b/jena-arq/src/main/java/org/apache/jena/sparql/pfunction/library/ListBase.java
index 7d5b4bebf7c..6fe842fe48d 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/pfunction/library/ListBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/pfunction/library/ListBase.java
@@ -35,7 +35,7 @@
import org.apache.jena.sparql.pfunction.PropertyFunctionEval ;
import org.apache.jena.sparql.util.graph.GraphList ;
-/** Base class for list realted operations */
+/** Base class for list related operations */
public abstract class ListBase extends PropertyFunctionEval
{
private PropFuncArgType objFuncArgType ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/resultset/RDFInput.java b/jena-arq/src/main/java/org/apache/jena/sparql/resultset/RDFInput.java
index 1832a063fe1..4af770870cf 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/resultset/RDFInput.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/resultset/RDFInput.java
@@ -168,7 +168,7 @@ private Binding buildBinding(Resource soln) {
}
/**
- * Turns an RDF model, with properties and classses from the result set
+ * Turns an RDF model, with properties and classes from the result set
* vocabulary, into a SPARQL result set. The result set formed is a copy in
* memory.
*
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/resultset/ResultSetCompare.java b/jena-arq/src/main/java/org/apache/jena/sparql/resultset/ResultSetCompare.java
index eb3c32903a6..60d33902403 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/resultset/ResultSetCompare.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/resultset/ResultSetCompare.java
@@ -32,7 +32,7 @@
import org.apache.jena.sparql.util.NodeUtils.EqualityTest ;
/** Comparison of ResultSets.
- * Note that reading ResultSets is destructive so consiuder using {@link ResultSetRewindable}
+ * Note that reading ResultSets is destructive so consider using {@link ResultSetRewindable}
* from {@link ResultSetFactory#makeRewindable}
*/
@@ -78,7 +78,7 @@ public class ResultSetCompare
// This code does not do compare/isomorphism combined with value testing.
// It drops to graph isomorphism, which is term based.
- /** Compare two result sets for equivalence. Equivalance means:
+ /** Compare two result sets for equivalence. Equivalence means:
* A row rs1 has one matching row in rs2, and vice versa.
* A row is only matched once.
* Rows match if they have the same variables with the same values.
@@ -113,7 +113,7 @@ public static boolean equalsByTest(Collection b1, Collection b
}
- /** compare two result sets for equivalence. Equivalance means:
+ /** compare two result sets for equivalence. Equivalence means:
* A row rs1 has one matching row in rs2, and vice versa.
* A row is only matched once.
* Rows match if they have the same variables with the same values,
@@ -142,7 +142,7 @@ public static boolean equalsByTerm(ResultSet rs1, ResultSet rs2) {
}
- /** Compare two result sets for equivalence. Equivalance means:
+ /** Compare two result sets for equivalence. Equivalence means:
* Each row in rs1 matches the same index row in rs2.
* Rows match if they have the same variables with the same values,
* bNodes must map to a consistent other bNodes.
@@ -160,7 +160,7 @@ public static boolean equalsByValueAndOrder(ResultSet rs1, ResultSet rs2) {
return equivalentByOrder(convert(rs1) , convert(rs2), new BNodeIso(NodeUtils.sameValue)) ;
}
- /** compare two result sets for equivalence. Equivalance means:
+ /** compare two result sets for equivalence. Equivalence means:
* Each row in rs1 matchs the same index row in rs2.
* Rows match if they have the same variables with the same values,
* bNodes must map to a consistent other bNodes.
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/sse/builders/BuilderGraph.java b/jena-arq/src/main/java/org/apache/jena/sparql/sse/builders/BuilderGraph.java
index 4962359ada1..53cf358a9d8 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/sse/builders/BuilderGraph.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/sse/builders/BuilderGraph.java
@@ -89,7 +89,7 @@ public static Graph buildGraph(Graph graph, ItemList list) {
* (graph IRIa ...))
* (graph IRIb ...))
* )
- * (graph ...) is an abbrevaition for a dataset with a default graph and no named graphs.
+ * (graph ...) is an abbreviation for a dataset with a default graph and no named graphs.
*/
public static DatasetGraph buildDataset(Item item)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerForm.java b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerForm.java
index 9e32ce584bd..af6f5908e37 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerForm.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerForm.java
@@ -24,7 +24,7 @@
import org.apache.jena.sparql.sse.Item ;
import org.apache.jena.sparql.sse.ItemList ;
-/** Resolve syntacic forms like (base ...) and (prefix...)
+/** Resolve syntactic forms like (base ...) and (prefix...)
* where the syntax modifies the enclosed sub term.
*
*
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerResolver.java b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerResolver.java
index ff6848bee07..5250a0ed3df 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerResolver.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerResolver.java
@@ -29,7 +29,7 @@
import org.apache.jena.sparql.sse.ItemList ;
import org.apache.jena.sparql.sse.builders.BuilderPrefixMapping ;
-/** Resolve syntacic forms like (base ...) and (prefix...)
+/** Resolve syntactic forms like (base ...) and (prefix...)
* where the syntax modifies the enclosed sub term.
*
*
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerWrapper.java b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerWrapper.java
index a07398a0aa6..3e95d1a6b47 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerWrapper.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/sse/lang/ParseHandlerWrapper.java
@@ -20,7 +20,7 @@
import org.apache.jena.sparql.sse.Item ;
-/** Warpper parser handler with pass-through for all operations.
+/** Wrapper parser handler with pass-through for all operations.
* Calls both, first one first. */
public class ParseHandlerWrapper implements ParseHandler
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/sse/writers/WriterBasePrefix.java b/jena-arq/src/main/java/org/apache/jena/sparql/sse/writers/WriterBasePrefix.java
index 891774b26af..09e32e127df 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/sse/writers/WriterBasePrefix.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/sse/writers/WriterBasePrefix.java
@@ -36,7 +36,7 @@ public class WriterBasePrefix
public static interface Fmt { void format() ; }
//public static Fmt fmt = new Fmt(){ public void format() {}} ;
- /** Output, write the thing with formater fmt */
+ /** Output, write the thing with formatter fmt */
public static void output(IndentedWriter iWriter, Fmt fmt, Prologue prologue)
{
boolean printBase = false ;
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/RecursiveElementVisitor.java b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/RecursiveElementVisitor.java
index ceefa28d9b8..ebdccd82b0f 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/RecursiveElementVisitor.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/RecursiveElementVisitor.java
@@ -22,7 +22,7 @@
/**
Visitor pattern helper that walks the entire tree calling operations
* are various points in the walking process. It is a depth first traversal.
*
- *
Every visit operation is bracketted by a start/end pair makeing the
+ *
Every visit operation is bracketted by a start/end pair making the
* calling points:
*
*
start of element
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformCopyBase.java b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformCopyBase.java
index ea481491e7f..6c618d01ed5 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformCopyBase.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformCopyBase.java
@@ -26,7 +26,7 @@
import org.apache.jena.sparql.expr.Expr ;
import org.apache.jena.sparql.syntax.* ;
-/** Create a copy if the Element(s) below has chanaged.
+/** Create a copy if the Element(s) below has changed.
* This is a common base class for writing recursive {@link ElementTransform}
* in conjunction with being applied by {@link ElementTransformer}.
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformSubst.java b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformSubst.java
index 8707f931265..868b04cb86c 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformSubst.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/ElementTransformSubst.java
@@ -30,7 +30,7 @@
import org.apache.jena.sparql.syntax.ElementPathBlock ;
import org.apache.jena.sparql.syntax.ElementTriplesBlock ;
-/** An {@link ElementTransform} which replaces occurences of a variable with a Node value.
+/** An {@link ElementTransform} which replaces occurrences of a variable with a Node value.
* Because a {@link Var} is a subclass of {@link Node_Variable} which is a {@link Node},
* this includes variable renaming.
*
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/QueryTransformOps.java b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/QueryTransformOps.java
index a034904b313..8c7b71283d5 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/QueryTransformOps.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/syntax/syntaxtransform/QueryTransformOps.java
@@ -64,7 +64,7 @@ public static Query transformQuery(Query query, Map s
}
/** Transform a query using {@link ElementTransform} and {@link ExprTransform}.
- * It is the responsibility of these transforms to transofmr to a legal SPARQL query.
+ * It is the responsibility of these transforms to transform to a legal SPARQL query.
*/
public static Query transform(Query query, ElementTransform transform, ExprTransform exprTransform) {
Query q2 = QueryTransformOps.shallowCopy(query);
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/Context.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/Context.java
index 20ae076538c..97f47b1e08b 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/Context.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/Context.java
@@ -169,7 +169,7 @@ public String getAsString(Symbol property) {
return x.toString() ;
}
- /** Get the value as a a long value. The context entry can be a string, Integer or Long. */
+ /** Get the value as a long value. The context entry can be a string, Integer or Long. */
public int getInt(Symbol symbol, int defaultValue) {
if ( isUndef(symbol) )
return defaultValue ;
@@ -183,7 +183,7 @@ public int getInt(Symbol symbol, int defaultValue) {
}
}
- /** Get the value as a a long value. The context entry can be a string, Integer or Long. */
+ /** Get the value as a long value. The context entry can be a string, Integer or Long. */
public long getLong(Symbol symbol, long defaultValue) {
if ( isUndef(symbol) )
return defaultValue ;
@@ -210,12 +210,12 @@ public void putAll(Context other) {
// -- true/false
- /** Set propety value to be true */
+ /** Set property value to be true */
public void setTrue(Symbol property) {
set(property, Boolean.TRUE) ;
}
- /** Set propety value to be false */
+ /** Set property value to be false */
public void setFalse(Symbol property) {
set(property, Boolean.FALSE) ;
}
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/LabelToNodeMap.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/LabelToNodeMap.java
index ce8526287bc..1856b3df06c 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/LabelToNodeMap.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/LabelToNodeMap.java
@@ -41,7 +41,7 @@ public class LabelToNodeMap
boolean generateVars = false ;
VarAlloc allocator = null ;
- /** Create blank nodes, with the same blank node returned for thre same label.
+ /** Create blank nodes, with the same blank node returned for the same label.
*
* @return LabelToNodeMap
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/NodeUtils.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/NodeUtils.java
index d5809055162..978cda146b9 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/NodeUtils.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/NodeUtils.java
@@ -181,7 +181,7 @@ public static int compareRDFTerms(Node node1, Node node2) {
}
/** Compare literals by kind - not by value.
- * Gives a determinitics, stable, arbitrary ordering between unrelated literals.
+ * Gives a deterministic, stable, arbitrary ordering between unrelated literals.
*
* Ordering:
*
@@ -191,7 +191,7 @@ public static int compareRDFTerms(Node node1, Node node2) {
*
RDF 1.0 : simple literal < literal by lang < literal with type
*
RDF 1.1 : xsd:string < rdf:langString < other dataypes.
* This is the closest to SPARQL 1.1: treat xsd:string as a simple literal
- *
Lang by sorting on language tag (first case insensistive then case sensitive)
+ *
Lang by sorting on language tag (first case insensitive then case sensitive)
*
Datatypes by URI
*
*/
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/QueryExecUtils.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/QueryExecUtils.java
index d0ee56ce99a..995dbbb73be 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/QueryExecUtils.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/QueryExecUtils.java
@@ -338,7 +338,7 @@ public static RDFNode getExactlyOne(QueryExecution qExec, String varname) {
/**
* Execute, expecting the result to be one row, one column. Return that one
- * RDFNode or null Throw excpetion if more than one.
+ * RDFNode or null Throw exception if more than one.
*/
public static RDFNode getOne(QueryExecution qExec, String varname) {
try {
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/graph/GraphUtils.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/graph/GraphUtils.java
index 31fdb8dbbc1..719fe217987 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/graph/GraphUtils.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/graph/GraphUtils.java
@@ -50,7 +50,7 @@ public static Iterator triples2quadsDftGraph(Iterator iter) {
return triples2quads(Quad.defaultGraphIRI, iter) ;
}
- /** Convert an iterator of triples into quads for the specificed graph name. */
+ /** Convert an iterator of triples into quads for the specified graph name. */
public static Iter triples2quads(final Node graphNode, Iterator iter) {
return Iter.iter(iter).map(t -> new Quad(graphNode, t)) ;
}
diff --git a/jena-arq/src/main/java/org/apache/jena/system/TxnCounter.java b/jena-arq/src/main/java/org/apache/jena/system/TxnCounter.java
index 4f5d554f4a9..6e93dcdf94a 100644
--- a/jena-arq/src/main/java/org/apache/jena/system/TxnCounter.java
+++ b/jena-arq/src/main/java/org/apache/jena/system/TxnCounter.java
@@ -211,7 +211,7 @@ public long value() {
// This is a potential memory leak.
// Use "isInTransaction" to read and clear.
- /** Is this a write transaction? Shoudl be called inside a transaction. */
+ /** Is this a write transaction? Should be called inside a transaction. */
private boolean isWriteTxn() {
ReadWrite rw = txnMode.get() ;
if ( rw == null )
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java b/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
index cb71faf7867..dbe114e9c7d 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/BlockUTF8.java
@@ -138,7 +138,7 @@ else if ( (x & 0xF0) == 0xE0 )
}
else if ( (x & 0xF8) == 0xF0 )
{
- // Looking like 4 byte charcater.
+ // Looking like 4 byte character.
// 11110zzz => 4 bytes.
int ch = readMultiBytes(bb, x & 0x08, 4) ;
char chars[] = Character.toChars(ch) ;
@@ -251,7 +251,7 @@ private static int readMultiBytes(ByteBuffer input, int start, int len)
return x ;
}
- /** Put bytes to the output ByteBuffer for charcater ch.
+ /** Put bytes to the output ByteBuffer for character ch.
* The first byte is in x1 and already has the needed bits set.
*/
private static void outputBytes(ByteBuffer bb, int x1, int byteLength, int ch)
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/CharStream.java b/jena-base/src/main/java/org/apache/jena/atlas/io/CharStream.java
index f0668430de8..6f21bd3b189 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/CharStream.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/CharStream.java
@@ -19,7 +19,7 @@
package org.apache.jena.atlas.io;
-/** A simplifed reader interface without IOExceptions.
+/** A simplified reader interface without IOExceptions.
* And it's an interface, not an abstract class
*/
public interface CharStream
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java b/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
index 5abc63a779e..c263edd38d2 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
@@ -262,7 +262,7 @@ private void padInternal() {
/** Get row/line (counts from 1) */
public int getRow() { return row ; }
/** Get the absolute column.
- * This is the location where the next charcter on the line will be printed.
+ * This is the location where the next character on the line will be printed.
* The IndentedWriter may not yet have padded to this place.
*/
public int getCol() {
@@ -366,7 +366,7 @@ private void lineStart() {
public int getNumberWidth() { return widthLineNumber ; }
/** Set the width of the number field.
- * There is also a singel space after the number not included in this setting.
+ * There is also a single space after the number not included in this setting.
*/
public void setNumberWidth(int widthOfNumbers) { widthLineNumber = widthOfNumbers ; }
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/iterator/Iter.java b/jena-base/src/main/java/org/apache/jena/atlas/iterator/Iter.java
index 0daf9f3bd63..c72fbac3a8d 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/iterator/Iter.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/iterator/Iter.java
@@ -279,7 +279,7 @@ public void remove() {
}
/** Transform a list of elements to a new list of the function applied to each element.
- * Using a stream is often better. This operation preseves the order of the list.
+ * Using a stream is often better. This operation preserves the order of the list.
* @deprecated Use Java8 Streams
*/
@Deprecated
@@ -332,7 +332,7 @@ public static Iterator append(Iterator extends T> iter1, Iterator ext
}
/** Return an iterator that will see each element of the underlying iterator only once.
- * Note that this need working memory to remember the elements alreadey seen.
+ * Note that this need working memory to remember the elements already seen.
*/
public static Iterator distinct(Iterator iter) {
return filter(iter, new FilterUnique()) ;
@@ -381,7 +381,7 @@ public static Iterator takeUntil(Iterator iter, Predicate predicate
/** Create an iterator such that elements from the front while
* a predicate test become true are dropped then return all remaining elements
* are iterated over.
- * The first element where the predicte becomes true is the first element of the
+ * The first element where the predicted becomes true is the first element of the
* returned iterator.
*/
public static Iterator dropWhile(Iterator iter, Predicate predicate) {
@@ -816,7 +816,7 @@ public Iter takeUntil(Predicate predicate) {
/** Create an {@code Iter} such that elements from the front while
* a predicate test become true are dropped then return all remaining elements
* are iterated over.
- * The first element where the predicte becomes true is the first element of the
+ * The first element where the predicted becomes true is the first element of the
* returned iterator.
*/
public Iter dropWhile(Predicate predicate) {
@@ -849,7 +849,7 @@ public String asString(String sep) {
}
/** Return an {:@code Iter} that will see each element of the underlying iterator only once.
- * Note that this need working memory to remember the elements alreadey seen.
+ * Note that this need working memory to remember the elements already seen.
*/
public Iter distinct() {
return iter((distinct(iterator))) ;
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithBuffer.java b/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithBuffer.java
index 7af9ac84988..87160666edf 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithBuffer.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithBuffer.java
@@ -86,11 +86,11 @@ public void remove() {
}
/**
- * Look at elements that will be returned by a subsequnet call of .next().
+ * Look at elements that will be returned by a subsequent call of .next().
* The next element is index 0, then index 1 etc. This operation is valid
* immediately after the constructor returns. Returns null for no such
- * element (underlying iterator didn't yeild enough elements). Throws
- * IndexOutOfBoundsException if an attempt i smade to go beyond the
+ * element (underlying iterator didn't yield enough elements). Throws
+ * IndexOutOfBoundsException if an attempt is made to go beyond the
* buffering window.
*/
public T peek(int idx) {
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithHistory.java b/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithHistory.java
index b5b800a8ce4..e423639b58d 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithHistory.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/iterator/IteratorWithHistory.java
@@ -88,7 +88,7 @@ public T getPrevious(int idx) {
}
/**
- * Return the current size of the histiory. This can be used to tell the
+ * Return the current size of the history. This can be used to tell the
* difference between an iterator returning null and an iterator that is
* just short.
*/
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/iterator/NullIterator.java b/jena-base/src/main/java/org/apache/jena/atlas/iterator/NullIterator.java
index ff2b2f1ce20..d1b9fb67459 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/iterator/NullIterator.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/iterator/NullIterator.java
@@ -21,7 +21,7 @@
import java.util.Iterator ;
import java.util.NoSuchElementException ;
-/** Null Iterator - also guaranteed sharable and immutable */
+/** Null Iterator - also guaranteed shareable and immutable */
public class NullIterator implements Iterator, Iterable
{
@Override
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsInt.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsInt.java
index 1e112a0650c..2e31132e93e 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsInt.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsInt.java
@@ -80,7 +80,7 @@ int unpack(String str, int startChar, int finishChar)
return Integer.parseInt(s, 16) ;
}
- /** Set the bits specificied.
+ /** Set the bits specified.
*
* @param bits Pattern
* @param bitIndex
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsLong.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsLong.java
index d555fb787b6..7e9fa8c381e 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsLong.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/BitsLong.java
@@ -83,7 +83,7 @@ long unpack(String str, int startChar, int finishChar)
return Long.parseLong(s, 16) ;
}
- /** Set the bits specificied.
+ /** Set the bits specified.
*
* @param bits Pattern
* @param bitIndex
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/Cache.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/Cache.java
index 69d6544072c..af251734cf8 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/Cache.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/Cache.java
@@ -43,7 +43,7 @@ public interface Cache
/** Remove from cache - return true if key referenced an entry */
public void remove(Key key) ;
- /** Iterate over all keys. Iteratering over the keys requires the caller be thread-safe. */
+ /** Iterate over all keys. Iterating over the keys requires the caller be thread-safe. */
public Iterator keys() ;
public boolean isEmpty() ;
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/ProgressMonitor.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/ProgressMonitor.java
index 8a6d484d2a2..f142be257e8 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/ProgressMonitor.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/ProgressMonitor.java
@@ -58,7 +58,7 @@ public static ProgressMonitor create(Logger log, String label, long tickPoint, i
/**
* @param label
* Label added to output strings.
- * Usually related to the kind of things bening monitored.
+ * Usually related to the kind of things being monitored.
* e.g "tuples
* @param tickPoint
* Frequent of output messages
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
index e69da44e64c..cc2d29891e4 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/PropertyUtils.java
@@ -127,7 +127,7 @@ public void checkOrSetProperty(Properties properties, String key, String expecte
inconsistent(properties, key, x, expected) ;
}
- /** Check property has the vakue given - throw exception if not. */
+ /** Check property has the value given - throw exception if not. */
public void checkMetadata(Properties properties, String key, String expected) {
String value = properties.getProperty(key) ;
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/Timer.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/Timer.java
index 304e086dc41..d7727c9a814 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/Timer.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/Timer.java
@@ -38,7 +38,7 @@ public void startTimer() {
inTimer = true ;
}
- /** Return time in millisecods */
+ /** Return time in milliseconds */
public long endTimer() {
if ( !inTimer )
throw new AtlasException("Not in timer") ;
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java
index 9a4fae1c4c9..bf0a9bcf179 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheInfo.java
@@ -20,7 +20,7 @@
import org.apache.jena.ext.com.google.common.cache.CacheStats ;
-/** Simplified version of Guava's CacheStats (and abstractign away from Guava cache implementation) */
+/** Simplified version of Guava's CacheStats (and abstracting away from Guava cache implementation) */
public class CacheInfo {
public final long requests;
public final long hits;
@@ -45,4 +45,4 @@ public String toString() {
return String.format("size=%,d count=%,d hits=%,d misses=%,d rate=%.1f",
cacheSize, requests, hits, misses, hitRate) ;
}
-}
\ No newline at end of file
+}
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/TupleMap.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/TupleMap.java
index 87bfca5fd11..59a0a8ab198 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/TupleMap.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/tuple/TupleMap.java
@@ -116,7 +116,7 @@ public static TupleMap create(String label, T[] input, T[] output) {
* Construct a mapping - the elements are the mappings of a tuple
* originally in the order 0,1,2,... so SPO->POS is 2,0,1 (SPO->POS so S->2,
* P->0, O->1) and not 1,2,0 (which is the extraction mapping). The label is
- * just a label and is not interpretted here.
+ * just a label and is not interpreted here.
*/
private TupleMap(String label, int... elements) {
this.len = elements.length ;
@@ -316,7 +316,7 @@ public T unmapSlot(int idx, T[] tuple) {
return tuple[putSlotIdx(idx)] ;
}
- /** Compile a mapping encoded as single charcaters e.g. "SPO", "POS" */
+ /** Compile a mapping encoded as single characters e.g. "SPO", "POS" */
private static int[] compileMapping(String domain, String range) {
List input = StrUtils.toCharList(domain);
List output = StrUtils.toCharList(range);
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/logging/FmtLog.java b/jena-base/src/main/java/org/apache/jena/atlas/logging/FmtLog.java
index 590c49e021c..929f7c3b698 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/logging/FmtLog.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/logging/FmtLog.java
@@ -30,7 +30,7 @@
* required by level setting.
*
* An odd effect is order of the arguments - vararg arguments must be last
- * so the order is Logger/Thorwable?/Format/args.
+ * so the order is Logger/Throwable?/Format/args.
*
* Also support: Class object instead of logger to help ad hoc usage.
*/
diff --git a/jena-cmds/src/main/java/arq/query.java b/jena-cmds/src/main/java/arq/query.java
index f7041e9d035..ceaa761d768 100644
--- a/jena-cmds/src/main/java/arq/query.java
+++ b/jena-cmds/src/main/java/arq/query.java
@@ -167,7 +167,7 @@ protected void exec()
protected String getSummary() { return getCommandName()+" --data= --query=" ; }
/** Choose the dataset.
- *
use the data as described on the comand line
+ *
use the data as described on the command line
*
else use FROM/FROM NAMED if present (pass null to ARQ)
*
else provided an empty dataset and hope the query has VALUES/BIND
*/
diff --git a/jena-cmds/src/main/java/jena/cmd/Invoke.java b/jena-cmds/src/main/java/jena/cmd/Invoke.java
index df27ec28838..33d10c69522 100644
--- a/jena-cmds/src/main/java/jena/cmd/Invoke.java
+++ b/jena-cmds/src/main/java/jena/cmd/Invoke.java
@@ -22,7 +22,7 @@
import java.lang.reflect.Method ;
/** Helper code to invoke a main method buy reflection
- * This means coomand can be invoked from this module even
+ * This means command can be invoked from this module even
* if their implementation resides in a module later
* in the build sequence.
*/
diff --git a/jena-cmds/src/main/java/jena/cmd/TerminationException.java b/jena-cmds/src/main/java/jena/cmd/TerminationException.java
index 090fa486a8a..defdac3408a 100644
--- a/jena-cmds/src/main/java/jena/cmd/TerminationException.java
+++ b/jena-cmds/src/main/java/jena/cmd/TerminationException.java
@@ -21,7 +21,7 @@
/** Exception used to indicate that the command should end now.
* Use instead of System.exit so that a wrapper can catch (else a command server
- * wil exit wrongly). */
+ * will exit wrongly). */
public class TerminationException extends CmdException
{
diff --git a/jena-cmds/src/main/java/jena/rdfcat.java b/jena-cmds/src/main/java/jena/rdfcat.java
index c292d45d46b..706767d5cb8 100644
--- a/jena-cmds/src/main/java/jena/rdfcat.java
+++ b/jena-cmds/src/main/java/jena/rdfcat.java
@@ -45,7 +45,7 @@
* An RDF utility that takes its name from the Unix utility cat, and
* is used to generate serialisations of the contents of zero or more
* input model serialisations. Note In a change from previous
- * versions, but to ensure compatability with standard argument handling
+ * versions, but to ensure compatibility with standard argument handling
* practice, the input language options are no longer sticky. In
* previous versions, rdfcat -n A B C would ensure that A, B
* and C were all read as N3. From Jena 2.5.2 onwards, this requires:
diff --git a/jena-core/src/main/java/org/apache/jena/assembler/exceptions/CannotLoadClassException.java b/jena-core/src/main/java/org/apache/jena/assembler/exceptions/CannotLoadClassException.java
index 5eb791add23..11803b9beda 100644
--- a/jena-core/src/main/java/org/apache/jena/assembler/exceptions/CannotLoadClassException.java
+++ b/jena-core/src/main/java/org/apache/jena/assembler/exceptions/CannotLoadClassException.java
@@ -21,7 +21,7 @@
import org.apache.jena.rdf.model.Resource ;
/**
- Exception used to report a faulire to load a class.
+ Exception used to report a failure to load a class.
*/
public class CannotLoadClassException extends AssemblerException
{
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/BaseDatatype.java b/jena-core/src/main/java/org/apache/jena/datatypes/BaseDatatype.java
index 20393d06037..98dbdcc7e54 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/BaseDatatype.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/BaseDatatype.java
@@ -117,7 +117,7 @@ public boolean isValid(String lexicalForm) {
/**
* Test whether the given LiteralLabel is a valid instance
- * of this datatype. This takes into accound typing information
+ * of this datatype. This takes into account typing information
* as well as lexical form - for example an xsd:string is
* never considered valid as an xsd:integer (even if it is
* lexically legal like "1").
@@ -155,7 +155,7 @@ protected static boolean isEqualPlain(LiteralLabel litLabel1, LiteralLabel litLa
/**
- * Equality for datatypes based solely on lexcial form,
+ * Equality for datatypes based solely on lexical form,
* i.e. there value space is equivalent to their lexical space.
*/
protected static boolean isEqualByTerm(LiteralLabel value1, LiteralLabel value2) {
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/RDFDatatype.java b/jena-core/src/main/java/org/apache/jena/datatypes/RDFDatatype.java
index 71c31e8830f..403986948ab 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/RDFDatatype.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/RDFDatatype.java
@@ -76,13 +76,13 @@ public interface RDFDatatype {
/**
Gets the hash code of a given value. This defaults to
- lit.getValue().hashCode(), but datatypes can overide this, and array types
+ lit.getValue().hashCode(), but datatypes can override this, and array types
must.
*/
public int getHashCode( LiteralLabel lit );
/**
- * If this datatype is used as the cannonical representation
+ * If this datatype is used as the canonical representation
* for a particular java datatype then return that java type,
* otherwise returns null.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/TypeMapper.java b/jena-core/src/main/java/org/apache/jena/datatypes/TypeMapper.java
index fcc776a7216..c5058896c8a 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/TypeMapper.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/TypeMapper.java
@@ -136,7 +136,7 @@ public RDFDatatype getSafeTypeByName(final String uri) {
}
/**
- * Lookup a known datatype. An unkown datatype or a datatype with uri null
+ * Lookup a known datatype. An unknown datatype or a datatype with uri null
* will return null will mean that the value will be treated as a old-style plain literal.
*
* @param uri the URI of the desired datatype
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFLangString.java b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFLangString.java
index 5fb8ca3fae3..e40f36b396d 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFLangString.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFLangString.java
@@ -24,7 +24,7 @@
/** rdf:langString.
* This covers the unusual case of "foo"^^rdf:langString
- * When there is a language tag, there is a lexcial form but it is in two parts lex@lang
+ * When there is a language tag, there is a lexical form but it is in two parts lex@lang
* This is not rdf:plainLiteral!
*/
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFhtml.java b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFhtml.java
index 98964165aaa..94f4a985ed9 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFhtml.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/RDFhtml.java
@@ -23,7 +23,7 @@
import org.apache.jena.graph.impl.LiteralLabel ;
/** rdf:html.
- * This only implements syntacic equality, not value equality (parsed HTML5, DOM normalized)
+ * This only implements syntactic equality, not value equality (parsed HTML5, DOM normalized)
*/
public class RDFhtml extends BaseDatatype implements RDFDatatype {
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDDouble.java b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDDouble.java
index d09088c7e1a..bc4af955dc0 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDDouble.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDDouble.java
@@ -98,7 +98,7 @@ public String unparse(Object value) {
/**
* Parse a validated lexical form. Subclasses which use the default
- * parse implementation and are not convered by the explicit convertValidatedData
+ * parse implementation and are not converted by the explicit convertValidatedData
* cases should override this.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDFloat.java b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDFloat.java
index 39ca1bd1f9f..9c7e0a88a08 100644
--- a/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDFloat.java
+++ b/jena-core/src/main/java/org/apache/jena/datatypes/xsd/impl/XSDFloat.java
@@ -97,7 +97,7 @@ public String unparse(Object value) {
/**
* Parse a validated lexical form. Subclasses which use the default
- * parse implementation and are not convered by the explicit convertValidatedData
+ * parse implementation and are not converted by the explicit convertValidatedData
* cases should override this.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/enhanced/EnhGraph.java b/jena-core/src/main/java/org/apache/jena/enhanced/EnhGraph.java
index fe265be5fb2..6e28ce8f28f 100644
--- a/jena-core/src/main/java/org/apache/jena/enhanced/EnhGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/enhanced/EnhGraph.java
@@ -67,7 +67,7 @@ public Graph asGraph() {
}
/**
- * Hashcode for an enhnaced graph is delegated to the underlyin graph.
+ * Hashcode for an enhanced graph is delegated to the underlying graph.
* @return The hashcode as an int
*/
@Override final public int hashCode() {
@@ -79,7 +79,7 @@ public Graph asGraph() {
* are equal.
* This is deemed to be a complete and correct interpretation of enhanced
* graph equality, which is why this method has been marked final.
- *
Note that this equality test does not look for correspondance between
+ *
Note that this equality test does not look for correspondence between
* the structures in the two graphs. To test whether another graph has the
* same nodes and edges as this one, use {@link #isIsomorphicWith}.
*
diff --git a/jena-core/src/main/java/org/apache/jena/enhanced/Personality.java b/jena-core/src/main/java/org/apache/jena/enhanced/Personality.java
index fda667b2d98..a8abbe559e8 100644
--- a/jena-core/src/main/java/org/apache/jena/enhanced/Personality.java
+++ b/jena-core/src/main/java/org/apache/jena/enhanced/Personality.java
@@ -67,14 +67,14 @@ public Personality copy()
{ return new Personality<>( this ); }
/**
- get the implemementation for the specified type, returning null if there
+ get the implementation for the specified type, returning null if there
isn't one available.
*/
public Implementation getImplementation( Class t )
{ return types.get( t ); }
/**
- extend this personality by adding in all the mappins from the argument _p_.
+ extend this personality by adding in all the mappings from the argument _p_.
return _this_ (for call chaining).
*/
public Personality add( Personality p ) {
diff --git a/jena-core/src/main/java/org/apache/jena/graph/GraphEventManager.java b/jena-core/src/main/java/org/apache/jena/graph/GraphEventManager.java
index 87ce8dc967d..91e70557059 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/GraphEventManager.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/GraphEventManager.java
@@ -22,7 +22,7 @@
/**
The component of a graph responsible for managing events and listeners.
- The interface extends GraphListener because most of the notificiations are
+ The interface extends GraphListener because most of the notifications are
the same; the special case to note is that an event manager expects to be
handed iterator events as lists, not as iterators.
diff --git a/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java b/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java
index 725796d7ebc..f04fae8df15 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java
@@ -39,7 +39,7 @@ public class GraphUtil
private GraphUtil()
{}
- /** Return an iterator over the unique subjects with predciate p and object o.
+ /** Return an iterator over the unique subjects with predicate p and object o.
* p and o can be wildcards (Node.ANY)
* @param g Graph
* @param p Predicate - may be Node.ANY
@@ -79,7 +79,7 @@ public static ExtendedIterator listObjects(Graph g, Node s, Node p) {
return WrappedIterator.createNoRemove(nodes.iterator()) ;
}
- /** Does the graph use the node anywhere as a subject, predciate or object? */
+ /** Does the graph use the node anywhere as a subject, predicate or object? */
public static boolean containsNode(Graph graph, Node node) {
return
graph.contains(node, Node.ANY, Node.ANY) ||
diff --git a/jena-core/src/main/java/org/apache/jena/graph/NodeFactory.java b/jena-core/src/main/java/org/apache/jena/graph/NodeFactory.java
index ce4a09e8117..566d3ca4b27 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/NodeFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/NodeFactory.java
@@ -173,7 +173,7 @@ public static Node createLiteral(String lex, RDFDatatype dtype) throws DatatypeF
/** Create a Node based on the value
* If the value is a string we
- * assume this is inteded to be a lexical form after all.
+ * assume this is intended to be a lexical form after all.
* @param value
* The value, mapped according to registered types.
* @param dtype
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java b/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
index 476ffb331e3..0c547e778a6 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_Literal.java
@@ -92,7 +92,7 @@ public boolean equals( Object other )
/**
* Test that two nodes are semantically equivalent.
- * In some cases this may be the sames as equals, in others
+ * In some cases this may be the same as equals, in others
* equals is stricter. For example, two xsd:int literals with
* the same value but different language tag are semantically
* equivalent but distinguished by the java equality function
diff --git a/jena-core/src/main/java/org/apache/jena/graph/Node_NULL.java b/jena-core/src/main/java/org/apache/jena/graph/Node_NULL.java
index b47fa825d64..eefd1aaad79 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/Node_NULL.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/Node_NULL.java
@@ -20,7 +20,7 @@
/**
The Highlander Node_NULL exists for the database code (as a Node that
- coresponds to a null in database tables for the reification code).
+ corresponds to a null in database tables for the reification code).
*/
@Deprecated
diff --git a/jena-core/src/main/java/org/apache/jena/graph/TransactionHandler.java b/jena-core/src/main/java/org/apache/jena/graph/TransactionHandler.java
index 18503335ac0..e81a96234d1 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/TransactionHandler.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/TransactionHandler.java
@@ -36,21 +36,21 @@ public interface TransactionHandler
boolean transactionsSupported();
/**
- If transactions are supported, begin a new transaction. If tranactions are
- not supported, or they are but this tranaction is nested and nested transactions
+ If transactions are supported, begin a new transaction. If transactions are
+ not supported, or they are but this transaction is nested and nested transactions
are not supported, throw an UnsupportedOperationException.
*/
void begin();
/**
- If transactions are supported and there is a tranaction in progress, abort
+ If transactions are supported and there is a transaction in progress, abort
it. If transactions are not supported, or there is no transaction in progress,
throw an UnsupportedOperationException.
*/
void abort();
/**
- If transactions are supported and there is a tranaction in progress, commit
+ If transactions are supported and there is a transaction in progress, commit
it. If transactions are not supported, , or there is no transaction in progress,
throw an UnsupportedOperationException.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/graph/impl/GraphMatcher.java b/jena-core/src/main/java/org/apache/jena/graph/impl/GraphMatcher.java
index 55c9f85461d..b4e1062b163 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/impl/GraphMatcher.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/impl/GraphMatcher.java
@@ -29,7 +29,7 @@
// Purely syntactic: Uses .equals, not .sameVAlueAs (see the one note at "PURE SYNTAX" below and "containsSameTerm")
/**
- * An implemantation of graph isomorphism for Graph equality.
+ * An implementation of graph isomorphism for Graph equality.
* The underlying algorithm is exponential but will only enter
* a non-deterministic polynomial part when there are a lot of difficult to
* distinguish anonymous nodes
diff --git a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelFactory.java b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelFactory.java
index fbfc5222a64..142afb167a0 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelFactory.java
@@ -45,7 +45,7 @@ private static RDFDatatype fixDatatype(RDFDatatype dtype, String lang) {
return dtype ;
}
- /** Create a literal with a dataype. */
+ /** Create a literal with a dtype. */
public static LiteralLabel create( String lex, RDFDatatype dtype) {
return new LiteralLabelImpl( lex, "", dtype );
}
@@ -71,7 +71,7 @@ public static LiteralLabel create(String lex, String lang) {
/**
* Build a typed literal label from its value form. If the value is a string we
- * assume this is inteded to be a lexical form after all.
+ * assume this is intended to be a lexical form after all.
*
* @param value the value of the literal
* @param lang the optional language tag, only relevant for plain literals
@@ -90,7 +90,7 @@ public static LiteralLabel create(Object value) {
/**
* Build a typed literal label from its value form using
- * whatever datatype is currently registered as the the default
+ * whatever datatype is currently registered as the default
* representation for this java class. No language tag is supplied.
* A plain string becomes an xsd:string.
* @param value the literal value to encapsulate
diff --git a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
index 4b8b7826f72..bc5423c45c5 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/impl/LiteralLabelImpl.java
@@ -115,7 +115,7 @@ private void setLiteralLabel_1(String lex, String lang, RDFDatatype dtype)
/**
* Build a typed literal label from its value form. If the value is a string we
- * assume this is inteded to be a lexical form after all.
+ * assume this is intended to be a lexical form after all.
*
* @param value the value of the literal
* @param lang the optional language tag, only relevant for plain literals
@@ -127,7 +127,7 @@ private void setLiteralLabel_1(String lex, String lang, RDFDatatype dtype)
/**
* Build a typed literal label from its value form using
- * whatever datatype is currently registered as the the default
+ * whatever datatype is currently registered as the default
* representation for this java class. No language tag is supplied.
* @param value the literal value to encapsulate
*/
diff --git a/jena-core/src/main/java/org/apache/jena/mem/BunchMap.java b/jena-core/src/main/java/org/apache/jena/mem/BunchMap.java
index f184be823b1..4ca90581ae2 100644
--- a/jena-core/src/main/java/org/apache/jena/mem/BunchMap.java
+++ b/jena-core/src/main/java/org/apache/jena/mem/BunchMap.java
@@ -54,7 +54,7 @@ public interface BunchMap
/**
Get the key and return the value found there; if nothing,
- cacluate the value and insert. Return the value now the slot.
+ calculate the value and insert. Return the value now the slot.
*/
public TripleBunch getOrSet( Object key, Function
*
- * Note: This is is a change from the behaviour of Jena 1, which took a
+ * Note: This is a change from the behaviour of Jena 1, which took a
* parameter closed to compute the closure over transitivity and equivalence
* of sub-classes. The closure capability in Jena2 is determined by the inference engine
* that is wrapped with the ontology model. The direct parameter is provided to allow,
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/Ontology.java b/jena-core/src/main/java/org/apache/jena/ontology/Ontology.java
index 297925dd2e0..d36977e11c0 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/Ontology.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/Ontology.java
@@ -215,7 +215,7 @@ public interface Ontology
public void addIncompatibleWith( Resource res );
/**
- *
Answer a resource that represents an ontology that is is incompatible with this ontology. If there is
+ *
Answer a resource that represents an ontology that is incompatible with this ontology. If there is
* more than one such resource, an arbitrary selection is made.
* @return An {@link OntResource} representing an ontology that this ontology is incompatible with
* @exception ProfileException If the {@link Profile#INCOMPATIBLE_WITH} property is not supported in the current language profile.
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/AllDifferentImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/AllDifferentImpl.java
index d72e5d767ac..88580296894 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/AllDifferentImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/AllDifferentImpl.java
@@ -154,7 +154,7 @@ public ExtendedIterator extends OntResource> listDistinctMembers() {
/**
*
Answer true if this AllDifferent declaration includes res as one of the distinct individuals.
* @param res A resource to test against
- * @return True if res is declared to be distinct from the other individuals in this declation.
+ * @return True if res is declared to be distinct from the other individuals in this declaration.
* @exception ProfileException If the {@link Profile#DISTINCT_MEMBERS()} property is not supported in the current language profile.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/DataRangeImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/DataRangeImpl.java
index 557e73c7389..2c7825ffe1f 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/DataRangeImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/DataRangeImpl.java
@@ -123,7 +123,7 @@ public void addOneOf( Literal lit ) {
}
/**
- *
Add each literal from the given iteratation to the
+ *
Add each literal from the given iteration to the
* enumeration that defines the permissible values of this datarange.
* @param literals An iterator over literals
* @exception ProfileException If the {@link Profile#ONE_OF()} property is not supported in the current language profile.
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntClassImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntClassImpl.java
index f9ef9116cd6..6712804148b 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntClassImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntClassImpl.java
@@ -351,7 +351,7 @@ public ExtendedIterator listSubClasses() {
* since this can be inferred from the closure of the graph.
*
*
- * Note: This is is a change from the behaviour of Jena 1, which took a
+ * Note: This is a change from the behaviour of Jena 1, which took a
* parameter closed to compute the closure over transitivity and equivalence
* of sub-classes. The closure capability in Jena2 is determined by the inference engine
* that is wrapped with the ontology model. The direct parameter is provided to allow,
@@ -917,7 +917,7 @@ public ComplementClass convertToComplementClass( Resource cls ) {
}
/**
- *
Answer a view of this class as an resriction on the given property.
+ *
Answer a view of this class as an restriction on the given property.
* @param prop A property this is the subject of a property restriction class expression
* @return This ontology class, converted to a restriction on the given property
*/
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntModelImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntModelImpl.java
index 0aac74ae946..1416801fb16 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntModelImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntModelImpl.java
@@ -1850,7 +1850,7 @@ public DataRange createDataRange( RDFList literals ) {
*
* Answer a new, anonymous node representing the fact that a given set of classes are all
* pair-wise distinct. AllDifferent is a feature of OWL only, and is something
- * of an anomoly in that it exists only to give a place to anchor the distinctMembers
+ * of an anomaly in that it exists only to give a place to anchor the distinctMembers
* property, which is the actual expression of the fact.
*
*
@@ -1866,7 +1866,7 @@ public AllDifferent createAllDifferent() {
*
* Answer a new, anonymous node representing the fact that a given set of classes are all
* pair-wise distinct. AllDifferent is a feature of OWL only, and is something
- * of an anomoly in that it exists only to give a place to anchor the distinctMembers
+ * of an anomaly in that it exists only to give a place to anchor the distinctMembers
* property, which is the actual expression of the fact.
*
* @param differentMembers A list of the class expressions that denote a set of mutually disjoint classes
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntPropertyImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntPropertyImpl.java
index be1cd370fcd..dae65745d16 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntPropertyImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntPropertyImpl.java
@@ -747,7 +747,7 @@ public boolean isSymmetricProperty() {
/**
*
Answer the property that is the inverse of this property. If no such property is defined,
- * return null. If more than one inverse is defined, return an abritrary selection.
+ * return null. If more than one inverse is defined, return an arbitrary selection.
* @return The property that is the inverse of this property, or null.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntologyImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntologyImpl.java
index f8485ff32bd..6320994bf46 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/OntologyImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/OntologyImpl.java
@@ -109,7 +109,7 @@ public void setImport( Resource res ) {
/**
*
Add a resource representing an ontology that this ontology
- * (strictly, the ontology reprsented by this node) imports.
+ * (strictly, the ontology represented by this node) imports.
* @param res Represents a resource that this ontology imports.
* @exception ProfileException If the {@link Profile#IMPORTS()} property is not supported in the current language profile.
*/
@@ -131,7 +131,7 @@ public OntResource getImport() {
/**
*
Answer an iterator over all of the resources representing ontologies imported by this ontology.
- * Each elemeent of the iterator will be an {@link OntResource}.
+ * Each element of the iterator will be an {@link OntResource}.
* @return An iterator over the ontology import resources
* @exception ProfileException If the {@link Profile#IMPORTS()} property is not supported in the current language profile.
*/
@@ -177,7 +177,7 @@ public void setBackwardCompatibleWith( Resource res ) {
/**
*
Add a resource representing an ontology that this ontology
- * (strictly, the ontology reprsented by this node) is backwards compatible with.
+ * (strictly, the ontology represented by this node) is backwards compatible with.
* @param res Represents a resource that this ontology is compatible with.
* @exception ProfileException If the {@link Profile#BACKWARD_COMPATIBLE_WITH} property is not supported in the current language profile.
*/
@@ -247,7 +247,7 @@ public void setPriorVersion( Resource res ) {
/**
*
Add a resource representing an ontology that this ontology
- * (strictly, the ontology reprsented by this node) supercedes.
+ * (strictly, the ontology represented by this node) supercedes.
* @param res Represents a resource that this ontology supercedes.
* @exception ProfileException If the {@link Profile#PRIOR_VERSION} property is not supported in the current language profile.
*/
@@ -316,7 +316,7 @@ public void setIncompatibleWith( Resource res ) {
/**
*
Add a resource representing an ontology that this ontology
- * (strictly, the ontology reprsented by this node) is incompatible with.
+ * (strictly, the ontology represented by this node) is incompatible with.
* @param res Represents a resource that this ontology is incompatible with.
* @exception ProfileException If the {@link Profile#INCOMPATIBLE_WITH} property is not supported in the current language profile.
*/
@@ -326,7 +326,7 @@ public void addIncompatibleWith( Resource res ) {
}
/**
- *
Answer a resource that represents an ontology that is is incompatible with this ontology. If there is
+ *
Answer a resource that represents an ontology that is incompatible with this ontology. If there is
* more than one such resource, an arbitrary selection is made.
* @return An ont resource representing an ontology that this ontology is incompatible with
* @exception ProfileException If the {@link Profile#INCOMPATIBLE_WITH} property is not supported in the current language profile.
diff --git a/jena-core/src/main/java/org/apache/jena/ontology/impl/QualifiedRestrictionImpl.java b/jena-core/src/main/java/org/apache/jena/ontology/impl/QualifiedRestrictionImpl.java
index 158598aa5d6..fffaf9c2e35 100644
--- a/jena-core/src/main/java/org/apache/jena/ontology/impl/QualifiedRestrictionImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/ontology/impl/QualifiedRestrictionImpl.java
@@ -113,7 +113,7 @@ public void setHasClassQ( OntClass cls ) {
}
/**
- *
Answer the class or datarnage to which all values of the restricted property belong.
+ *
Answer the class or datarange to which all values of the restricted property belong.
* @return The ontology class of the restricted property values
* @exception ProfileException If the {@link Profile#HAS_CLASS_Q()} property is not supported in the current language profile.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Alt.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Alt.java
index f815af6d740..13284a2c4ba 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Alt.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Alt.java
@@ -29,7 +29,7 @@
*
*
When a member is deleted from an Alternative using this interface, or an
* iterator returned through this interface, all the other members with
- * higher ordinals are renumbered using an implementation dependendent
+ * higher ordinals are renumbered using an implementation dependent
* algorithm.
*
*
This interface provides methods supporting typed literals. This means
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Bag.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Bag.java
index 40ac0ad562f..fe21b520e4e 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Bag.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Bag.java
@@ -23,7 +23,7 @@
*
This interface defines methods for accessing RDF Bag resources.
* These methods operate on the RDF statements contained in a model. The
* Bag implementation may cache state from the underlying model, so
- * objects should not be added to or removed a the Bag by directly
+ * objects should not be added to or removed to/from the Bag by directly
* manipulating its properties, whilst the Bag is being
* accessed through this interface.
*
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Container.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Container.java
index af9f85ddb8b..910e7e626dc 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Container.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Container.java
@@ -229,7 +229,7 @@ public interface Container extends Resource {
/** Return an iterator over the values.
*
- *
Note the interator returned is not a standard java.util.iterator.
+ *
Note the iterator returned is not a standard java.util.iterator.
* It has a close method which SHOULD be called if the
* application has not completed the iteration, but no longer requires
* the iterator. This will enable the freeing of resources in, for
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
index bb6422e5b86..70276cb8c8c 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Literal.java
@@ -32,8 +32,8 @@
* value returned. If the coercion fails then a runtime DatatypeFormatException is
* thrown.
*
- *
In the case of plain literals then the primitve accessor methods duplicate
- * the behvaiour of jena1. The literal is internally stored in lexical form but
+ *
In the case of plain literals then the primitive accessor methods duplicate
+ * the behaviour of jena1. The literal is internally stored in lexical form but
* the accessor methods such as getInt will attempt to parse the lexical form
* and if successful will return the primitive value.
*
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Model.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Model.java
index 27a36ea0168..470b5f22fef 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Model.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Model.java
@@ -510,7 +510,7 @@ update interface (which means turning them into triples in one form or
public Model write( Writer writer ) ;
/**
- *
Write a serialized represention of a model in a specified language.
+ *
Write a serialized representation of a model in a specified language.
* It is often better to use an OutputStream rather than a Writer, since this
* will avoid character encoding errors.
*
@@ -525,7 +525,7 @@ update interface (which means turning them into triples in one form or
public Model write( Writer writer, String lang ) ;
/**
- *
Write a serialized represention of a model in a specified language.
+ *
Write a serialized representation of a model in a specified language.
* It is often better to use an OutputStream rather than a Writer,
* since this will avoid character encoding errors.
*
@@ -555,7 +555,7 @@ update interface (which means turning them into triples in one form or
public Model write(OutputStream out) ;
/**
- *
Write a serialized represention of this model in a specified language.
+ *
Write a serialized representation of this model in a specified language.
*
*
The language in which to write the model is specified by the
* lang argument. Predefined values are "RDF/XML",
@@ -568,7 +568,7 @@ update interface (which means turning them into triples in one form or
public Model write( OutputStream out, String lang ) ;
/**
- *
Write a serialized represention of a model in a specified language.
+ *
Write a serialized representation of a model in a specified language.
*
*
The language in which to write the model is specified by the
* lang argument. Predefined values are "RDF/XML",
@@ -638,7 +638,7 @@ update interface (which means turning them into triples in one form or
/**
An alias for listResourcesWithProperty(Property),
- retained for backward compatability. It may be deprecated in later
+ retained for backward compatibility. It may be deprecated in later
releases.
*/
ResIterator listSubjectsWithProperty( Property p );
@@ -652,7 +652,7 @@ update interface (which means turning them into triples in one form or
/**
An alias for listResourcesWithProperty, retained for
- backward compatability. It may be deprecated in later releases.
+ backward compatibility. It may be deprecated in later releases.
*/
ResIterator listSubjectsWithProperty( Property p, RDFNode o );
@@ -704,7 +704,7 @@ update interface (which means turning them into triples in one form or
* to represent a wildcard match.
* @return true if the statement with subject s, property p and object o
* is in the model, false otherwise
- * @param s The subject of the statment tested (null as wildcard).
+ * @param s The subject of the statement tested (null as wildcard).
* @param p The predicate of the statement tested (null as wildcard).
* @param o The object of the statement tested (null as wildcard).
@@ -789,7 +789,7 @@ Remove all reifications (ie implicit reification quads) of _s_.
/** List the statements matching a selector.
*
- *
A statment is considered to match if the test method
+ *
A statement is considered to match if the test method
* of s returns true when called on s.
* @return an iterator over the matching statements
* @param s A selector object.
@@ -839,7 +839,7 @@ Remove all reifications (ie implicit reification quads) of _s_.
/** Create a new model containing the statements matching a query.
*
- *
A statment is considered to match if the test method
+ *
A statement is considered to match if the test method
* of s returns true when called on s.
* @return an iterator over the matching statements
* @param s A selector object.
@@ -899,7 +899,7 @@ Remove all reifications (ie implicit reification quads) of _s_.
@Override
public boolean equals(Object m);
- /** Begin a new transation.
+ /** Begin a new transaction.
*
*
All changes made to a model within a transaction, will either
* be made, or none of them will be made.
@@ -973,7 +973,7 @@ Remove all reifications (ie implicit reification quads) of _s_.
*
Special treatment is given to anonymous nodes. A binding is a one to
* one mapping which maps each anonymous node in this model to
* an anonymous node in model. Two statements s1 and s2 match
- * under a binding if if s1.subject is anonymous and s2.subject is anonymous
+ * under a binding if s1.subject is anonymous and s2.subject is anonymous
* and the binding maps s1.subject to s2.subject.
*
*
Two models are isomorphic if there is a binding that allows all the
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/ModelChangedListener.java b/jena-core/src/main/java/org/apache/jena/rdf/model/ModelChangedListener.java
index 08a89a6cf83..b8bf74d573c 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/ModelChangedListener.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/ModelChangedListener.java
@@ -86,7 +86,7 @@ public interface ModelChangedListener
/**
Method to call when a list of statements has been deleted from the attached
model. NOTE. This list need not be == to the list added using
- Model::remov(List).
+ Model::remove(List).
@param statements the list of statements that have been removed.
*/
void removedStatements( List statements );
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/ModelFactory.java b/jena-core/src/main/java/org/apache/jena/rdf/model/ModelFactory.java
index 6c0bac523ec..3ff131f2cc5 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/ModelFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/ModelFactory.java
@@ -104,7 +104,7 @@ public static Set findAssemblerRoots( Model m )
{ return AssemblerHelp.findAssemblerRoots( m ); }
/**
- Answer a Model as described the the Assembler specification rooted
+ Answer a Model as described the Assembler specification rooted
at the Resource root in its Model. Resource
must be of rdf:type ja:Object, where ja
is the prefix of Jena Assembler objects.
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/NodeIterator.java b/jena-core/src/main/java/org/apache/jena/rdf/model/NodeIterator.java
index a4c94c01950..e57a125d266 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/NodeIterator.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/NodeIterator.java
@@ -27,7 +27,7 @@
*
RDF iterators are standard Java iterators, except that they
* have an extra method that returns specifically typed objects,
* in this case RDF nodes, and have a close() method.
- * thatshould be called to free resources if the application does
+ * that should be called to free resources if the application does
* not complete the iteration.
*/
public interface NodeIterator extends ExtendedIterator
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFNode.java b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFNode.java
index 51138284928..9a36053f1d6 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFNode.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFNode.java
@@ -36,7 +36,7 @@ public interface RDFNode extends FrontsNode
public String toString();
/**
- Answer true iff this RDFNode is an anonynous resource. Useful for
+ Answer true iff this RDFNode is an anonymous resource. Useful for
one-off tests: see also visitWith() for making literal/anon/URI choices.
*/
public boolean isAnon();
@@ -54,7 +54,7 @@ public interface RDFNode extends FrontsNode
public boolean isURIResource();
/**
- Answer true iff this RDFNode is a URI resource or an anonynous
+ Answer true iff this RDFNode is a URI resource or an anonymous
resource (ie is not a literal). Useful for one-off tests: see also
visitWith() for making literal/anon/URI choices.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFReader.java b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFReader.java
index fe7afd7602d..4eaff5c04d7 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFReader.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFReader.java
@@ -21,7 +21,7 @@
import java.io.Reader;
import java.io.InputStream;
-/** An RDFReader reads a serialized represenation of RDF,
+/** An RDFReader reads a serialized representation of RDF,
* e.g. RDF/XML, n-triple or n3 and adds the statements to a model.
*/
public interface RDFReader {
@@ -70,7 +70,7 @@ public interface RDFReader {
* properties can be changed by calling this method.
*
*
No standard properties are defined. For the properties recognised
- * by any particular reader implementation, see the the documentation for
+ * by any particular reader implementation, see the documentation for
* that implementation.
*
The built-in RDFReaders have properties as defined by:
*
System wide defaults for classes to use as readers for these languages
- *are defined. These defaults may be overwridden by setting a system property
+ *are defined. These defaults may be overridden by setting a system property
*with a name of the form org.apache.jena.readers. to the class
*name.
*
NOTE: All settings are global in nature
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriter.java b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriter.java
index 595d7396c5a..a88107231de 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriter.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriter.java
@@ -22,7 +22,7 @@
/** RDFWriter is an interface to RDF serializers.
*
*
An RDFWriter is a class which serializes an RDF model
- * to some RDF serializaion language. RDF/XML, n-triple and n3 are
+ * to some RDF serialization language. RDF/XML, n-triple and n3 are
* examples of serialization languages.
*/
public interface RDFWriter {
@@ -66,7 +66,7 @@ public interface RDFWriter {
* properties can be changed by calling this method.
*
*
No standard properties are defined. For the properties recognised
- * by any particular writer implementation, see the the documentation for
+ * by any particular writer implementation, see the documentation for
* that implementation.
*
* The built-in RDFWriters have properties as defined by:
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriterF.java b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriterF.java
index 45bc1bf9ea3..ad2b949d657 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriterF.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/RDFWriterF.java
@@ -18,7 +18,7 @@
package org.apache.jena.rdf.model;
-/** An RDFWriter factory inferface.
+/** An RDFWriter factory interface.
*
*
The factory will create an appropriate writer for the particular
* serialization language being read. Predefined languages include:
@@ -29,7 +29,7 @@
*
N3
*
*
System wide defaults for classes to use as readers for these languages
- *are defined. These defaults may be overwridden by setting a system property
+ *are defined. These defaults may be overridden by setting a system property
*with a name of the form org.apache.jena.readers. to the class
*name.
*
NOTE: All settings are global in nature
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Selector.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Selector.java
index 415c596fce4..82c7f0b58cb 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Selector.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Selector.java
@@ -34,7 +34,7 @@ public interface Selector extends Predicate {
Answer true iff this Selector is completely characterised by its subject,
predicate, and object fields. If so, the test predicate need
not be called to decide if a statement is acceptable. This allows query engines
- lattitude for optimisation (and our memory-based implementation both exploits
+ latitude for optimisation (and our memory-based implementation both exploits
this licence).
*/
boolean isSimple();
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/Seq.java b/jena-core/src/main/java/org/apache/jena/rdf/model/Seq.java
index e7792108403..429caeb7a1f 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/Seq.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/Seq.java
@@ -299,7 +299,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -312,7 +312,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -325,7 +325,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -338,7 +338,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -351,7 +351,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -364,7 +364,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -377,7 +377,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -390,7 +390,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
@@ -404,7 +404,7 @@ public interface Seq extends Container {
/** Return the index of a given member of the sequence.
*
- *
If more the the same value appears more than once in the sequence,
+ *
If more the same value appears more than once in the sequence,
* it is undefined which of the indexes will be returned.
*
*
If the member is not found in this sequence, a value of 0 is returned.
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/StatementBoundaryBase.java b/jena-core/src/main/java/org/apache/jena/rdf/model/StatementBoundaryBase.java
index bb0f5311b34..ac4c8633455 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/StatementBoundaryBase.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/StatementBoundaryBase.java
@@ -23,7 +23,7 @@
/**
StatementBoundaryBase - a base class for StatementBoundarys, with
- built-in converstion to triples and a continueWith as well as a stopAt.
+ built-in conversation to triples and a continueWith as well as a stopAt.
*/
public abstract class StatementBoundaryBase implements StatementBoundary
{
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/InfModelImpl.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/InfModelImpl.java
index e39b88b6cf1..74e58e5414c 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/InfModelImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/InfModelImpl.java
@@ -47,7 +47,7 @@ public InfGraph getInfGraph() {
/**
* Return the raw RDF model being processed (i.e. the argument
- * to the Reasonder.bind call that created this InfModel).
+ * to the Reasoner.bind call that created this InfModel).
*/
@Override
public Model getRawModel() {
@@ -80,7 +80,7 @@ public void rebind() {
* "prepare" if necessary. The call is provided for those occasions where
* substantial preparation work is possible (e.g. running a forward chaining
* rule system) and where an application might wish greater control over when
- * this prepration is done rather than just leaving to be done at first query time.
+ * this preparation is done rather than just leaving to be done at first query time.
*/
@Override
public void prepare() {
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/LiteralImpl.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/LiteralImpl.java
index de3c342879f..7907002a477 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/LiteralImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/LiteralImpl.java
@@ -259,7 +259,7 @@ public boolean isWellFormedXML() {
/**
* Test that two literals are semantically equivalent.
- * In some cases this may be the sames as equals, in others
+ * In some cases this may be the same as equals, in others
* equals is stricter. For example, two xsd:int literals with
* the same value but different language tag are semantically
* equivalent but distinguished by the java equality function
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ModelCom.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ModelCom.java
index fb99d2c8b69..99ec9a8dbe3 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ModelCom.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ModelCom.java
@@ -46,7 +46,7 @@
*
*
This class implements common methods, mainly convenience methods, for
* model implementations. It is intended use is as a base class from which
- * model implemenations can be derived.
+ * model implementations can be derived.
*/
public class ModelCom extends EnhGraph
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ReifierStd.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ReifierStd.java
index 53bc9fbe1e9..4b5fe76d77a 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ReifierStd.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/ReifierStd.java
@@ -33,7 +33,7 @@
/** A Reifier that only supports one style Standard (intercept, no conceal
* -- and intercept is a no-op anyway because all triples
* appear in the underlying graph for storing all triples).
- * This exists to give reification style "Standard" semantics primarly for legacy reasons.
+ * This exists to give reification style "Standard" semantics primarily for legacy reasons.
*/
public class ReifierStd
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/SelectorImpl.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/SelectorImpl.java
index 9cdb2bf4442..e548d2fd047 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/SelectorImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/SelectorImpl.java
@@ -57,7 +57,7 @@ public SelectorImpl() {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -73,7 +73,7 @@ public SelectorImpl(Resource subject, Property predicate, RDFNode object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -89,7 +89,7 @@ public SelectorImpl(Resource subject, Property predicate, boolean object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -105,7 +105,7 @@ public SelectorImpl(Resource subject, Property predicate, long object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -121,7 +121,7 @@ public SelectorImpl(Resource subject, Property predicate, char object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -137,7 +137,7 @@ public SelectorImpl(Resource subject, Property predicate, float object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -153,7 +153,7 @@ public SelectorImpl(Resource subject, Property predicate, double object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
@@ -169,7 +169,7 @@ public SelectorImpl(Resource subject, Property predicate, String object) {
/** Create a selector. A model may restrict statements that are tested using
* the selects method to those whose subject matches the
* subject parameter, whose predicate matches the predicate parameter and whose
- * object matches the object paramater. Any null parameter is considered to
+ * object matches the object parameter. Any null parameter is considered to
* match anything.
* @param subject if not null, the subject of selected statements
* must equal this argument.
diff --git a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/StatementBase.java b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/StatementBase.java
index 3ff1fac2610..7c80364161a 100644
--- a/jena-core/src/main/java/org/apache/jena/rdf/model/impl/StatementBase.java
+++ b/jena-core/src/main/java/org/apache/jena/rdf/model/impl/StatementBase.java
@@ -154,7 +154,7 @@ public boolean hasWellFormedXML()
{ return getLiteral().isWellFormedXML(); }
/**
- Answer a string describing this Statement in a vagely pretty way, with the
+ Answer a string describing this Statement in a vaguely pretty way, with the
representations of the subject, predicate, and object in that order.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPHandlers.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPHandlers.java
index 051f285b327..11366d1c1ab 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPHandlers.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPHandlers.java
@@ -26,7 +26,7 @@
/**
* The interface to set the various handlers on ARP. User defined
* implementations of this interface are not supported. This is a class rather
- * than an interface to have better backward compatibilitiy with earlier
+ * than an interface to have better backward compatibility with earlier
* versions, however constructing instances of this class is deprecated.
*/
public class ARPHandlers {
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPOptions.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPOptions.java
index cb5b3f15620..c66fae7c746 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPOptions.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/ARPOptions.java
@@ -25,7 +25,7 @@
* The interface to set the various options on ARP.
* User defined
* implementations of this interface are not supported. This is a class rather
- * than an interface to have better backward compatibilitiy with earlier
+ * than an interface to have better backward compatibility with earlier
* versions, however constructing instances of this class is deprecated.
* In addition, accessing the fields of {@link ARPErrorNumbers} through this
* class is not supported. The inheritance of this interface will be removed.
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/TaintImpl.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/TaintImpl.java
index 878931ebafe..144104798d8 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/TaintImpl.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/TaintImpl.java
@@ -18,7 +18,7 @@
package org.apache.jena.rdfxml.xmlinput.impl;
/**
- * Minimal implemantation of {@link Taint}
+ * Minimal implementation of {@link Taint}
*/
public class TaintImpl implements Taint {
diff --git a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/XMLContext.java b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/XMLContext.java
index ff8052346fb..85aece22841 100644
--- a/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/XMLContext.java
+++ b/jena-core/src/main/java/org/apache/jena/rdfxml/xmlinput/impl/XMLContext.java
@@ -31,7 +31,7 @@
/**
*
* Both the baseURI and the lang may be tainted with errors. They should not be
- * accessed without providing a taint object to propogate such tainting.
+ * accessed without providing a taint object to propagate such tainting.
*/
public class XMLContext extends AbsXMLContext implements ARPErrorNumbers
{
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/FGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/FGraph.java
index fea406695ce..e595282acb0 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/FGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/FGraph.java
@@ -22,7 +22,7 @@
import org.apache.jena.util.iterator.* ;
/**
- * Wrapper round a Graph to implement the slighly modified Finder
+ * Wrapper round a Graph to implement the slightly modified Finder
* interface.
*/
public class FGraph implements Finder {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/IllegalParameterException.java b/jena-core/src/main/java/org/apache/jena/reasoner/IllegalParameterException.java
index 1eebd3d05ae..a6024b54943 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/IllegalParameterException.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/IllegalParameterException.java
@@ -19,7 +19,7 @@
package org.apache.jena.reasoner;
/**
- * Exception used to to signal that a configuration parameter was used
+ * Exception used to signal that a configuration parameter was used
* (typically in a setParameter call) that was not understood - either
* because it was not a recognized parameter URI or its value range was incorrect.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/InfGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/InfGraph.java
index 218ee3a0b9d..fb199f7979e 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/InfGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/InfGraph.java
@@ -69,11 +69,11 @@ public interface InfGraph extends Graph {
/**
* Perform any initial processing and caching. This call is optional. Most
- * engines either have negligable set up work or will perform an implicit
+ * engines either have negligible set up work or will perform an implicit
* "prepare" if necessary. The call is provided for those occasions where
* substantial preparation work is possible (e.g. running a forward chaining
* rule system) and where an application might wish greater control over when
- * this prepration is done.
+ * this preparation is done.
*/
public void prepare();
@@ -127,14 +127,14 @@ public interface InfGraph extends Graph {
public ExtendedIterator find(Node subject, Node property, Node object, Graph param);
/**
- * Switch on/off drivation logging
+ * Switch on/off derivation logging
*/
public void setDerivationLogging(boolean logOn);
/**
* Return the derivation of the given triple (which is the result of
* some previous find operation).
- * Not all reasoneers will support derivations.
+ * Not all reasoners will support derivations.
* @return an iterator over Derivation records or null if there is no derivation information
* available for this triple.
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BackwardRuleInfGraphI.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BackwardRuleInfGraphI.java
index 1be8227ea23..c71cb48fc51 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BackwardRuleInfGraphI.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BackwardRuleInfGraphI.java
@@ -46,7 +46,7 @@ public interface BackwardRuleInfGraphI extends SilentAddI, InfGraph {
public ExtendedIterator findDataMatches(TriplePattern pattern);
/**
- * Logger a dervivation record against the given triple.
+ * Logger a derivation record against the given triple.
*/
public void logDerivation(Triple t, Derivation derivation);
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BasicForwardRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BasicForwardRuleReasoner.java
index aa7090333bf..a60dee9d408 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BasicForwardRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BasicForwardRuleReasoner.java
@@ -168,7 +168,7 @@ public List getRules() {
}
/**
- * Switch on/off drivation logging.
+ * Switch on/off derivation logging.
* If set to true then the InfGraph created from the bind operation will start
* life with recording of derivations switched on. This is currently only of relevance
* to rule-based reasoners.
@@ -192,8 +192,8 @@ public void setTraceOn(boolean state) {
* Set a configuration paramter for the reasoner. The supported parameters
* are:
*
- *
BasicForwaredRuleReasoner.PROPderivationLogging - set to true to enable recording all rule derivations
- *
BasicForwaredRuleReasoner.PROPtraceOn - set to true to enable verbose trace information to be sent to the logger INFO channel
+ *
BasicForwardedRuleReasoner.PROPderivationLogging - set to true to enable recording all rule derivations
+ *
BasicForwardedRuleReasoner.PROPtraceOn - set to true to enable verbose trace information to be sent to the logger INFO channel
*
*
* @param parameter the property identifying the parameter to be changed
@@ -213,7 +213,7 @@ public void setParameter(Property parameter, Object value) {
/**
- * Return the Jena Graph Capabilties that the inference graphs generated
+ * Return the Jena Graph Capabilities that the inference graphs generated
* by this reasoner are expected to conform to.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BindingEnvironment.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BindingEnvironment.java
index a88bd20bed1..51c8c8c7c60 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BindingEnvironment.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BindingEnvironment.java
@@ -32,13 +32,13 @@ public interface BindingEnvironment {
/**
* Return the most ground version of the node. If the node is not a variable
- * just return it, if it is a varible bound in this environment return the binding,
+ * just return it, if it is a variable bound in this environment return the binding,
* if it is an unbound variable return the variable.
*/
public Node getGroundVersion(Node node);
/**
- * Bind a variable in the current envionment to the given value.
+ * Bind a variable in the current environment to the given value.
* Checks that the new binding is compatible with any current binding.
* @param var a Node_RuleVariable defining the variable to bind
* @param value the value to bind
@@ -48,7 +48,7 @@ public interface BindingEnvironment {
/**
* Instantiate a triple pattern against the current environment.
- * This version handles unbound varibles by turning them into bNodes.
+ * This version handles unbound variables by turning them into bNodes.
* @param pattern the triple pattern to match
* @return a new, instantiated triple
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BuiltinException.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BuiltinException.java
index 318600d832f..a439af40146 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BuiltinException.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/BuiltinException.java
@@ -21,7 +21,7 @@
import org.apache.jena.shared.JenaException ;
/**
- * Exceptions thrown by runtime errors in exceuting rule system
+ * Exceptions thrown by runtime errors in executing rule system
* builtin operations.
*/
public class BuiltinException extends JenaException {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleInfGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleInfGraph.java
index 18b27d3da54..b188169aaa2 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleInfGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleInfGraph.java
@@ -148,7 +148,7 @@ private void constructorInit(Graph schema) {
/**
* Instantiate the forward rule engine to use.
- * Subclasses can override this to switch to, say, a RETE imlementation.
+ * Subclasses can override this to switch to, say, a RETE implementation.
* @param rules the rule set or null if there are not rules bound in yet.
*/
@Override
@@ -236,7 +236,7 @@ public boolean processBuiltin(ClauseEntry clause, Rule rule, BindingEnvironment
}
/**
- * Adds a new Backward rule as a rusult of a forward rule process. Only some
+ * Adds a new Backward rule as a result of a forward rule process. Only some
* infgraphs support this.
*/
@Override
@@ -371,7 +371,7 @@ public void addPreprocessingHook(RulePreprocessHook hook) {
* "prepare" if necessary. The call is provided for those occasions where
* substantial preparation work is possible (e.g. running a forward chaining
* rule system) and where an application might wish greater control over when
- * this prepration is done.
+ * this preparation is done.
*/
@Override
public synchronized void prepare() {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleReasoner.java
index 51ac06fdc77..cbc9eee1c87 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/FBRuleReasoner.java
@@ -299,7 +299,7 @@ protected synchronized InfGraph getPreload() {
}
/**
- * Switch on/off drivation logging.
+ * Switch on/off derivation logging.
* If set to true then the InfGraph created from the bind operation will start
* life with recording of derivations switched on. This is currently only of relevance
* to rule-based reasoners.
@@ -406,7 +406,7 @@ protected boolean doSetParameter(Property parameter, Object value) {
}
/**
- * Return the Jena Graph Capabilties that the inference graphs generated
+ * Return the Jena Graph Capabilities that the inference graphs generated
* by this reasoner are expected to conform to.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/ForwardRuleInfGraphI.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/ForwardRuleInfGraphI.java
index ab45468869d..1808a1cb7c5 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/ForwardRuleInfGraphI.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/ForwardRuleInfGraphI.java
@@ -77,7 +77,7 @@ public interface ForwardRuleInfGraphI extends InfGraph, SilentAddI {
public boolean shouldLogDerivations();
/**
- * Logger a dervivation record against the given triple.
+ * Logger a derivation record against the given triple.
*/
public void logDerivation(Triple t, Derivation derivation);
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Functor.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Functor.java
index ee0ea90771b..1491e4482e3 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Functor.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Functor.java
@@ -31,7 +31,7 @@
* A functor comprises a functor name and a list of
* arguments. The arguments are Nodes of any type except functor nodes
* (there is no functor nesting). Functors play three roles in rules -
- * in heads they represent actions (procedural attachement); in bodies they
+ * in heads they represent actions (procedural attachment); in bodies they
* represent builtin predicates; in TriplePatterns they represent embedded
* structured literals that are used to cache matched subgraphs such as
* restriction specifications.
@@ -122,7 +122,7 @@ public String getName() {
}
/**
- * Return the functor aguments as an array of nodes
+ * Return the functor arguments as an array of nodes
*/
public Node[] getArgs() {
return args;
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasoner.java
index 14db6f231ed..a19a393b5c3 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasoner.java
@@ -160,7 +160,7 @@ public void setRules(List rules) {
/**
* Set to true to enable translation of selected parts of an OWL schema
- * to additional rules. At present only intersction statements are handled this way.
+ * to additional rules. At present only intersection statements are handled this way.
* The translation is only applicable in HYBRID mode.
*/
public void setOWLTranslation(boolean enableOWLTranslation) {
@@ -198,7 +198,7 @@ public void setFunctorFiltering(boolean param) {
* Add a new preprocessing hook defining an operation that
* should be run when the inference graph is being prepared. This can be
* used to generate additional data-dependent rules or translations.
- * This is only guaranted to be implemented for the HYBRID mode.
+ * This is only guaranteed to be implemented for the HYBRID mode.
*/
public void addPreprocessingHook(RulePreprocessHook hook) {
if (preprocessorHooks == null) {
@@ -273,7 +273,7 @@ private boolean isRuleSetURL( Property parameter )
/**
* Internal version of setParameter that does not directly raise an
- * exception on parameters it does not reconize.
+ * exception on parameters it does not recognize.
* @return false if the parameter was not recognized
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasonerFactory.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasonerFactory.java
index db8ed393cdf..4f0aa0b9bb6 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasonerFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/GenericRuleReasonerFactory.java
@@ -24,7 +24,7 @@
/**
* Factory object for creating general rule reasoner instances. The
- * specific rule set and mode confriguration can be set either be method
+ * specific rule set and mode configuration can be set either be method
* calls to the created reasoner or though parameters in the configuration Model.
*/
public class GenericRuleReasonerFactory implements ReasonerFactory {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleInfGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleInfGraph.java
index 376d209ace0..2367e0a3fee 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleInfGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleInfGraph.java
@@ -93,7 +93,7 @@ public Graph getSchemaGraph() {
* "prepare" if necessary. The call is provided for those occasions where
* substantial preparation work is possible (e.g. running a forward chaining
* rule system) and where an application might wish greater control over when
- * this prepration is done.
+ * this preparation is done.
*/
@Override
public synchronized void prepare() {
@@ -276,7 +276,7 @@ public boolean isTraceOn() {
// Interface between infGraph and the goal processing machinery
/**
- * Log a dervivation record against the given triple.
+ * Log a derivation record against the given triple.
*/
@Override
public void logDerivation(Triple t, Derivation derivation) {
@@ -329,7 +329,7 @@ public Node getTemp(Node instance, Node prop, Node pclass) {
/**
* Find any axioms (rules with no body) in the rule set and
- * add those to the auxilliary graph to be included in searches.
+ * add those to the auxiliary graph to be included in searches.
*/
protected void extractAxioms() {
Graph axioms = fdeductions.getGraph();
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleReasoner.java
index bb04745aeb2..9506e2f146d 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/LPBackwardRuleReasoner.java
@@ -31,7 +31,7 @@
* Reasoner implementation which augments or transforms an RDF graph
* according to a set of rules. The rules are processed using a
* tabled LP backchaining interpreter which is implemented by the
- * relvant InfGraph class.
+ * relevant InfGraph class.
*/
public class LPBackwardRuleReasoner implements Reasoner {
@@ -183,7 +183,7 @@ public List getRules() {
}
/**
- * Switch on/off drivation logging.
+ * Switch on/off derivation logging.
* If set to true then the InfGraph created from the bind operation will start
* life with recording of derivations switched on. This is currently only of relevance
* to rule-based reasoners.
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/MapBuiltinRegistry.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/MapBuiltinRegistry.java
index 46b7db8375b..ddaa4a9a70f 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/MapBuiltinRegistry.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/MapBuiltinRegistry.java
@@ -22,7 +22,7 @@
import java.util.Map;
/** * A registry for mapping functor names on java objects (instances
- * of subclasses of Builtin) which implement their behvaiour.
+ * of subclasses of Builtin) which implement their behaviour.
*
* This is currently implemented as a singleton to simply any future
* move to support different sets of builtins.
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Node_RuleVariable.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Node_RuleVariable.java
index e702b1ed104..5b7d19e967c 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Node_RuleVariable.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Node_RuleVariable.java
@@ -25,7 +25,7 @@
* A variation on the normal Node_Variable which support for value bindings.
* Currently the forward rule system stores the values externally but requires
* variables to have an offset index in the rule environment vector. The
- * variables can also suport prolog-like reference chains and trails but these
+ * variables can also support prolog-like reference chains and trails but these
* are not yet used.
*
* Note that this should not be used in a real Triple, in particular
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasoner.java
index 7b7723161d7..b85d51693e6 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasoner.java
@@ -31,7 +31,7 @@
*
RDFS entailments
*
basic OWL axioms like ObjectProperty subClassOf Property
*
intersectionOf, equivalentClass and forward implication of unionOf sufficient for traversal
- * of explicit class hierachies<.li>
+ * of explicit class hierarchies<.li>
*
*
* There is some experimental support for the cheaper class restriction handlingly which
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasonerFactory.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasonerFactory.java
index 20c6cb442e7..36a330970f3 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasonerFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/OWLMicroReasonerFactory.java
@@ -32,7 +32,7 @@
*
RDFS entailments
*
basic OWL axioms like ObjectProperty subClassOf Property
*
intersectionOf, equivalentClass and forward implication of unionOf sufficient for traversal
- * of explicit class hierachies<.li>
+ * of explicit class hierarchies<.li>
*
*
* There is some experimental support for the cheaper class restriction handlingly which
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasoner.java
index 2460540fe50..7189a0121c2 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasoner.java
@@ -52,7 +52,7 @@ public static List loadRules() {
}
/**
- * Return the Jena Graph Capabilties that the inference graphs generated
+ * Return the Jena Graph Capabilities that the inference graphs generated
* by this reasoner are expected to conform to.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasonerFactory.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasonerFactory.java
index 0c24b7a3fa4..84df673d339 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasonerFactory.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSFBRuleReasonerFactory.java
@@ -46,7 +46,7 @@ public static ReasonerFactory theInstance() {
/**
* Constructor method that builds an instance of the associated Reasoner
* @param configuration a set of arbitrary configuration information to be
- * passed the reasoner encoded within an RDF graph, the current implemenation
+ * passed the reasoner encoded within an RDF graph, the current implementation
* is not configurable and will ignore this parameter.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSForwardRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSForwardRuleReasoner.java
index b2817cccc7e..fa914375472 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSForwardRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSForwardRuleReasoner.java
@@ -59,7 +59,7 @@ public static List loadRules() {
}
/**
- * Return the Jena Graph Capabilties that the inference graphs generated
+ * Return the Jena Graph Capabilities that the inference graphs generated
* by this reasoner are expected to conform to.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleInfGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleInfGraph.java
index 6d6471299cf..172f8303891 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleInfGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleInfGraph.java
@@ -25,7 +25,7 @@
/**
* Customization of the generic rule inference graph for RDFS inference.
- * In fact all the rule processing is unchanged, the only extenstion is
+ * In fact all the rule processing is unchanged, the only extension is
* the validation support.
*/
public class RDFSRuleInfGraph extends FBRuleInfGraph {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleReasoner.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleReasoner.java
index cb3b980ed20..a4a01279587 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleReasoner.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RDFSRuleReasoner.java
@@ -27,7 +27,7 @@
import org.apache.jena.vocabulary.ReasonerVocabulary ;
/**
- * A full implemention of RDFS reasoning using a hybrid rule system, together
+ * A full implementation of RDFS reasoning using a hybrid rule system, together
* with optimized subclass/subproperty closure using the transitive graph caches.
* Implements the container membership property rules using an optional
* data scanning hook. Implements datatype range validation.
@@ -105,7 +105,7 @@ protected RDFSRuleReasoner(FBRuleInfGraph schemaGraph, ReasonerFactory factory)
/**
* Internal version of setParameter that does not directly raise an
- * exception on parameters it does not reconize.
+ * exception on parameters it does not recognize.
* @return false if the parameter was not recognized
*/
@Override
@@ -207,7 +207,7 @@ public static List loadRulesLevel(String level) {
}
/**
- * Return the Jena Graph Capabilties that the inference graphs generated
+ * Return the Jena Graph Capabilities that the inference graphs generated
* by this reasoner are expected to conform to.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RETERuleInfGraph.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RETERuleInfGraph.java
index 9c311ff37a9..a4fce441c03 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RETERuleInfGraph.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RETERuleInfGraph.java
@@ -25,7 +25,7 @@
import org.apache.jena.reasoner.rulesys.impl.* ;
/**
- * RETE implementation of the forward rule infernce graph.
+ * RETE implementation of the forward rule inference graph.
*/
public class RETERuleInfGraph extends BasicForwardRuleInfGraph {
@@ -73,7 +73,7 @@ public RETERuleInfGraph(Reasoner reasoner, List rules, Graph schema, Graph
/**
* Instantiate the forward rule engine to use.
- * Subclasses can override this to switch to, say, a RETE imlementation.
+ * Subclasses can override this to switch to, say, a RETE implementation.
* @param rules the rule set or null if there are not rules bound in yet.
*/
@Override
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RuleDerivation.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RuleDerivation.java
index 91fbb3c7c55..569b6dd7e12 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RuleDerivation.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RuleDerivation.java
@@ -90,7 +90,7 @@ public void printTrace(PrintWriter out, boolean bindings) {
* @param bindings set to true to print intermediate variable bindings for
* each stage in the derivation
* @param indent the number of indent spaces to use
- * @param seen a HashSet of derviations that have already been listed
+ * @param seen a HashSet of derivations that have already been listed
*/
protected void printTrace(PrintWriter out, boolean bindings, int indent, HashSet seen) {
PrintUtil.printIndent(out, indent);
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RulePreprocessHook.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RulePreprocessHook.java
index b770ef0541b..f990580def2 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RulePreprocessHook.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/RulePreprocessHook.java
@@ -23,7 +23,7 @@
import org.apache.jena.reasoner.Finder ;
/**
- * Implementors of this interface can be used as proprocessing passes
+ * Implementors of this interface can be used as preprocessing passes
* during intialization of (hybrid) rule systems. They are typically
* used to generate additional data-dependent rules or additional
* deductions (normally from comprehension axioms) which are cheaper
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Util.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Util.java
index 33fe7e30e71..95cfb9b3244 100755
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Util.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/Util.java
@@ -175,7 +175,7 @@ public static Node getPropValue(Node root, Node prop, RuleContext context) {
}
/**
- * Internall implementation of all the getPropValue variants.
+ * Internal implementation of all the getPropValue variants.
*/
private static Node doGetPropValue(ClosableIterator it) {
Node result = null;
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/BaseBuiltin.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/BaseBuiltin.java
index b85e8bad602..a9b748abf8f 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/BaseBuiltin.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/BaseBuiltin.java
@@ -108,7 +108,7 @@ public boolean isMonotonic() {
}
/**
- * Return the n'th argument node after dererencing by what ever type of
+ * Return the n'th argument node after dereferencing by what ever type of
* rule engine binding environment is appropriate.
*/
public Node getArg(int n, Node[] args, RuleContext context) {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/Difference.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/Difference.java
index 0c42ac59b7e..ec949f91151 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/Difference.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/Difference.java
@@ -22,8 +22,8 @@
import org.apache.jena.reasoner.rulesys.* ;
/**
- * Bind the third argument to the arithetic difference between the
- * first and second aguments.
+ * Bind the third argument to the arithmetic difference between the
+ * first and second arguments.
*/
public class Difference extends BaseBuiltin {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/NotDType.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/NotDType.java
index ef9e8fea3b8..2c5e829b358 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/NotDType.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/NotDType.java
@@ -22,7 +22,7 @@
import org.apache.jena.reasoner.rulesys.* ;
/**
- * Tests wheter the first argument is not an instance of the datatype defined
+ * Tests whether the first argument is not an instance of the datatype defined
* by the resource in the second argument.
*/
public class NotDType extends BaseBuiltin {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/StrConcat.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/StrConcat.java
index f31f8888e6d..4e748c695aa 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/StrConcat.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/builtins/StrConcat.java
@@ -26,7 +26,7 @@
/**
* Builtin which concatenates a set of strings. It binds the last argument to
* a plain literal which is the concatenation of all the preceeding arguments.
- * For a literal argument we use its lexcical form, for a URI argument its URI,
+ * For a literal argument we use its lexical form, for a URI argument its URI,
* for a bNode argument its internal ID.
*/
public class StrConcat extends BaseBuiltin {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BFRuleContext.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BFRuleContext.java
index 256b21da25f..1c45f6d3c9b 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BFRuleContext.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BFRuleContext.java
@@ -132,7 +132,7 @@ public void addTriple(Triple t) {
/**
* Add a triple to a temporary "pending" store, ready to be added to added to the
* deductions graph and the processing stack later.
- *
This is needed to prevent concurrrent modification exceptions which searching
+ *
This is needed to prevent concurrent modification exceptions which searching
* the deductions for matches to a given rule.
*/
@Override
@@ -218,7 +218,7 @@ public Triple getNextTriple() {
}
/**
- * Reset the binding environemnt back to empty.
+ * Reset the binding environment back to empty.
* @param newSize the number of variables needed for processing the new rule
*/
public void resetEnv(int newSize) {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingStack.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingStack.java
index 03fae6aa2a6..1b7ec8a3367 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingStack.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingStack.java
@@ -146,7 +146,7 @@ public Node getBinding(Node node) {
/**
* Return the most ground version of the node. If the node is not a variable
- * just return it, if it is a varible bound in this enviroment return the binding,
+ * just return it, if it is a variable bound in this environment return the binding,
* if it is an unbound variable return the variable.
*/
@Override
@@ -202,7 +202,7 @@ public void bindNoCheck(Node_RuleVariable var, Node value) {
/**
* Instantiate a triple pattern against the current environment.
- * This version handles unbound varibles by turning them into bNodes.
+ * This version handles unbound variables by turning them into bNodes.
* @param pattern the triple pattern to match
* @return a new, instantiated triple
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingVector.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingVector.java
index eaca73ee5ac..0c5d7aadd91 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingVector.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/BindingVector.java
@@ -63,7 +63,7 @@ public BindingVector(BindingVector clone) {
/**
* Return the current array of bindings. Useful for fast access to
- * serveral bindings, not useful for doing updates.
+ * several bindings, not useful for doing updates.
*/
public Node[] getEnvironment() {
return environment;
@@ -107,7 +107,7 @@ public Node getBinding(Node node) {
/**
* Return the most ground version of the node. If the node is not a variable
- * just return it, if it is a varible bound in this enviroment return the binding,
+ * just return it, if it is a variable bound in this environment return the binding,
* if it is an unbound variable return the variable.
*/
@Override
@@ -121,7 +121,7 @@ public Node getGroundVersion(Node node) {
}
/**
- * Bind the ith variable in the current envionment to the given value.
+ * Bind the ith variable in the current environment to the given value.
* Checks that the new binding is compatible with any current binding.
* Handles aliased variables.
* @return false if the binding fails
@@ -140,7 +140,7 @@ public boolean bind(int i, Node value) {
}
/**
- * Bind a variable in the current envionment to the given value.
+ * Bind a variable in the current environment to the given value.
* Checks that the new binding is compatible with any current binding.
* @param var a Node_RuleVariable defining the variable to bind
* @param value the value to bind
@@ -159,7 +159,7 @@ public boolean bind(Node var, Node value) {
* Bind the variables in a goal pattern using the binding environment, to
* generate a more specialized goal
* @param goal the TriplePattern to be instantiated
- * @return a TriplePattern obtained from the goal by substituting current bindinds
+ * @return a TriplePattern obtained from the goal by substituting current bindings
*/
public TriplePattern partInstantiate(TriplePattern goal) {
return new TriplePattern(
@@ -185,7 +185,7 @@ public TriplePattern partInstantiate(TriplePattern goal) {
/**
* Instantiate a triple pattern against the current environment.
- * This version handles unbound varibles by turning them into bNodes.
+ * This version handles unbound variables by turning them into bNodes.
* @param pattern the triple pattern to match
* @return a new, instantiated triple
*/
@@ -223,7 +223,7 @@ public String toString() {
/**
* Unify a goal with the head of a rule. This is a poor-man's unification,
- * we should try swtiching to a more conventional global-variables-with-trail
+ * we should try switching to a more conventional global-variables-with-trail
* implementation in the future.
* @param goal the goal pattern which it being matched to a rule
* @param head the head pattern of the rule which is being instantiated
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngine.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngine.java
index 71e4d4c7608..e3a0b44203e 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngine.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngine.java
@@ -31,7 +31,7 @@
import org.slf4j.LoggerFactory;
/**
- * The processing engine for forward production rules. It neeeds to reference
+ * The processing engine for forward production rules. It needs to reference
* an enclosing ForwardInfGraphI which holds the raw data and deductions.
*/
public class FRuleEngine implements FRuleEngineI {
@@ -200,7 +200,7 @@ public Object getRuleStore() {
}
/**
- * Set the internal rule from from a precomputed state.
+ * Set the internal rule from a precomputed state.
*/
@Override
public void setRuleStore(Object ruleStore) {
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngineI.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngineI.java
index 1f548e128b6..50a8083ef22 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngineI.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/FRuleEngineI.java
@@ -84,7 +84,7 @@ public interface FRuleEngineI {
public Object getRuleStore();
/**
- * Set the internal rule from from a precomputed state.
+ * Set the internal rule from a precomputed state.
*/
public void setRuleStore(Object ruleStore);
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
index 08e8f82b21c..ed5341bb8a7 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBRuleEngine.java
@@ -223,12 +223,12 @@ public LPRuleStore getRuleStore() {
return ruleStore;
}
- /** Return the parent infernce graph associated with this engine */
+ /** Return the parent inference graph associated with this engine */
public BackwardRuleInfGraphI getInfGraph() {
return infGraph;
}
- /** Detatch the given engine from the list of active engines for this inf graph */
+ /** Detach the given engine from the list of active engines for this inf graph */
public synchronized void detach(LPInterpreter engine) {
activeInterpreters.remove(engine);
}
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBindingEnvironment.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBindingEnvironment.java
index 825de296f41..2f88ed5633f 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBindingEnvironment.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPBindingEnvironment.java
@@ -41,7 +41,7 @@ public LPBindingEnvironment(LPInterpreter interpeter) {
/**
* Return the most ground version of the node. If the node is not a variable
- * just return it, if it is a varible bound in this environment return the binding,
+ * just return it, if it is a variable bound in this environment return the binding,
* if it is an unbound variable return the variable.
*/
@Override
@@ -50,7 +50,7 @@ public Node getGroundVersion(Node node) {
}
/**
- * Bind a variable in the current envionment to the given value.
+ * Bind a variable in the current environment to the given value.
* Checks that the new binding is compatible with any current binding.
* @param var a Node_RuleVariable defining the variable to bind
* @param value the value to bind
@@ -72,7 +72,7 @@ public boolean bind(Node var, Node value) {
/**
* Instantiate a triple pattern against the current environment.
- * This version handles unbound varibles by turning them into bNodes.
+ * This version handles unbound variables by turning them into bNodes.
* @param pattern the triple pattern to match
* @return a new, instantiated triple
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPInterpreter.java b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPInterpreter.java
index fee6c979671..909b829e308 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPInterpreter.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/rulesys/impl/LPInterpreter.java
@@ -29,7 +29,7 @@
import org.slf4j.LoggerFactory;
/**
- * Bytecode interpeter engine for the LP version of the backward
+ * Bytecode interpreter engine for the LP version of the backward
* chaining rule system. An instance of this is forked off for each
* parallel query.
*/
@@ -144,7 +144,7 @@ public LPInterpreter(LPBRuleEngine engine, TriplePattern goal, List classMap = new HashMap<>();
/**
- * Cosntructor.
+ * Constructor.
* @param infgraph Parent inference graph, used to be needed for synchronization, don't think
* we need it any more
*/
diff --git a/jena-core/src/main/java/org/apache/jena/reasoner/transitiveReasoner/GraphNode.java b/jena-core/src/main/java/org/apache/jena/reasoner/transitiveReasoner/GraphNode.java
index 7907a027a03..15893fc29cf 100644
--- a/jena-core/src/main/java/org/apache/jena/reasoner/transitiveReasoner/GraphNode.java
+++ b/jena-core/src/main/java/org/apache/jena/reasoner/transitiveReasoner/GraphNode.java
@@ -248,7 +248,7 @@ public void retractLinkTo(GraphNode target) {
}
/**
- * Assert an inferred indirect link from this node to the given traget
+ * Assert an inferred indirect link from this node to the given target
*/
public void assertIndirectLinkTo(GraphNode target) {
// if (this == target) return;
diff --git a/jena-core/src/main/java/org/apache/jena/shared/LockMRSW.java b/jena-core/src/main/java/org/apache/jena/shared/LockMRSW.java
index 964ff0b2cf5..5aa9198f0d4 100644
--- a/jena-core/src/main/java/org/apache/jena/shared/LockMRSW.java
+++ b/jena-core/src/main/java/org/apache/jena/shared/LockMRSW.java
@@ -27,13 +27,13 @@
import org.slf4j.LoggerFactory;
/**
- * Lock implemenetation using a Multiple Reader, Single Writer policy.
+ * Lock implementation using a Multiple Reader, Single Writer policy.
* All the locking work is done by the imported WriterPreferenceReadWriteLock.
- * Ths class adds:
+ * This class adds:
*
*
The same thread that acquired a lock should release it
*
Lock promotion (turning read locks into write locks) is
- * deteched as an error
+ * detached as an error
*
*/
diff --git a/jena-core/src/main/java/org/apache/jena/shared/NamespaceEndsWithNameCharException.java b/jena-core/src/main/java/org/apache/jena/shared/NamespaceEndsWithNameCharException.java
index e76b29fe478..d893624f963 100644
--- a/jena-core/src/main/java/org/apache/jena/shared/NamespaceEndsWithNameCharException.java
+++ b/jena-core/src/main/java/org/apache/jena/shared/NamespaceEndsWithNameCharException.java
@@ -20,7 +20,7 @@
/**
This exception is thrown when a putative namespace (for a PrefixMapping)
- ends with a name character, which we disallow because its an invitation
+ ends with a name character, which we disallow because it is an invitation
to errors. Typically a namespace URI will end with "/" or "#".
*/
public class NamespaceEndsWithNameCharException extends JenaException
diff --git a/jena-core/src/main/java/org/apache/jena/shared/PrefixMapping.java b/jena-core/src/main/java/org/apache/jena/shared/PrefixMapping.java
index 404cd90ca70..133db07ddf2 100644
--- a/jena-core/src/main/java/org/apache/jena/shared/PrefixMapping.java
+++ b/jena-core/src/main/java/org/apache/jena/shared/PrefixMapping.java
@@ -25,7 +25,7 @@
import org.apache.jena.vocabulary.* ;
/**
- Methods for recording namepsace prefix mappings and applying and
+ Methods for recording namespace prefix mappings and applying and
unapplying them to URIs.
Note that a Model *is* a PrefixMapping, so all the PrefixMapping
@@ -49,7 +49,7 @@ public interface PrefixMapping
should end with a non-NCName character has been removed.
- Note, in particular, that the a prefix mapping can only be used
+ Note, in particular, that the prefix mapping can only be used
if it includes the URI up to any '#' character because '#' is not legal
in the local part of an NCName.
diff --git a/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V1_Gen.java b/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V1_Gen.java
index 03c526c8468..9e553d833c4 100644
--- a/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V1_Gen.java
+++ b/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V1_Gen.java
@@ -117,7 +117,7 @@ public UUID_V1_Gen() {
reset() ;
}
- /** (Re)set the network id (a random number) and the timstamp */
+ /** (Re)set the network id (a random number) and the timestamp */
@Override
public void reset() {
diff --git a/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V4_Gen.java b/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V4_Gen.java
index 5e7d8dc6da9..eb41aaa3041 100644
--- a/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V4_Gen.java
+++ b/jena-core/src/main/java/org/apache/jena/shared/uuid/UUID_V4_Gen.java
@@ -25,7 +25,7 @@
import org.apache.jena.shared.uuid.JenaUUID.UUIDFormatException ;
-/** Generator for for random number based UUIDs (version 2, variant 4)
+/** Generator for random number based UUIDs (version 2, variant 4)
*/
public class UUID_V4_Gen implements UUIDFactory
{
diff --git a/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistry.java b/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistry.java
index 313143491d5..51d750bf7c1 100644
--- a/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistry.java
+++ b/jena-core/src/main/java/org/apache/jena/system/JenaSubsystemRegistry.java
@@ -25,7 +25,7 @@
*/
public interface JenaSubsystemRegistry {
- /** Load - peform some kinds of search for {@link JenaSubsystemLifecycle} implementations.
+ /** Load - perform some kinds of search for {@link JenaSubsystemLifecycle} implementations.
* This is called once in the initialization process.
*/
public void load();
diff --git a/jena-core/src/main/java/org/apache/jena/util/CharEncoding.java b/jena-core/src/main/java/org/apache/jena/util/CharEncoding.java
index 90d88f34c02..802c7b5144c 100644
--- a/jena-core/src/main/java/org/apache/jena/util/CharEncoding.java
+++ b/jena-core/src/main/java/org/apache/jena/util/CharEncoding.java
@@ -23,7 +23,7 @@
/**
*
* This class provides a number of static methods which interact with
- * java.nio.charset.Charset to analyze and transform the strings identifing
+ * java.nio.charset.Charset to analyze and transform the strings identifying
* character encodings.
*/
abstract public class CharEncoding {
diff --git a/jena-core/src/main/java/org/apache/jena/util/LocationMapper.java b/jena-core/src/main/java/org/apache/jena/util/LocationMapper.java
index 88b95a20e7b..191b28ca3b6 100644
--- a/jena-core/src/main/java/org/apache/jena/util/LocationMapper.java
+++ b/jena-core/src/main/java/org/apache/jena/util/LocationMapper.java
@@ -172,7 +172,7 @@ public String altMapping(String uri)
* in a specific base directory.
* @param uri
* @param otherwise
- * @return The alternative location choosen
+ * @return The alternative location chosen
*/
public String altMapping(String uri, String otherwise)
{
diff --git a/jena-core/src/main/java/org/apache/jena/util/PrintUtil.java b/jena-core/src/main/java/org/apache/jena/util/PrintUtil.java
index d84537004e1..5253b7444ed 100755
--- a/jena-core/src/main/java/org/apache/jena/util/PrintUtil.java
+++ b/jena-core/src/main/java/org/apache/jena/util/PrintUtil.java
@@ -35,7 +35,7 @@
import org.apache.jena.vocabulary.ReasonerVocabulary ;
/**
- * A collection of small utilites for pretty printing nodes, triples
+ * A collection of small utilities for pretty printing nodes, triples
* and associated things. The core functionality here is a static
* prefix map which is preloaded with known prefixes.
*/
@@ -151,7 +151,7 @@ public static String print(TriplePattern triple) {
}
/**
- * Return a simplified print string for a statment
+ * Return a simplified print string for a statement
*/
public static String print(Statement stmt) {
if (stmt == null) return "(null)";
diff --git a/jena-core/src/main/java/org/apache/jena/util/iterator/ClosableIterator.java b/jena-core/src/main/java/org/apache/jena/util/iterator/ClosableIterator.java
index ed320d118f5..6023042e943 100644
--- a/jena-core/src/main/java/org/apache/jena/util/iterator/ClosableIterator.java
+++ b/jena-core/src/main/java/org/apache/jena/util/iterator/ClosableIterator.java
@@ -30,7 +30,7 @@ iterator if they are done with it before it is exhausted (ie hasNext() is still
true).If they do not, resources may leak or be reclaimed unpredictably or
much later than convenient. It is unnecessary but harmless to close the
iterator once it has become exhausted. [note: previous versions
- of this documention specified a close regardless of exhaustion, but this
+ of this documentation specified a close regardless of exhaustion, but this
was never the contract applied internally.]
Implementors are encouraged to dispose of resources as soon as is convenient.
diff --git a/jena-core/src/main/java/org/apache/jena/util/iterator/WrappedIterator.java b/jena-core/src/main/java/org/apache/jena/util/iterator/WrappedIterator.java
index 44320388651..eee140a2f43 100644
--- a/jena-core/src/main/java/org/apache/jena/util/iterator/WrappedIterator.java
+++ b/jena-core/src/main/java/org/apache/jena/util/iterator/WrappedIterator.java
@@ -78,7 +78,7 @@ protected WrappedIterator( Iterator extends T> base )
/**
Initialise this wrapping with the given base iterator and remove-control.
- @param base the base iterator that this tierator wraps
+ @param base the base iterator that this iterator wraps
@param removeDenied true if .remove() must throw an exception
*/
protected WrappedIterator( Iterator extends T> base, boolean removeDenied )
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java b/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
index 3978499e2f2..316acf03497 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/DC_11.java
@@ -28,7 +28,7 @@ public class DC_11 {
/**
The RDF model that holds the vocabulary terms
*/
private static final Model m_model = ModelFactory.createDefaultModel();
- /**
The namespace of the vocabalary as a string ({@value})
*/
+ /**
The namespace of the vocabulary as a string ({@value})
*/
public static final String NS = "http://purl.org/dc/elements/1.1/";
/**
The namespace of the vocabalary as a string
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/LocationMappingVocab.java b/jena-core/src/main/java/org/apache/jena/vocabulary/LocationMappingVocab.java
index 58496f40f05..28cb029d46f 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/LocationMappingVocab.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/LocationMappingVocab.java
@@ -26,7 +26,7 @@
*/
public class LocationMappingVocab {
- /**
The namespace of the vocabalary as a string ({@value})
*/
+ /**
The namespace of the vocabulary as a string ({@value})
*/
public static final String NS = "http://jena.hpl.hp.com/2004/08/location-mapping#";
/**
The namespace of the vocabalary as a string
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
index 44b3ba3c49f..998516c62f0 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/OWLResults.java
@@ -29,14 +29,14 @@ public class OWLResults {
/**
The RDF model that holds the vocabulary terms
*/
private static final Model m_model = ModelFactory.createDefaultModel();
- /**
The namespace of the vocabalary as a string ({@value})
*/
+ /**
The namespace of the vocabulary as a string ({@value})
*/
public static final String NS = "http://www.w3.org/2002/03owlt/resultsOntology#";
- /**
*/
public static final Resource NAMESPACE = m_model.createResource( NS );
/**
A web page presenting the output of the test run, including system-specific
diff --git a/jena-core/src/main/java/org/apache/jena/vocabulary/RSS.java b/jena-core/src/main/java/org/apache/jena/vocabulary/RSS.java
index ed8bbe088fc..2745f445883 100644
--- a/jena-core/src/main/java/org/apache/jena/vocabulary/RSS.java
+++ b/jena-core/src/main/java/org/apache/jena/vocabulary/RSS.java
@@ -21,7 +21,7 @@
import org.apache.jena.rdf.model.* ;
/**
- The standard RSS vocavulary.
+ The standard RSS vocabulary.
*/
public class RSS extends Object {
diff --git a/jena-csv/src/main/java/org/apache/jena/propertytable/graph/QueryIterPropertyTableRow.java b/jena-csv/src/main/java/org/apache/jena/propertytable/graph/QueryIterPropertyTableRow.java
index a6efa69dd08..1c14c2fd11e 100644
--- a/jena-csv/src/main/java/org/apache/jena/propertytable/graph/QueryIterPropertyTableRow.java
+++ b/jena-csv/src/main/java/org/apache/jena/propertytable/graph/QueryIterPropertyTableRow.java
@@ -43,7 +43,7 @@
import org.apache.jena.util.iterator.WrappedIterator ;
/**
- * If the triple size within a BasicePattern is greater than 1 (i.e. at least 2 triples), it's turned into a row querying.
+ * If the triple size within a BasicPattern is greater than 1 (i.e. at least 2 triples), it's turned into a row querying.
*
*/
public class QueryIterPropertyTableRow extends QueryIterRepeatApply{
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BinaryDataFileSync.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BinaryDataFileSync.java
index 0e356a3e149..55577984576 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BinaryDataFileSync.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BinaryDataFileSync.java
@@ -21,7 +21,7 @@
/** Add synchronization to all BinaryDataFile operations.
* This gives the correct thread-safe operation
- * but isn'tnecessarily the best way to do it.
+ * but isn't necessarily the best way to do it.
*/
public class BinaryDataFileSync implements BinaryDataFile {
private final BinaryDataFile other ;
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccess.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccess.java
index 156cb12d023..8aa5f3d1a40 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccess.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccess.java
@@ -27,7 +27,7 @@
* Suitable for memory mapped I/O (returns
* internally allocated space for read, not provided from outside; write() can
* insist the block written comes from allocate()).
- * This interfce can also be backed by an in-memory implemntation
+ * This interface can also be backed by an in-memory implementation
* ({@link BlockAccessMem}, {@link BlockAccessByteArray}).
*
* This is wrapped in a BlockMgr to provide a higher level abstraction.
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccessBase.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccessBase.java
index 9b17b7c57de..4b06513403d 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccessBase.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BlockAccessBase.java
@@ -65,7 +65,7 @@ public BlockAccessBase(String filename, int blockSize) {
throw new BlockException(format("File size (%d) not a multiple of blocksize (%d)", filesize, blockSize)) ;
}
- /** Find path compoent, with extension */
+ /** Find path component, with extension */
private static String label(String filename) {
int j = filename.lastIndexOf('/') ;
if ( j < 0 )
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannel.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannel.java
index 1af64238f8d..9a26800fed0 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannel.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannel.java
@@ -29,7 +29,7 @@
* Interface to storage : a simplified version of FileChannel. Read and write
* bytes, passed via ByteBuffers, addressed by file location. This interface is
* not suitable for memory mapped I/O - there is no ability to use slices of a
- * memort mapped file. This interface does not insert size of ByteBuffer - size
+ * memory mapped file. This interface does not insert size of ByteBuffer - size
* of ByteBuffer passed to read controls the number of bytes read. Having our
* own abstraction enables us to implement memory-backed versions.
*
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannelFile.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannelFile.java
index 8ea1f1094af..a4cb0073830 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannelFile.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/BufferChannelFile.java
@@ -40,7 +40,7 @@ public static BufferChannelFile create(String filename, String mode) {
return new BufferChannelFile(filename, base) ;
}
- /** Create a BufferChannelFile with unmangaged file resources - use with care */
+ /** Create a BufferChannelFile with unmanaged file resources - use with care */
public static BufferChannelFile createUnmanaged(String filename, String mode) {
FileChannel channel = FileLib.openUnmanaged(filename, mode) ;
return new BufferChannelFile(filename, channel) ;
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/ProcessFileLock.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/ProcessFileLock.java
index 493dbfd04b9..e945df0b655 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/ProcessFileLock.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/file/ProcessFileLock.java
@@ -59,7 +59,7 @@ public class ProcessFileLock {
private enum NoLockAction { EXCEPTION, RETURN, WAIT }
/** Create a {@code ProcessFileLock} using the named file.
- * Locks are JVM-wide; each filename is assocauted with one lock object.
+ * Locks are JVM-wide; each filename is associated with one lock object.
*/
public static ProcessFileLock create(String filename) {
try {
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/page/PageBlockMgr.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/page/PageBlockMgr.java
index ac03f416922..fa72b93f26a 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/page/PageBlockMgr.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/base/page/PageBlockMgr.java
@@ -151,7 +151,7 @@ public void free(Page page) {
}
- /** Promote a page to be writable in-place (block id does not change, hnce page does not change id). */
+ /** Promote a page to be writable in-place (block id does not change, hence page does not change id). */
public void promoteInPlace(Page page) {
Block block = page.getBackingBlock() ;
block.getByteBuffer().rewind() ;
@@ -205,7 +205,7 @@ public void dump() {
/** Signal the start of an update operation */
public void startRead() { blockMgr.beginRead() ; }
- /** Signal the completeion of an update operation */
+ /** Signal the completion of an update operation */
public void finishRead() { blockMgr.endRead() ; }
@Override
diff --git a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/migrate/L.java b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/migrate/L.java
index 8702c007cdf..14d4bafdc93 100644
--- a/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/migrate/L.java
+++ b/jena-db/jena-dboe-base/src/main/java/org/apache/jena/dboe/migrate/L.java
@@ -112,8 +112,8 @@ private static T runCallable(Callable action) {
/** Execute. Preform the "before" action, then main action.
- * Always call the "after" runnable if the "bafore" succeeded.
- * Becareful about argument order.
+ * Always call the "after" runnable if the "before" succeeded.
+ * Be careful about argument order.
* @param action
* @param before
* @param after
@@ -125,8 +125,8 @@ public static void withBeforeAfter(Runnable action, Runnable before, Runnable af
}
/** Execute. Preform the "before" action, then main action.
- * Always call the "after" runnable if the "bafore" succeeded.
- * Becareful about argument order.
+ * Always call the "after" runnable if the "before" succeeded.
+ * Be careful about argument order.
* @param action
* @param before
* @param after
@@ -163,7 +163,7 @@ public static void withLock(Lock lock, Runnable r) {
/** Write a string to a file as UTF-8. The file is closed after the operation.
* @param filename
- * @param content String to be writtem
+ * @param content String to be written
* @throws IOException
*/
diff --git a/jena-db/jena-dboe-index/src/main/java/org/apache/jena/dboe/index/Index.java b/jena-db/jena-dboe-index/src/main/java/org/apache/jena/dboe/index/Index.java
index d04aa19d7f7..39698993d21 100644
--- a/jena-db/jena-dboe-index/src/main/java/org/apache/jena/dboe/index/Index.java
+++ b/jena-db/jena-dboe-index/src/main/java/org/apache/jena/dboe/index/Index.java
@@ -87,6 +87,6 @@ public default void bulkChanges(Stream changes) {
/** Perform checks on this index */
public void check() ;
- /** Return size if known else return -1 : does not count the peristent storage */
+ /** Return size if known else return -1 : does not count the persistent storage */
public long size() ;
}
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTStateMgr.java b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTStateMgr.java
index b8d1212b034..3b21bd808a9 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTStateMgr.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTStateMgr.java
@@ -26,7 +26,7 @@
/** Manage the persistent state of the tree
*
- * This consists of last commited root, and the limits on the blocks for both
+ * This consists of last committed root, and the limits on the blocks for both
* nodes and records.
*
* (rootId/int-as-long, nodeAllocLimit/long, recordsAllocLimit/long)
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeNode.java b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeNode.java
index a9a9fa53f8b..e3f05331847 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeNode.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreeNode.java
@@ -274,10 +274,10 @@ public static Record delete(BPTreeNode root, Record rec) {
}
/** Iterator over the pages below that have records between minRec (inclusive) and maxRec(exclusive).
- * There may be other records as as well.
+ * There may be other records as well.
* @param minRec
* @param maxRec
- * @return Iterator<BPTreePage>
+ * @return Iterator<BPTreePage>
*/
Iterator iterator(Record minRec, Record maxRec) {
if ( minRec != null && maxRec != null && Record.keyGE(minRec, maxRec) )
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreePage.java b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreePage.java
index a0237182047..17381095693 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreePage.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPTreePage.java
@@ -64,7 +64,7 @@ protected String label() {
*/
abstract Record shiftLeft(BPTreePage other, Record splitKey) ;
- /** Merge this (left) and the page imemdiately to it's right other into a single block
+ /** Merge this (left) and the page immediately to it's right other into a single block
*/
abstract BPTreePage merge(BPTreePage right, Record splitKey) ;
//* Return the new page (may be left or right)
@@ -87,10 +87,10 @@ protected String label() {
/** Find a record; return null if not found */
abstract Record internalSearch(AccessPath path, Record rec) ;
- /** Insert a record - return existing value if any, else null - put back modifed blocks */
+ /** Insert a record - return existing value if any, else null - put back modified blocks */
abstract Record internalInsert(AccessPath path, Record record) ;
- /** Delete a record - return the old value if there was one, else null - put back modifed blocks */
+ /** Delete a record - return the old value if there was one, else null - put back modified blocks */
abstract Record internalDelete(AccessPath path, Record record) ;
/** Least in page */
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPlusTreeFactory.java b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPlusTreeFactory.java
index 0d0a5a980bf..5262ef4d2c0 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPlusTreeFactory.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/bplustree/BPlusTreeFactory.java
@@ -160,7 +160,7 @@ public static BPlusTree createBPTree(ComponentId cid, FileSet fileset, int order
/**
* Create the in-memory structures to correspond to the supplied block
- * managers for the persistent storage. Does not initalize the B+Tree - it
+ * managers for the persistent storage. Does not initialize the B+Tree - it
* assumes the block managers correspond to an existing B+Tree.
*/
private static BPlusTree attach(ComponentId cid, BPlusTreeParams params,
diff --git a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/data/TransBinaryDataFile.java b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/data/TransBinaryDataFile.java
index 1f838d28d62..027f90564e0 100644
--- a/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/data/TransBinaryDataFile.java
+++ b/jena-db/jena-dboe-trans-data/src/main/java/org/apache/jena/dboe/trans/data/TransBinaryDataFile.java
@@ -198,7 +198,7 @@ public long write(byte[] b, int start, int length) {
/**
* Truncate only supported for an abort - this transactional version of
- * BinaryDataFile will not truncate to earlier than the commited length.
+ * BinaryDataFile will not truncate to earlier than the committed length.
*/
@Override
public void truncate(long size) {
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionCoordinator.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionCoordinator.java
index fc479981e7f..69f9b8ee4ed 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionCoordinator.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionCoordinator.java
@@ -55,7 +55,7 @@
* and the journal is flushed to disk.
*
* See {@link #blockWriters()}, {@link #enableWriters()}, {@link #execAsWriter(Runnable)}
- *
Excluisve mode
+ *
Exclusive mode
* Exclusive mode is when the current thread is the only active code : no readers, no writers.
*
* See {@link #startExclusiveMode()}/{@link #tryExclusiveMode()} {@link #finishExclusiveMode()}, {@link #execExclusive(Runnable)}
@@ -127,7 +127,7 @@ private TransactionCoordinator(Journal journal, List txn
/** Add a {@link TransactionalComponent}.
* Safe to call at any time but it is good practice is to add all the
- * compoents before any transactions start.
+ * components before any transactions start.
* Internally, the coordinator ensures the add will safely happen but it
* does not add the component to existing transactions.
* This must be setup before recovery is attempted.
@@ -564,7 +564,7 @@ private ComponentGroup chooseComponents(ComponentGroup components, ReadWrite rea
/** Whether to wait for writers when trying to promote */
private static final boolean promotionWaitForWriters = true;
- /** Attempt to promote a tranasaction from READ to WRITE.
+ /** Attempt to promote a transaction from READ to WRITE.
* No-op for a transaction already a writer.
* Throws {@link TransactionException} if the promotion
* can not be done.
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionInfo.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionInfo.java
index e0ab7929611..ee31723f9f8 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionInfo.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionInfo.java
@@ -48,7 +48,7 @@ public interface TransactionInfo {
/** Has the transaction gone through all lifecycle states? */
public boolean hasFinalised() ;
- /** Get the trasnaction id for this transaction. Unique within this OS process (JVM) at least . */
+ /** Get the transaction id for this transaction. Unique within this OS process (JVM) at least . */
public TxnId getTxnId() ;
/** What mode is this transaction?
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionalComponent.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionalComponent.java
index 46253fe3d99..c5b541c59ea 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionalComponent.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TransactionalComponent.java
@@ -30,7 +30,7 @@
* Transactions were either were properly committed by the previous coordinator,
* and hence redo actions (finalization) should be done,
* or they were not, in which case undo actions may be needed.
-* Transctions to discard are not notified, only fully commited transaction are
+* Transctions to discard are not notified, only fully committed transaction are
* notified during recovery. The component may need to keepit's own record of
* undo actions needed across restarts.
*
@@ -38,7 +38,7 @@
*
*
{@link #startRecovery}
*
{@link #recover} for each commited/durable transaction (redo actions)
-*
{@link #finishRecovery}, discarding any othe transactions (undo actions).
+*
{@link #finishRecovery}, discarding any other transactions (undo actions).
*
*
* Lifecycle of a read transaction:
@@ -101,7 +101,7 @@ public interface TransactionalComponent
*/
public void recover(ByteBuffer ref) ;
- /** End of the receovery phase */
+ /** End of the recovery phase */
public void finishRecovery() ;
/** Indicate that no recovery is being done (the journal thinks everything was completed last time) */
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnId.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnId.java
index 166b4877efd..501827b7114 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnId.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnId.java
@@ -20,7 +20,7 @@
/**
- * {@code TxnId} is a identfier for a transaction.
+ * {@code TxnId} is a identifier for a transaction.
* A component in a transaction can use it as a unique key.
* The {@code TxnId}
*
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdFactory.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdFactory.java
index a93d5b5d11a..666d8be7f4c 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdFactory.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdFactory.java
@@ -26,24 +26,24 @@
* @see TxnId
*/
public class TxnIdFactory {
- /** Generator for {@link TxnId}s for the counter based implemention. */
+ /** Generator for {@link TxnId}s for the counter based implementation. */
public static final TxnIdGenerator txnIdGenSimple = ()->TxnIdSimple.create() ;
- /** Generator for {@link TxnId}s for the UUID based implemention. */
+ /** Generator for {@link TxnId}s for the UUID based implementation. */
public static final TxnIdGenerator txnIdGenUuid = ()->TxnIdUuid.create() ;
/** Return the default, good enough for one JVM
- * (usually the simple counter based implemention)
+ * (usually the simple counter based implementation)
*/
public static TxnId create() {
return createSimple() ;
}
- /** Return a TxnId from the counter based implemention. */
+ /** Return a TxnId from the counter based implementation. */
public static TxnId createSimple() {
return txnIdGenSimple.generate() ;
}
- /** Return a TxnId from the UUID based implemention. */
+ /** Return a TxnId from the UUID based implementation. */
public static TxnId createUuid() {
return txnIdGenUuid.generate() ;
}
diff --git a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdGenerator.java b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdGenerator.java
index ab4e5ba67e1..106869ef4be 100644
--- a/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdGenerator.java
+++ b/jena-db/jena-dboe-transaction/src/main/java/org/apache/jena/dboe/transaction/txn/TxnIdGenerator.java
@@ -21,7 +21,7 @@
/**
* Generator of {@link TxnId}s.
- * {@code TxnId} is a identfier for a transaction.
+ * {@code TxnId} is a identifier for a transaction.
* A component in a transaction can use it as a unique key.
* The {@code TxnId}
*
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2.java
index 63e4609877a..cc1a62b79eb 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2.java
@@ -173,7 +173,7 @@ public static void sync(Graph graph) {
/**
* Sync a TDB synchronizable object (model, graph, dataset). If force is
* true, synchronize as much as possible (e.g. file metadata) else make a
- * reasonable attenpt at synchronization but does not gauarantee disk state.
+ * reasonable attempt at synchronization but does not guarantee disk state.
* Do nothing otherwise
*/
private static void syncObject(Object object) {
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2Factory.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2Factory.java
index 078a1139a24..62952d0b24c 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2Factory.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/TDB2Factory.java
@@ -91,7 +91,7 @@ public static Dataset connectDataset(String location) {
// _release(location(dataset)) ;
// }
- /** Tes whether a dataset is backed by TDB or not. */
+ /** Test whether a dataset is backed by TDB or not. */
public static boolean isBackedByTDB(Dataset dataset) {
DatasetGraph dsg = dataset.asDatasetGraph() ;
return DatabaseMgr.isBackedByTDB(dsg) ;
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/lib/Async.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/lib/Async.java
index 225936b507b..3aee95d941d 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/lib/Async.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/lib/Async.java
@@ -22,7 +22,7 @@
import org.apache.jena.tdb2.TDBException;
-/** Asyncrhonous operations support
+/** Asynchronous operations support
* This class provides a simple framework for asynchronous operations.
* There is a thread pool and a pending queue.
*
@@ -57,7 +57,7 @@ public Async(int threadPoolSize, int pendingQueueLimit) {
this.outstanding = new ArrayBlockingQueue<>(BlockingQueueSize) ;
}
- /** Block until all pending oeprations has been completed */
+ /** Block until all pending operations has been completed */
public void completeAsyncOperations() {
reduceAsyncQueue(0) ;
}
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParams.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParams.java
index 629fd683199..b55310698a9 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParams.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParams.java
@@ -123,7 +123,7 @@ public static StoreParams getDftStoreParams() {
/** A {@code StoreParams} that provides a smaller
* in-JVM foot print. This is compatible with
- * any database but it it is wise to use this consistently,
+ * any database but it is wise to use this consistently,
* that is, use when created and when opened later.
* It reduces cache sizes and runs the database in "direct"
* file mode so as not to use memory mapped files
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParamsDynamic.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParamsDynamic.java
index 5939acc9ae1..0793f16ef36 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParamsDynamic.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/setup/StoreParamsDynamic.java
@@ -21,7 +21,7 @@
import org.apache.jena.dboe.base.block.FileMode;
/** Store parameters that can be adjusted after a store has been created,
- * and given different values when the JVM attachs to a store area.
+ * and given different values when the JVM attaches to a store area.
* (They are still fixed for any given database once created in a JVM.)
*/
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/solver/StageMatchTuple.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/solver/StageMatchTuple.java
index 99d3d06200a..397a4d65f9f 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/solver/StageMatchTuple.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/solver/StageMatchTuple.java
@@ -59,7 +59,7 @@ public StageMatchTuple(NodeTupleTable nodeTupleTable, Iterator in
/** Prepare a pattern (tuple of nodes), and an existing binding of NodeId, into NodeIds and Variables.
* A variable in the pattern is replaced by its binding or null in the Nodeids.
* A variable that is not bound by the binding is placed in the var array.
- * Return false if preparation detechs the pattern can not match.
+ * Return false if preparation detects the pattern can not match.
*/
public static boolean prepare(NodeTable nodeTable, Tuple patternTuple, BindingNodeId input, NodeId ids[], Var[] var)
{
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetable/NodeTable.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetable/NodeTable.java
index 3cdef942b3c..a7d217c13e3 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetable/NodeTable.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetable/NodeTable.java
@@ -28,7 +28,7 @@
import org.apache.jena.tdb2.store.NodeId;
/** Node table - conceptually a two way mapping of Node<->NodeId
- * where Nodes can be staored and a NodeId allocated
+ * where Nodes can be stored and a NodeId allocated
* @see NodeId
*/
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTable.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTable.java
index ef610a12fa5..96e6054a040 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTable.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTable.java
@@ -49,7 +49,7 @@ public interface NodeTupleTable extends Sync, Closeable
/** Find all tuples */
public Iterator> findAll() ;
- /** Return the undelying tuple table - used with great care by tools
+ /** Return the underlying tuple table - used with great care by tools
* that directly manipulate internal structures.
*/
public TupleTable getTupleTable() ;
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTableConcrete.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTableConcrete.java
index 55671f7723c..806600a6236 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTableConcrete.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/nodetupletable/NodeTupleTableConcrete.java
@@ -185,7 +185,7 @@ protected final NodeId idForNode(Node node) {
// ==== Accessors
/**
- * Return the undelying tuple table - used with great care by tools that directly
+ * Return the underlying tuple table - used with great care by tools that directly
* manipulate internal structures.
*/
@Override
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/tupletable/TupleTable.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/tupletable/TupleTable.java
index 42658fa48a2..a89c74c7bdf 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/tupletable/TupleTable.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/tupletable/TupleTable.java
@@ -201,7 +201,7 @@ public long size() {
/** Get i'th index */
public TupleIndex getIndex(int i) { return indexes[i] ; }
- /** Get all indexes - for code that maipulates internal structures directly - use with care */
+ /** Get all indexes - for code that manipulates internal structures directly - use with care */
public TupleIndex[] getIndexes() { return indexes ; }
/** Get the width of tuples in indexes in this table */
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/value/DoubleNode62.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/value/DoubleNode62.java
index 3a98d7e1cf6..ac3d68e419f 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/value/DoubleNode62.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/store/value/DoubleNode62.java
@@ -66,7 +66,7 @@
*
* "No encoding" is 0xFF00_0000_0000_0000L which would otherwise be the smallest (most negative) denormalized value:
* -3.5336941295567687E72
- *
All unencodeable numbers wil endup in the node table in full lexical form.
+ *
All unencodeable numbers will endup in the node table in full lexical form.
*/
public class DoubleNode62 {
/**
@@ -238,4 +238,4 @@ else if ( exp9 == 0x1FF )
* @see Double#SIZE
*/
public static final int SIZE = 62;
-}
\ No newline at end of file
+}
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/DatabaseOps.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/DatabaseOps.java
index 86651f97c91..3edb5dbbf9f 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/DatabaseOps.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/DatabaseOps.java
@@ -54,7 +54,7 @@
* Directory and files on disk:
*
*
{@code Data-NNNN/} -- databases by version. Compacting creates a new directory, leaving
- *
store params, static (disk layout related - can not chnage once created) and dynamic (settings related to in-memory).
+ *
store params, static (disk layout related - can not change once created) and dynamic (settings related to in-memory).
*
{@code Backups/} -- backups.
*
External indexes like {@code TextIndex/} -- the text index only applies to the current, latest database.
*
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/FilenameUtils.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/FilenameUtils.java
index 3d3af62be7d..71eba27830f 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/FilenameUtils.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/FilenameUtils.java
@@ -75,7 +75,7 @@ public static List scanForDirByPattern(Path directory, String namebase, St
}
/**
- * Extract the inde from a version-ed filename. (Base-NNNN format).
+ * Extract the index from a version-ed filename. (Base-NNNN format).
* @param name
* @param namebase
* @param nameSep
diff --git a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/IOX.java b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/IOX.java
index a38f8d0c993..aa8ecd3502b 100644
--- a/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/IOX.java
+++ b/jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/sys/IOX.java
@@ -77,7 +77,7 @@ public static RuntimeIOException exception(String message, IOException ioExcepti
}
/** Write a file safely - the change happens (the function returns true) or
- * somthing went wrong (the function throws a runtime exception) and the file is not changed.
+ * something went wrong (the function throws a runtime exception) and the file is not changed.
* Note that the tempfile must be in the same direct as the actual file so an OS-atomic rename can be done.
*/
public static boolean safeWrite(Path file, IOConsumer writerAction) {
@@ -86,7 +86,7 @@ public static boolean safeWrite(Path file, IOConsumer writerAction
}
/** Write a file safely - the change happens (the function returns true) or
- * somthing went wrong (the function throws a runtime exception) and the file is not changed.
+ * something went wrong (the function throws a runtime exception) and the file is not changed.
* Note that the tempfile must be in the same direct as the actual file so an OS-atomic rename can be done.
*/
public static boolean safeWrite(Path file, Path tmpFile, IOConsumer writerAction) {
@@ -138,7 +138,7 @@ public static void copy(String srcFilename, String dstFilename) {
}
}
- /** Create a directory - thgrow a runtime exception if theer are any problems.
+ /** Create a directory - thgrow a runtime exception if there are any problems.
* This function wraps {@code Files.createDirectory}.
*/
public static void createDirectory(Path dir) {
@@ -224,7 +224,7 @@ public static Path createTempFile(Path dir, String prefix, String suffix, FileAt
}
/** Generate a unique place related to path;
- * Optionally, provide a mapping of old name to new nae base.
+ * Optionally, provide a mapping of old name to new namebase.
* This method always adds "-1", "-2" etc.
*/
public static Path uniqueDerivedPath(Path path, Function basenameMapping) {
diff --git a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/BlockedNQuadsReader.java b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/BlockedNQuadsReader.java
index ad46cde329d..eb081522196 100644
--- a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/BlockedNQuadsReader.java
+++ b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/BlockedNQuadsReader.java
@@ -22,7 +22,7 @@
import org.apache.jena.riot.Lang;
/**
- * A record record for NQuads
+ * A record for NQuads
*
* This is a hybrid of the {@link NQuadsReader} and the
* {@link WholeFileNQuadsReader} in that it does not process individual lines
diff --git a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/WholeFileNQuadsReader.java b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/WholeFileNQuadsReader.java
index b96d458d4d2..d5f36a394aa 100644
--- a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/WholeFileNQuadsReader.java
+++ b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/nquads/WholeFileNQuadsReader.java
@@ -22,7 +22,7 @@
import org.apache.jena.riot.Lang;
/**
- * A record record for NQuads
+ * A record for NQuads
*
* Unlike the {@link NQuadsReader} this processes files as a whole rather than
* individual lines. This has the advantage of less parser setup overhead but
diff --git a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/BlockedNTriplesReader.java b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/BlockedNTriplesReader.java
index ee6ee2283bb..aa5698443ce 100644
--- a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/BlockedNTriplesReader.java
+++ b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/BlockedNTriplesReader.java
@@ -22,7 +22,7 @@
import org.apache.jena.riot.Lang;
/**
- * A record record for NTriples
+ * A record for NTriples
*
* This is a hybrid of the {@link NTriplesReader} and the
* {@link WholeFileNTriplesReader} in that it does not process individual lines
diff --git a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/WholeFileNTriplesReader.java b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/WholeFileNTriplesReader.java
index b01c3dff5d4..c6d1be30bcb 100644
--- a/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/WholeFileNTriplesReader.java
+++ b/jena-elephas/jena-elephas-io/src/main/java/org/apache/jena/hadoop/rdf/io/input/readers/ntriples/WholeFileNTriplesReader.java
@@ -22,7 +22,7 @@
import org.apache.jena.riot.Lang;
/**
- * A record record for NTriples
+ * A record for NTriples
*
* Unlike the {@link NTriplesReader} this processes files as a whole rather than
* individual lines. This has the advantage of less parser setup overhead but
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/SelectBuilder.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/SelectBuilder.java
index a0ecd904a69..ec6cfde0b9d 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/SelectBuilder.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/SelectBuilder.java
@@ -74,7 +74,7 @@ public SelectBuilder clone() {
}
/**
- * Set set the distinct flag.
+ * Set the distinct flag.
*
* Setting the select distinct will unset reduced if it was set.
*
@@ -88,7 +88,7 @@ public SelectBuilder setDistinct(boolean state) {
}
/**
- * Set set the reduced flag.
+ * Set the reduced flag.
*
* Setting the select reduced will unset distinct if it was set.
*
@@ -407,4 +407,4 @@ public SelectBuilder addMinus( AbstractQueryBuilder> t ) {
getWhereHandler().addMinus( t );
return this;
}
-}
\ No newline at end of file
+}
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/UpdateBuilder.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/UpdateBuilder.java
index 93aeae6c537..f6a6eb58e52 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/UpdateBuilder.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/UpdateBuilder.java
@@ -567,7 +567,7 @@ public UpdateBuilder addPrefixes(Map prefixes) {
/**
* Get an ExprFactory that uses the prefixes from this builder.
*
- * @return the EpxressionFactory.
+ * @return the ExpressionFactory.
*/
public ExprFactory getExprFactory() {
return prefixHandler.getExprFactory();
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/clauses/ValuesClause.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/clauses/ValuesClause.java
index fe479ef2db1..41cd8074dfa 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/clauses/ValuesClause.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/clauses/ValuesClause.java
@@ -97,7 +97,7 @@ public interface ValuesClause> {
* The order in which variables
* are added to the values table is preserved.
*
- * Each item in the value collectionis converted into a node using makeNode() strategy except that null values are converted
+ * Each item in the value collection is converted into a node using makeNode() strategy except that null values are converted
* to UNDEF.
*
* If there are already values in the value statement the data table is adds as follows:
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/HandlerBlock.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/HandlerBlock.java
index 41bd925a82f..38d0c14a0bf 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/HandlerBlock.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/HandlerBlock.java
@@ -271,7 +271,7 @@ public void setVars(Map values) {
}
/**
- * Build all the the enclosed handlers in the proper order.
+ * Build all the enclosed handlers in the proper order.
*/
public void build() {
prologHandler.build();
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/PrologHandler.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/PrologHandler.java
index 9741a7cbac4..e027602c6a9 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/PrologHandler.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/PrologHandler.java
@@ -29,7 +29,7 @@
import org.apache.jena.sparql.core.Var ;
/**
- * The proglog handler
+ * The prolog handler
*
*/
public class PrologHandler implements Handler {
@@ -51,7 +51,7 @@ public PrologHandler(Query query) {
* Removes ':' from the end of the name if present.
*
* @param x The prefix name
- * @return The prefix name with the trialing ':' removed.
+ * @return The prefix name with the trailing ':' removed.
*/
private static String canonicalPfx(String x) {
if (x.endsWith(":"))
@@ -94,7 +94,7 @@ public void clearPrefixes() {
/**
* Add the map of prefixes to the query prefixes.
- * @param prefixes The map of prefixs to URIs.
+ * @param prefixes The map of prefixes to URIs.
*/
public void addPrefixes(Map prefixes) {
for (Map.Entry e : prefixes.entrySet()) {
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SelectHandler.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SelectHandler.java
index a42f305f6b4..44e69711a5d 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SelectHandler.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SelectHandler.java
@@ -116,7 +116,7 @@ public void addVar(String expression, Var var) {
*
* @param s
* the select string to parse.
- * @return the epxression
+ * @return the expression
* @throws QueryParseException
* on error
*/
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SolutionModifierHandler.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SolutionModifierHandler.java
index 7544825057e..b9357a8cd2b 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SolutionModifierHandler.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/handlers/SolutionModifierHandler.java
@@ -170,7 +170,7 @@ public void addHaving(Expr expr) {
/**
* Set the limit for the number of results to return.
* Setting the limit to zero (0) or removes the limit.
- * @param limit THe limit to set.
+ * @param limit The limit to set.
*/
public void setLimit(int limit) {
query.setLimit(limit < 1 ? Query.NOLIMIT : limit);
@@ -179,7 +179,7 @@ public void setLimit(int limit) {
/**
* Set the offset for the results to return.
* Setting the offset to zero (0) or removes the offset.
- * @param offset THe offset to set.
+ * @param offset The offset to set.
*/
public void setOffset(int offset) {
query.setOffset(offset < 1 ? Query.NOLIMIT : offset);
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/AbstractRewriter.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/AbstractRewriter.java
index 0af74dbcc84..1ca40045c51 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/AbstractRewriter.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/AbstractRewriter.java
@@ -119,8 +119,8 @@ protected final Triple rewrite(Triple t) {
/**
* If the node is a variable perform any necessary rewrite, otherwise return the node.
- * @param n The node to to rewrite.
- * @return the rewriten node.
+ * @param n The node to rewrite.
+ * @return the rewritten node.
*/
protected final Node changeNode(Node n) {
if (n.isVariable()) {
@@ -180,7 +180,7 @@ protected final Binding rewrite(Binding binding) {
/**
* Rewrite a variable expression list.
* @param lst The variable expression list.
- * @return the rewritten variable expresson list.
+ * @return the rewritten variable expression list.
*/
public final VarExprList rewrite(VarExprList lst) {
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/NodeValueRewriter.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/NodeValueRewriter.java
index d11ddc8bc56..31bc7f6b2d4 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/NodeValueRewriter.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/rewriters/NodeValueRewriter.java
@@ -25,7 +25,7 @@
import org.apache.jena.sparql.expr.nodevalue.* ;
/**
- * A rewriter that implements NoveValueVisitor
+ * A rewriter that implements NodeValueVisitor
*
*/
class NodeValueRewriter extends AbstractRewriter implements
@@ -96,4 +96,4 @@ public void visit(NodeValueLang nv) {
push( new NodeValueLang( changeNode(nv.getNode() )));
}
-}
\ No newline at end of file
+}
diff --git a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/updatebuilder/PrefixHandler.java b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/updatebuilder/PrefixHandler.java
index 5713e046375..5b55b34f2d2 100644
--- a/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/updatebuilder/PrefixHandler.java
+++ b/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/updatebuilder/PrefixHandler.java
@@ -53,7 +53,7 @@ public PrefixHandler() {
* Removes ':' from the end of the name if present.
*
* @param x The prefix name
- * @return The prefix name with the trialing ':' removed.
+ * @return The prefix name with the trailing ':' removed.
*/
private static String canonicalPfx(String x) {
if (x.endsWith(":"))
@@ -106,7 +106,7 @@ public ExprFactory getExprFactory() {
/**
* Add prefixes from a prefix mapping.
- * @param prefixes THe prefix mapping to add from.
+ * @param prefixes The prefix mapping to add from.
*/
public void addPrefixes(PrefixMapping prefixes) {
pMap.setNsPrefixes(prefixes);
diff --git a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtCmdServlet.java b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtCmdServlet.java
index 3db9a109f4b..f4f6978cdcd 100644
--- a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtCmdServlet.java
+++ b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtCmdServlet.java
@@ -40,7 +40,7 @@
import org.apache.jena.web.HttpSC ;
import org.slf4j.Logger ;
-/** Control functions for a Fuskei server */
+/** Control functions for a Fuseki server */
public class MgtCmdServlet extends HttpServlet
{
diff --git a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtFunctions.java b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtFunctions.java
index bf956e9f12c..126d35aee43 100644
--- a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtFunctions.java
+++ b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/MgtFunctions.java
@@ -57,7 +57,7 @@ public static String dataset(HttpServletRequest request)
return ds ;
}
- /** Return the dataset description reference for currnet dataset */
+ /** Return the dataset description reference for current dataset */
public static DatasetRef datasetDesc(HttpServletRequest request)
{
HttpSession session = request.getSession(false) ;
diff --git a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/PingServlet.java b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/PingServlet.java
index 863da9c6c16..df3a426a05f 100644
--- a/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/PingServlet.java
+++ b/jena-fuseki1/src/main/java/org/apache/jena/fuseki/mgt/PingServlet.java
@@ -34,7 +34,7 @@
import org.apache.jena.web.HttpSC ;
/**
- * The ping servlet provides a low costy, uncached endpoint that can be used
+ * The ping servlet provides a low cost, uncached endpoint that can be used
* to determine if this component is running and responding. For example,
* a nagios check should use this endpoint.
*/
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/build/FusekiConfig.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/build/FusekiConfig.java
index 5213f01013b..6e6463287a4 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/build/FusekiConfig.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/build/FusekiConfig.java
@@ -199,7 +199,7 @@ public static List readConfigurationFile(String fn) {
}
/** Read a configuration in a model.
- * Allow dataset descriptions to be carried over from anothe rplace.
+ * Allow dataset descriptions to be carried over from another place.
* Add to a list.
*/
private static void readConfiguration(Model m, DatasetDescriptionRegistry dsDescMap, List dataServiceRef) {
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionContainerItem.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionContainerItem.java
index 436dc6f8015..640055a9289 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionContainerItem.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionContainerItem.java
@@ -80,7 +80,7 @@ protected void execGet(HttpAction action) {
/** GET request on the container - respond with JSON, or null for plain 200 */
protected abstract JsonValue execGetContainer(HttpAction action) ;
- /** GET request on an item in the container - repond with JSON, or null for plain 200 */
+ /** GET request on an item in the container - respond with JSON, or null for plain 200 */
protected abstract JsonValue execGetItem(HttpAction action) ;
protected void execPost(HttpAction action) {
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionPing.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionPing.java
index 4b1a25f170b..15e4e396096 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionPing.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/ActionPing.java
@@ -33,7 +33,7 @@
import org.apache.jena.fuseki.servlets.ServletOps ;
import org.apache.jena.web.HttpSC ;
-/** The ping servlet provides a low costy, uncached endpoint that can be used
+/** The ping servlet provides a low cost, uncached endpoint that can be used
* to determine if this component is running and responding. For example,
* a nagios check should use this endpoint.
*/
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/Backup.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/Backup.java
index 644e9537699..bc85c603a0b 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/Backup.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/Backup.java
@@ -62,7 +62,7 @@ public static String chooseFileName(String dsName) {
private static Set activeBackups = Collections.newSetFromMap(new ConcurrentHashMap<>());
/** Perform a backup.
- * A backup is a dump of the dataset in comrpessed N-Quads, done inside a transaction.
+ * A backup is a dump of the dataset in compressed N-Quads, done inside a transaction.
*/
public static void backup(Transactional transactional, DatasetGraph dsg, String backupfile) {
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/MgtConst.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/MgtConst.java
index 7302f16644d..85cfd262f52 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/MgtConst.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/MgtConst.java
@@ -18,7 +18,7 @@
package org.apache.jena.fuseki.mgt;
-/** Various contants used in the admin functions */
+/** Various constants used in the admin functions */
public class MgtConst {
public static final String opDump = "dump" ;
public static final String opPing = "ping" ;
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/TaskBase.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/TaskBase.java
index b9f5f227524..52282e2c28d 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/TaskBase.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/mgt/TaskBase.java
@@ -22,7 +22,7 @@
import org.apache.jena.sparql.core.DatasetGraph ;
import org.apache.jena.sparql.core.Transactional ;
-/** Base of async tasks - this caries some useful information aroud, leaving the
+/** Base of async tasks - this caries some useful information around, leaving the
* implementation of Callable.run() to the specific task.
*/
abstract class TaskBase implements Runnable {
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiEnv.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiEnv.java
index 71195d59e98..c794459d4f2 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiEnv.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiEnv.java
@@ -102,7 +102,7 @@ public static synchronized void setEnvironment() {
resetEnvironment();
}
- /** Reset environment - use with care and bfore server start up */
+ /** Reset environment - use with care and before server start up */
public static synchronized void resetEnvironment() {
initialized = true ;
logInit("FusekiEnv:Start: ENV_FUSEKI_HOME = %s : ENV_FUSEKI_BASE = %s : MODE = %s", FUSEKI_HOME, FUSEKI_BASE, mode) ;
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerEnvironmentInit.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerEnvironmentInit.java
index c19d24147fa..434abf3c314 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerEnvironmentInit.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerEnvironmentInit.java
@@ -24,7 +24,7 @@
import org.apache.jena.fuseki.FusekiLogging ;
import org.apache.jena.system.JenaSystem ;
-/** Setup the enviroment and logging.
+/** Setup the environment and logging.
* Runs before the {@link ShiroEnvironmentLoader}.
* The main configuration happens in {@link FusekiServerListener} which runs after {@link ShiroEnvironmentLoader}.
*/
@@ -50,4 +50,4 @@ public void contextDestroyed(ServletContextEvent sce) {
// DatasetDescriptionRegistry.reset() ;
JenaSystem.shutdown();
}
-}
\ No newline at end of file
+}
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerListener.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerListener.java
index ebf9f3d3b22..231a0fabcc9 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerListener.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/FusekiServerListener.java
@@ -26,7 +26,7 @@
import org.apache.jena.fuseki.FusekiException;
import org.apache.jena.tdb.StoreConnection ;
-/** Setup configurtation.
+/** Setup configuration.
* The order is controlled by {@code web.xml}:
*
*
{@link FusekiServerEnvironmentInit}
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/ShiroEnvironmentLoader.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/ShiroEnvironmentLoader.java
index 03d7c1c74a0..1521cf137dd 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/ShiroEnvironmentLoader.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/ShiroEnvironmentLoader.java
@@ -67,7 +67,7 @@ public void contextDestroyed(ServletContextEvent sce) {
/**
* Normal Shiro initialization only supports one location for an INI file.
*
- * When given multiple multiple locations for the shiro.ini file, and
+ * When given multiple locations for the shiro.ini file, and
* if a {@link ResourceBasedWebEnvironment}, check the list of configuration
* locations, testing whether the name identified an existing resource.
* For the first resource name found to exist, reset the {@link ResourceBasedWebEnvironment}
diff --git a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Upload.java b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Upload.java
index d4ea8aea8cf..1dc53dff72c 100644
--- a/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Upload.java
+++ b/jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Upload.java
@@ -176,7 +176,7 @@ static class UploadDetails {
}
}
- /** Process an HTTP file upload of RDF with additiona name field for the graph name.
+ /** Process an HTTP file upload of RDF with additional name field for the graph name.
* We can't stream straight into a dataset because the graph name can be after the data.
* @return graph name and count
*/
diff --git a/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiEmbeddedServer.java b/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiEmbeddedServer.java
index 8462d1e5544..402ddf280f5 100644
--- a/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiEmbeddedServer.java
+++ b/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiEmbeddedServer.java
@@ -50,7 +50,7 @@ private FusekiEmbeddedServer(FusekiServer server) {
/**
* Return the port begin used.
- * This will be the give port, which defauls to 3330, or
+ * This will be the give port, which defaults to 3330, or
* the one actually allocated if the port was 0 ("choose a free port").
*/
public int getPort() {
@@ -93,4 +93,4 @@ public void stop() {
public void join() {
server.join();
}
-}
\ No newline at end of file
+}
diff --git a/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java b/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java
index 5e9e8878495..64c39e9bf0c 100644
--- a/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java
+++ b/jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java
@@ -52,7 +52,7 @@
import org.eclipse.jetty.servlet.ServletHolder;
/**
- * Embedded Fuseki server. This is a Fuseki server running with a precofigured set of
+ * Embedded Fuseki server. This is a Fuseki server running with a preconfigured set of
* datasets and services. There is no admin UI and no security.
*
* To create a embedded sever, use {@link FusekiServer} ({@link #make} is a
@@ -110,7 +110,7 @@ private FusekiServer(int port, Server server) {
/**
* Return the port begin used.
- * This will be the give port, which defauls to 3330, or
+ * This will be the give port, which defaults to 3330, or
* the one actually allocated if the port was 0 ("choose a free port").
*/
public int getPort() {
@@ -387,4 +387,4 @@ private static Server jettyServer(int port, boolean loopback) {
return server ;
}
}
-}
\ No newline at end of file
+}
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerHost.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerHost.java
index 566ecc1131e..73f6bacf55d 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerHost.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerHost.java
@@ -1480,7 +1480,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerPath.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerPath.java
index 34903c87e3b..c8707ef6a53 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerPath.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerPath.java
@@ -446,7 +446,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerQuery.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerQuery.java
index d0df1e74690..42528ce9f9a 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerQuery.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerQuery.java
@@ -441,7 +441,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerScheme.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerScheme.java
index 925bc115c4b..fb5cca92180 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerScheme.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerScheme.java
@@ -429,7 +429,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerUserinfo.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerUserinfo.java
index e4e3eee636f..7df1e262722 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerUserinfo.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerUserinfo.java
@@ -441,7 +441,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerXHost.java b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerXHost.java
index 4df19d99f55..e65a1955498 100644
--- a/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerXHost.java
+++ b/jena-iri/src/main/java/org/apache/jena/iri/impl/LexerXHost.java
@@ -452,7 +452,7 @@ private final int yylength() {
/**
- * Reports an error that occured while scanning.
+ * Reports an error that occurred while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
diff --git a/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/utils/JdbcNodeUtils.java b/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/utils/JdbcNodeUtils.java
index 2606c96ef00..248a6a5b694 100644
--- a/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/utils/JdbcNodeUtils.java
+++ b/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/utils/JdbcNodeUtils.java
@@ -371,7 +371,7 @@ public static Timestamp toTimestamp(Node n) throws SQLException {
}
/**
- * Tries to convert a noew to a string
+ * Tries to convert a now to a string
*
* @param n
* Node
diff --git a/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/connections/TDBConnection.java b/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/connections/TDBConnection.java
index 378d1b8f0c1..61987e0cf5f 100644
--- a/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/connections/TDBConnection.java
+++ b/jena-jdbc/jena-jdbc-driver-tdb/src/main/java/org/apache/jena/jdbc/tdb/connections/TDBConnection.java
@@ -40,7 +40,7 @@ public class TDBConnection extends DatasetConnection {
* @param ds Dataset
* @param holdability Result Set holdability
* @param autoCommit Auto-commit mode
- * @param compatibilityLevel JDBC compatability level, see {@link JdbcCompatibility}
+ * @param compatibilityLevel JDBC compatibility level, see {@link JdbcCompatibility}
* @throws SQLException
*/
public TDBConnection(Dataset ds, int holdability, boolean autoCommit, int compatibilityLevel) throws SQLException {
diff --git a/jena-permissions/src/example/java/org/apache/jena/permissions/example/ShiroExampleEvaluator.java b/jena-permissions/src/example/java/org/apache/jena/permissions/example/ShiroExampleEvaluator.java
index 3f719578008..d58c60eb8f4 100644
--- a/jena-permissions/src/example/java/org/apache/jena/permissions/example/ShiroExampleEvaluator.java
+++ b/jena-permissions/src/example/java/org/apache/jena/permissions/example/ShiroExampleEvaluator.java
@@ -65,7 +65,7 @@ public boolean evaluate(Object principal, Action action, Node graphIRI) {
/**
* This is our internal check to see if the user may access the resource.
- * This method is called from the evauate(Object,Node) method.
+ * This method is called from the evaluate(Object,Node) method.
* A user may only access the resource if they are authenticated, and are either the
* sender or the recipient.
* Additionally the admin can always see the messages.
@@ -204,7 +204,7 @@ public boolean evaluateAny(Object principal, Set actions, Node graphIRI,
/**
* As per our design, users can access any triple from a message that is from or to them.
* So for an update they can only change triples they have access to into other triples
- * they have access to. (e.g. they can not remvoe themself from the messsage).
+ * they have access to. (e.g. they can not remove themselves from the message).
*/
@Override
public boolean evaluateUpdate(Object principal, Node graphIRI, Triple from, Triple to) {
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/SecuredItem.java b/jena-permissions/src/main/java/org/apache/jena/permissions/SecuredItem.java
index c982c994477..b75a9d6c409 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/SecuredItem.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/SecuredItem.java
@@ -60,7 +60,7 @@ public static String triplePermissionMsg(final Node modelURI) {
}
/**
- * @return true if the securedModel allows items to to be created.
+ * @return true if the securedModel allows items to be created.
* @throws AuthenticationRequiredException
* if user is not authenticated and is required to be.
*/
@@ -97,7 +97,7 @@ public boolean canCreate(FrontsTriple t)
throws AuthenticationRequiredException;
/**
- * @return true if the securedModel allows items to to be deleted.
+ * @return true if the securedModel allows items to be deleted.
* @throws AuthenticationRequiredException
* if user is not authenticated and is required to be.
*/
@@ -134,7 +134,7 @@ public boolean canDelete(FrontsTriple t)
throws AuthenticationRequiredException;
/**
- * @return true if the securedModel allows items to to be read.
+ * @return true if the securedModel allows items to be read.
* @throws AuthenticationRequiredException
* if user is not authenticated and is required to be.
*/
@@ -148,7 +148,7 @@ public boolean canDelete(FrontsTriple t)
*
* (S, P, O) check if S,P,O can be read. (S, P, ANY) check if there are any
* S,P,x restrictions. (S, ANY, P) check if there are any S,x,P
- * restrictions. (ANY, ANY, ANY) check if there are any restricitons on
+ * restrictions. (ANY, ANY, ANY) check if there are any restrictions on
* reading.
*
* @param t
@@ -172,7 +172,7 @@ public boolean canRead(FrontsTriple t)
throws AuthenticationRequiredException;
/**
- * @return true if the securedModel allows items to to be updated.
+ * @return true if the securedModel allows items to be updated.
* @throws AuthenticationRequiredException
* if user is not authenticated and is required to be.
*/
@@ -250,4 +250,4 @@ public boolean canUpdate(FrontsTriple from, FrontsTriple to)
*/
public boolean isEquivalent(SecuredItem securedItem);
-}
\ No newline at end of file
+}
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/SecurityEvaluator.java b/jena-permissions/src/main/java/org/apache/jena/permissions/SecurityEvaluator.java
index 1c86a7fe923..b442dd3e69c 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/SecurityEvaluator.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/SecurityEvaluator.java
@@ -248,7 +248,7 @@ public boolean evaluate(Object principal, Action action, Node graphIRI)
* explicit triple checks.
* If the system can not quickly verify the solution it is always
* acceptable to return false.
- *
All other triples are explict triples and the system must determine
+ *
All other triples are explicit triples and the system must determine
* if the user is permitted to perform the action on the triple. If the
* triple contains a FUTURE node that node should be considered
* as an anonymous or blank node that is not yet created. It should only be
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/impl/ItemHolder.java b/jena-permissions/src/main/java/org/apache/jena/permissions/impl/ItemHolder.java
index c15f980ae9a..b2b86d5db37 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/impl/ItemHolder.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/impl/ItemHolder.java
@@ -75,10 +75,8 @@ public Base getBaseItem()
* Get the secured item.
*
* This method is used in the invocation handler to get the instance of the
- * proxy that made the
- * on which a method call was made. Generally used in returing the original
- * object to support
- * cascading.
+ * proxy on which a method call was made. Generally used in returning the original
+ * object to support cascading.
*
* @return the proxy.
*/
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredModel.java b/jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredModel.java
index 08aca4f01f4..0e7cd01ae92 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredModel.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/model/SecuredModel.java
@@ -940,7 +940,7 @@ public void enterCriticalSection(final boolean readLockRequested)
* reification existed
* @sec.triple Create Triple( result, RDF.subject, s.getSubject() ) if
* reification did not exist.
- * @sec.triple Create Triple( result, RDF.redicate, s.getPredicate() ) if
+ * @sec.triple Create Triple( result, RDF.predicate, s.getPredicate() ) if
* reification did not exist
* @sec.triple Create Triple( result, RDF.object, s.getObject() ) if
* reification did not exist
@@ -1030,7 +1030,7 @@ public SecuredStatement getProperty(final Resource s, final Property p, final St
/**
* . If the PropertyNotFoundException was thrown by the enclosed
* securedModel and the user can not read Triple(s, p, SecNode.ANY)
- * AccessDeniedExcepiton is thrown, otherwise the PropertyNotFoundException
+ * AccessDeniedException is thrown, otherwise the PropertyNotFoundException
* will be thrown.
*
* @sec.graph Read
@@ -1049,7 +1049,7 @@ public SecuredStatement getRequiredProperty(final Resource s, final Property p)
/**
* . If the PropertyNotFoundException was thrown by the enclosed
* securedModel and the user can not read Triple(s, p, SecNode.ANY)
- * AccessDeniedExcepiton is thrown, otherwise the PropertyNotFoundException
+ * AccessDeniedException is thrown, otherwise the PropertyNotFoundException
* will be thrown.
*
* @sec.graph Read
@@ -1622,7 +1622,7 @@ public SecuredModel register(final ModelChangedListener listener)
/**
*
* @sec.graph Update
- * @sec.triple Delete on every statement in statments.
+ * @sec.triple Delete on every statement in statements.
* @throws UpdateDeniedException
* @throws DeleteDeniedException
* @throws AuthenticationRequiredException
@@ -1661,7 +1661,7 @@ public SecuredModel remove(final Resource s, final Property p, final RDFNode o)
/**
*
* @sec.graph Update
- * @sec.triple Delete on statment.
+ * @sec.triple Delete on statement.
* @throws UpdateDeniedException
* @throws DeleteDeniedException
* @throws AuthenticationRequiredException
@@ -1674,7 +1674,7 @@ public SecuredModel remove(final Statement s)
/**
*
* @sec.graph Update
- * @sec.triple Delete on every statement in statments.
+ * @sec.triple Delete on every statement in statements.
* @throws UpdateDeniedException
* @throws DeleteDeniedException
* @throws AuthenticationRequiredException
@@ -1727,7 +1727,7 @@ public SecuredModel removeAll(final Resource s, final Property p, final RDFNode
*
* @sec.graph Update
* @sec.triple Delete on every reification statement for each statement in
- * statments.
+ * statements.
* @throws UpdateDeniedException
* @throws DeleteDeniedException
* @throws AuthenticationRequiredException
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredLiteralImpl.java b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredLiteralImpl.java
index 85016d886f8..83e692ef8f4 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredLiteralImpl.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredLiteralImpl.java
@@ -245,7 +245,7 @@ public boolean isWellFormedXML() throws ReadDeniedException,
/**
* Test that two literals are semantically equivalent. In some cases this
- * may be the sames as equals, in others equals is stricter. For example,
+ * may be the same as equals, in others equals is stricter. For example,
* two xsd:int literals with the same value but different language tag are
* semantically equivalent but distinguished by the java equality function
* in order to support round tripping.
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredRDFNodeImpl.java b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredRDFNodeImpl.java
index 9c4a80ee85e..e98d9b94ae9 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredRDFNodeImpl.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredRDFNodeImpl.java
@@ -181,7 +181,7 @@ public boolean isURIResource() {
/**
* An RDFNode is equal to another enhanced node n iff the underlying nodes
* are equal. We generalise to allow the other object to be any class
- * implementing asNode, because we allow other implemementations of
+ * implementing asNode, because we allow other implementations of
* Resource, at least in principle. This is deemed to be a complete and
* correct interpretation of RDFNode equality, which is why this method has
* been marked final.
diff --git a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredResourceImpl.java b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredResourceImpl.java
index 60bbcf4102c..aade38979ce 100644
--- a/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredResourceImpl.java
+++ b/jena-permissions/src/main/java/org/apache/jena/permissions/model/impl/SecuredResourceImpl.java
@@ -185,7 +185,7 @@ public SecuredResource addLiteral(final Property value, final float d)
/**
* Add the property p with the pre-constructed Literal value
* o to this resource, ie add (this, p, o) to this's
- * securedModel. Answer this resource. NOTE thjat this is distinct
+ * securedModel. Answer this resource. NOTE that this is distinct
* from the other addLiteral methods in that the Literal is not turned into
* a Literal.
*
@@ -396,7 +396,7 @@ public SecuredResource commit() {
}
/**
- * Returns an a unique identifier for anonymous resources.
+ * Returns a unique identifier for anonymous resources.
*
*
* The id is unique within the scope of a particular implementation. All
diff --git a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
index 3adae394b4b..a1109d38b73 100644
--- a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
+++ b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
@@ -309,7 +309,7 @@ public default void update(String updateString) {
/**
* Delete a graph from the dataset.
- * Null or "default" measn the default graph, which is cleared, not removed.
+ * Null or "default" means the default graph, which is cleared, not removed.
*
* @param graphName
*/
diff --git a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionRemote.java b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionRemote.java
index 0a67930a430..8f5b359589e 100644
--- a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionRemote.java
+++ b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionRemote.java
@@ -211,7 +211,7 @@ protected void upload(String graph, String file, boolean replace) {
doPutPost(url, file, lang, replace);
}
- /** Send a file to named graph (or "default" or null for the defaultl graph).
+ /** Send a file to named graph (or "default" or null for the default graph).
*
* The Content-Type is taken from the given {@code Lang}.
*
@@ -230,7 +230,7 @@ protected void doPutPost(String url, String file, Lang lang, boolean replace) {
});
}
- /** Send a model to named graph (or "default" or null for the defaultl graph).
+ /** Send a model to named graph (or "default" or null for the default graph).
*
* The Content-Type is taken from the given {@code Lang}.
*
@@ -318,7 +318,7 @@ protected void doPutPostDataset(String file, boolean replace) {
});
}
- /** Do a PUT or POST to a dataset, sending the contents of a daatsets.
+ /** Do a PUT or POST to a dataset, sending the contents of a datasets.
* The Content-Type is {@code application/n-quads}.
*
* "Replace" implies PUT, otherwise a POST is used.
diff --git a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFDatasetConnection.java b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFDatasetConnection.java
index 330dc3de896..7be5dc1e9c1 100644
--- a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFDatasetConnection.java
+++ b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFDatasetConnection.java
@@ -98,7 +98,7 @@ public interface RDFDatasetConnection extends RDFDatasetAccessConnection, Transa
/**
* Delete a graph from the dataset.
- * Null or "default" measn the default graph, which is cleared, not removed.
+ * Null or "default" means the default graph, which is cleared, not removed.
*
* @param graphName
*/
diff --git a/jena-sdb/src-examples/sdb/examples/ExJdbcConnection.java b/jena-sdb/src-examples/sdb/examples/ExJdbcConnection.java
index e866c8be42a..0f2baea9fbe 100644
--- a/jena-sdb/src-examples/sdb/examples/ExJdbcConnection.java
+++ b/jena-sdb/src-examples/sdb/examples/ExJdbcConnection.java
@@ -36,7 +36,7 @@
import org.apache.jena.sdb.store.LayoutType ;
import org.apache.jena.sdb.store.StoreFactory ;
-/** Managed JDBC connections : creat */
+/** Managed JDBC connections : create */
public class ExJdbcConnection
{
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/SDBFactory.java b/jena-sdb/src/main/java/org/apache/jena/sdb/SDBFactory.java
index 62b72880dab..089d79a3545 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/SDBFactory.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/SDBFactory.java
@@ -108,7 +108,7 @@ public static Connection createSqlConnection(Model model)
/**
* Connect to a store, based on store and connection descriptions in a file.
- * @param configFile Filename for assembler for Store and SDBConenction
+ * @param configFile Filename for assembler for Store and SDBConnection
* @return Store
*/
public static Store connectStore(String configFile)
@@ -263,7 +263,7 @@ public static DatasetGraph connectDatasetGraph(Connection jdbcConnection, StoreD
* @param jdbcConnection JDBC connection
* @param desc Store description object
* @return GraphStore
- * @deprected Use connectDatasetGraph(Connection, StoreDesc)
+ * @deprecated Use connectDatasetGraph(Connection, StoreDesc)
*/
@Deprecated
public static GraphStore connectGraphStore(Connection jdbcConnection, StoreDesc desc)
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/Store.java b/jena-sdb/src/main/java/org/apache/jena/sdb/Store.java
index 8da4ccdc02a..a35e5ed2d9a 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/Store.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/Store.java
@@ -33,7 +33,7 @@
*
* A store consists of a number of handlers for different aspects of
* the process of setting up and querying a database-backed Store. This
- * means Store for new databases can be assmelbed from those standard
+ * means Store for new databases can be assembled from those standard
* components that work, with database-specific code only where necessary.
* A common case if the formatting of the database - this is often DB-specific
* yet SQL generation of query is more standard.
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/core/Annotation1.java b/jena-sdb/src/main/java/org/apache/jena/sdb/core/Annotation1.java
index b319b426798..db1da5e96e5 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/core/Annotation1.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/core/Annotation1.java
@@ -20,7 +20,7 @@
import org.apache.jena.sdb.core.sqlnode.SqlNode ;
-/** Collect some notes into a single annoation.
+/** Collect some notes into a single annotation.
*/
public class Annotation1
{
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/GenerateSQL.java b/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/GenerateSQL.java
index 4d9e01e92fe..a225d3961f7 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/GenerateSQL.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/GenerateSQL.java
@@ -43,7 +43,7 @@ public String generateSQL(SDBRequest request, SqlNode sqlNode)
return generatePartSQL(sqlNode) ;
}
- /** Generate an SQL string for the node - which may no tbe legal SQL (e.g. no outer SELECT).*/
+ /** Generate an SQL string for the node - which may no the legal SQL (e.g. no outer SELECT).*/
public String generatePartSQL(SqlNode sqlNode)
{
IndentedLineBuffer buff = new IndentedLineBuffer() ;
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/SqlSelectBlock.java b/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/SqlSelectBlock.java
index c6c1d587a3a..9667603f62e 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/SqlSelectBlock.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/core/sqlnode/SqlSelectBlock.java
@@ -30,7 +30,7 @@
import org.apache.jena.sparql.core.Var ;
/** A unit that generates an SQL SELECT Statement.
- * The SQL generation process is a pass over the SqlNdoe structure to generate SelectBlocks,
+ * The SQL generation process is a pass over the SqlNode structure to generate SelectBlocks,
* then to generate the SQL strings.
*/
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/exprmatch/ExprMatcher.java b/jena-sdb/src/main/java/org/apache/jena/sdb/exprmatch/ExprMatcher.java
index b0187f59fda..ad8caad87f8 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/exprmatch/ExprMatcher.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/exprmatch/ExprMatcher.java
@@ -38,7 +38,7 @@ public class ExprMatcher
/** Match an expression against a pattern. If the pattern has variables
* in it, these are checked, by name, in the MapAction and the registered action
* invoked to determine whether the variable matches; if the pattern has a named
- * funcion, the MapCallout is used to find a registered operation.
+ * function, the MapCallout is used to find a registered operation.
* Return a map of results, recording the bindings of variables
*/
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/layout2/VarState.java b/jena-sdb/src/main/java/org/apache/jena/sdb/layout2/VarState.java
index ab0330e6260..7fba0656e6b 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/layout2/VarState.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/layout2/VarState.java
@@ -18,7 +18,7 @@
package org.apache.jena.sdb.layout2;
-/** The state of a variable as reocorde by the variable tracking code */
+/** The state of a variable as recorded by the variable tracking code */
public enum VarState
{
UNBOUND, // The variable is definitely not set
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/script/CmdDesc.java b/jena-sdb/src/main/java/org/apache/jena/sdb/script/CmdDesc.java
index 09e59bcc927..efe4066ca70 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/script/CmdDesc.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/script/CmdDesc.java
@@ -32,7 +32,7 @@
import org.apache.jena.sparql.util.graph.GraphUtils ;
import org.apache.jena.util.FileManager ;
-/** Java description of a command - class and arguments. The assmbler build one of these */
+/** Java description of a command - class and arguments. The assembler build one of these */
public class CmdDesc
{
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/script/ScriptDesc.java b/jena-sdb/src/main/java/org/apache/jena/sdb/script/ScriptDesc.java
index c4551525e41..0d554732255 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/script/ScriptDesc.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/script/ScriptDesc.java
@@ -29,7 +29,7 @@
import org.apache.jena.sparql.util.graph.GraphUtils ;
import org.apache.jena.util.FileManager ;
-/** Java description a script : the assmbler build one of these */
+/** Java description a script : the assembler build one of these */
public class ScriptDesc
{
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreFormatter.java b/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreFormatter.java
index dc014f36f83..96236f18f9e 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreFormatter.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreFormatter.java
@@ -27,7 +27,7 @@ public interface StoreFormatter
/** Create the main tables and all indexes */
public void create() ;
- /** Add indexes - these are kept upto date for any future additions or deletions of data */
+ /** Add indexes - these are kept up to date for any future additions or deletions of data */
void addIndexes() ;
/** Drop indexes for triple/node tables */
@@ -36,6 +36,6 @@ public interface StoreFormatter
/** Format the store - create tables but not secondary indexes */
void format() ;
- /** Truncate tables - clearing the store but leaving all indexes inplace */
+ /** Truncate tables - clearing the store but leaving all indexes in place */
void truncate() ;
}
diff --git a/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreMaker.java b/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreMaker.java
index dab98629f90..bcd02bbb49a 100644
--- a/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreMaker.java
+++ b/jena-sdb/src/main/java/org/apache/jena/sdb/store/StoreMaker.java
@@ -23,7 +23,7 @@
import org.apache.jena.sdb.sql.SDBConnection ;
/** Source of new store objects. Used by StoreFactory, where there is a registry
- * dtatype type + layout type => store maker.
+ * datatype type + layout type => store maker.
*/
public interface StoreMaker
diff --git a/jena-tdb/src-examples/tdb/examples/ExQuadFilter.java b/jena-tdb/src-examples/tdb/examples/ExQuadFilter.java
index d6f98da01e9..20782e3bb44 100644
--- a/jena-tdb/src-examples/tdb/examples/ExQuadFilter.java
+++ b/jena-tdb/src-examples/tdb/examples/ExQuadFilter.java
@@ -33,7 +33,7 @@
import org.apache.jena.tdb.sys.TDBInternal ;
/** Example of how to filter quads as they are accessed at the lowest level.
- * Can be used to exclude daat from specific graphs.
+ * Can be used to exclude data from specific graphs.
* This mechanism is not limited to graphs - it works for properties or anything
* where the visibility of otherwise is determined by the elements of the quad.
* See QuadFiltering
diff --git a/jena-tdb/src-examples/tdb/examples/ExTDB6.java b/jena-tdb/src-examples/tdb/examples/ExTDB6.java
index e5ce586f074..3dd2c0ac181 100644
--- a/jena-tdb/src-examples/tdb/examples/ExTDB6.java
+++ b/jena-tdb/src-examples/tdb/examples/ExTDB6.java
@@ -33,7 +33,7 @@
import org.apache.jena.tdb.TDB ;
import org.apache.jena.tdb.TDBFactory ;
-/** Example of single threaded use of TDB workign with the Jena RDF API */
+/** Example of single threaded use of TDB working with the Jena RDF API */
public class ExTDB6
{
/// observe the non-http "protocol", because it is a bad precident
diff --git a/jena-tdb/src-examples/tdb/examples/ExTDB_Txn3.java b/jena-tdb/src-examples/tdb/examples/ExTDB_Txn3.java
index 515b20399b8..1b6f0675f6c 100644
--- a/jena-tdb/src-examples/tdb/examples/ExTDB_Txn3.java
+++ b/jena-tdb/src-examples/tdb/examples/ExTDB_Txn3.java
@@ -23,7 +23,7 @@
import org.apache.jena.tdb.TDBFactory ;
import org.apache.jena.tdb.transaction.DatasetGraphTransaction ;
-/** Illustraion of working at the DatasetGraph level.
+/** Illustration of working at the DatasetGraph level.
* Normally, applications work with {@link Dataset}.
* Occasionally, it's more convenient to work with the
* TDB-implemented DatasetGraph interface.
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/TDB.java b/jena-tdb/src/main/java/org/apache/jena/tdb/TDB.java
index f31668f0060..b9927ec1d04 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/TDB.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/TDB.java
@@ -199,7 +199,7 @@ public static void sync(DatasetGraph dataset) {
/**
* Sync a TDB synchronizable object (model, graph, dataset). If force is
* true, synchronize as much as possible (e.g. file metadata) else make a
- * reasonable attenpt at synchronization but does not gauarantee disk state.
+ * reasonable attempt at synchronization but does not guarantee disk state.
* Do nothing otherwise
*/
private static void syncObject(Object object) {
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/TDBLoader.java b/jena-tdb/src/main/java/org/apache/jena/tdb/TDBLoader.java
index 85be47049fa..efc2f95742f 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/TDBLoader.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/TDBLoader.java
@@ -184,7 +184,7 @@ public void loadDataset(DatasetGraphTDB dataset, List urls)
loadDataset$(dataset, urls, showProgress, generateStats) ;
}
- /** Load a dataset from an input steram which must be in N-Quads form */
+ /** Load a dataset from an input stream which must be in N-Quads form */
public void loadDataset(DatasetGraphTDB dataset, InputStream input)
{
// Triples languages are quads languages so no test for quad-ness needed.
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BlockAccess.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BlockAccess.java
index c4e8f60ba75..dbed0b99204 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BlockAccess.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BlockAccess.java
@@ -27,7 +27,7 @@
* Suitable for memory mapped I/O (returns
* internally allocated space for read, not provided from outside; write() can
* insist the block written comes from allocate()).
- * This interfce can also be backed by an in-memory implemntation
+ * This interface can also be backed by an in-memory implementation
* ({@link BlockAccessMem}, {@link BlockAccessByteArray}).
*
* This is wrapped in a BlockMgr to provide a higher level abstraction.
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannel.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannel.java
index ccde4031dc8..30a8ec73da7 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannel.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannel.java
@@ -29,7 +29,7 @@
* Interface to storage : a simplified version of FileChannel. Read and write
* bytes, passed via ByteBuffers, addressed by file location. This interface is
* not suitable for memory mapped I/O - there is no ability to use slices of a
- * memort mapped file. This interface does not insert size of ByteBuffer - size
+ * memory mapped file. This interface does not insert size of ByteBuffer - size
* of ByteBuffer passed to read controls the number of bytes read. Having our
* own abstraction enables us to implement memory-backed versions.
*
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannelFile.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannelFile.java
index 2c8e1eac068..9550df0250f 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannelFile.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/BufferChannelFile.java
@@ -39,7 +39,7 @@ public static BufferChannelFile create(String filename)
return new BufferChannelFile(base) ;
}
- /** Create a BufferChannelFile with unmangaged file resources - use with care */
+ /** Create a BufferChannelFile with unmanaged file resources - use with care */
public static BufferChannelFile createUnmanaged(String filename, String mode)
{
try
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/FileBase.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/FileBase.java
index a2ed8ac81ed..500e36b2ce1 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/FileBase.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/file/FileBase.java
@@ -38,7 +38,7 @@ public final class FileBase implements Sync, Closeable
private static long counter = 0 ;
private final long id ;
- /** Create an FileBase withotu managed resources Use with case. */
+ /** Create an FileBase without managed resources Use with case. */
static FileBase createUnmanged(String filename, FileChannel channel) { return new FileBase(filename, channel) ; }
/** Create a Filebase with managed resources */
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/page/PageBlockMgr.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/page/PageBlockMgr.java
index 47feced3718..6cd545955c6 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/page/PageBlockMgr.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/page/PageBlockMgr.java
@@ -136,6 +136,6 @@ public void dump()
/** Signal the start of an update operation */
public void startRead() { blockMgr.beginRead() ; }
- /** Signal the completeion of an update operation */
+ /** Signal the completion of an update operation */
public void finishRead() { blockMgr.endRead() ; }
}
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/base/record/RecordFactory.java b/jena-tdb/src/main/java/org/apache/jena/tdb/base/record/RecordFactory.java
index db4e4b7a663..cf6d268e3cb 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/base/record/RecordFactory.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/base/record/RecordFactory.java
@@ -74,7 +74,7 @@ public Record create(byte[] key)
return create(key, v) ;
}
- /** Create a record, allocaing space for the key and value (if any) */
+ /** Create a record, allocating space for the key and value (if any) */
public Record create()
{ return create(new byte[keyLength],
(valueLength > 0) ? new byte[valueLength] : null) ;
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/index/Index.java b/jena-tdb/src/main/java/org/apache/jena/tdb/index/Index.java
index bb29ade7bc9..37b2e7ccd32 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/index/Index.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/index/Index.java
@@ -49,7 +49,7 @@ public interface Index extends Iterable, Sync, Closeable
/** Get the Record factory associated with this index */
public RecordFactory getRecordFactory() ;
- /** Close the index - can't not be used again through this object */
+ /** Close the index - can not be used again through this object */
@Override
public void close() ;
@@ -62,6 +62,6 @@ public interface Index extends Iterable, Sync, Closeable
/** Perform checks on this index */
public void check() ;
- /** Return size if known else return -1 : does not count the peristent storage */
+ /** Return size if known else return -1 : does not count the persistent storage */
public long size() ;
}
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPTreePage.java b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPTreePage.java
index c2eca9fed6f..410a12b975a 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPTreePage.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPTreePage.java
@@ -61,7 +61,7 @@ protected BPTreePage(BPlusTree bpTree)
*/
abstract Record shiftLeft(BPTreePage other, Record splitKey) ;
- /** Merge this (left) and the page imemdiately to it's right other into a single block
+ /** Merge this (left) and the page immediately to it's right other into a single block
*/
abstract BPTreePage merge(BPTreePage right, Record splitKey) ;
//* Return the new page (may be left or right)
@@ -90,10 +90,10 @@ protected BPTreePage(BPlusTree bpTree)
// /** Find the first page (supports iterators) */
// abstract BPTreeRecords findFirstPage() ;
- /** Insert a record - return existing value if any, else null - put back modifed blocks */
+ /** Insert a record - return existing value if any, else null - put back modified blocks */
abstract Record internalInsert(Record record) ;
- /** Delete a record - return the old value if there was one, else null - put back modifed blocks */
+ /** Delete a record - return the old value if there was one, else null - put back modified blocks */
abstract Record internalDelete(Record record) ;
/** Least in page */
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPlusTree.java b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPlusTree.java
index 28636bef51a..beadcc22b4e 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPlusTree.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/BPlusTree.java
@@ -63,7 +63,7 @@
* not when needed where a split can bubble up from below.
* It means it only ever walks down the tree on insert.
* Similarly, the delete code ensures a node is suitable
- * before decending.
+ * before descending.
*
* Variations:
* In this impl, splitRoot leaves the root node in place.
@@ -142,7 +142,7 @@ public static BPlusTree create(BPlusTreeParams params, BlockMgr blkMgrNodes, Blo
/** Create the in-memory structures to correspond to
* the supplied block managers for the persistent storage.
- * Does not inityalize the B+Tree - it assumes the block managers
+ * Does not initialize the B+Tree - it assumes the block managers
* correspond to an existing B+Tree.
*/
public static BPlusTree attach(BPlusTreeParams params, BlockMgr blkMgrNodes, BlockMgr blkMgrRecords)
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/RecordBufferPagePacker.java b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/RecordBufferPagePacker.java
index 665b6327794..f8422336d04 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/RecordBufferPagePacker.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/index/bplustree/RecordBufferPagePacker.java
@@ -28,7 +28,7 @@
/** Iterate over a stream of records, packing them into RecordBufferPage -- the leaf of a B+Tree
* This class does not write the blocks back to the block manager.
- * This cleass does allocate block ids and blocks.
+ * This class does allocate block ids and blocks.
* @see RecordBufferPageLinker
*/
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/lib/ColumnMap.java b/jena-tdb/src/main/java/org/apache/jena/tdb/lib/ColumnMap.java
index dd0571b6cf0..e34b78413de 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/lib/ColumnMap.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/lib/ColumnMap.java
@@ -70,7 +70,7 @@ public ColumnMap(String label, T[] input, T[] output)
* mappings of a tuple originally in the order 0,1,2,...
* so SPO->POS is 2,0,1 (SPO->POS so S->2, P->0, O->1)
* and not 1,2,0 (which is the extraction mapping).
- * The label is just a lable and is not interpretted.
+ * The label is just a label and is not interpreted.
*/
public ColumnMap(String label, int...elements)
{
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/lib/NodeLib.java b/jena-tdb/src/main/java/org/apache/jena/tdb/lib/NodeLib.java
index 8dce3f1164f..a4f69392937 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/lib/NodeLib.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/lib/NodeLib.java
@@ -83,7 +83,7 @@ public static Node fetchDecode(long id, ObjectFile file)
/**
* Encode a node - it is better to use encodeStore which may avoid
- * anadditional copy in getting the node into the ObjectFile
+ * an additional copy in getting the node into the ObjectFile
*/
public static ByteBuffer encode(Node node)
{
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/mgt/TDBSystemInfoMBean.java b/jena-tdb/src/main/java/org/apache/jena/tdb/mgt/TDBSystemInfoMBean.java
index 8489efb7772..552f36733d2 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/mgt/TDBSystemInfoMBean.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/mgt/TDBSystemInfoMBean.java
@@ -38,7 +38,7 @@ public interface TDBSystemInfoMBean
/** Size of NodeId to Node cache.
* Used to map from NodeId to Node spaces.
- * Used for retriveing results.
+ * Used for retrieving results.
*/
public int getNodeId2NodeCacheSize() ;
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/setup/StoreParamsDynamic.java b/jena-tdb/src/main/java/org/apache/jena/tdb/setup/StoreParamsDynamic.java
index 10cc2c31fd3..9023d497584 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/setup/StoreParamsDynamic.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/setup/StoreParamsDynamic.java
@@ -21,7 +21,7 @@
import org.apache.jena.tdb.base.block.FileMode ;
/** Store parameters that can be adjusted after a store has been created,
- * and given different values when the JVM attachs to a store area.
+ * and given different values when the JVM attaches to a store area.
* (They are still fixed for any given database once created in a JVM.)
*/
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/solver/StageMatchTuple.java b/jena-tdb/src/main/java/org/apache/jena/tdb/solver/StageMatchTuple.java
index 67353738705..b19fd32f8fc 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/solver/StageMatchTuple.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/solver/StageMatchTuple.java
@@ -62,7 +62,7 @@ public StageMatchTuple(NodeTupleTable nodeTupleTable, Iterator in
/** Prepare a pattern (tuple of nodes), and an existing binding of NodeId, into NodeIds and Variables.
* A variable in the pattern is replaced by its binding or null in the Nodeids.
* A variable that is not bound by the binding is placed in the var array.
- * Return false if preparation detechs the pattern can not match.
+ * Return false if preparation detects the pattern can not match.
*/
public static boolean prepare(NodeTable nodeTable, Tuple patternTuple, BindingNodeId input, NodeId ids[], Var[] var)
{
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/GraphTxnTDB.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/GraphTxnTDB.java
index 308a21c3444..c79b42ae913 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/GraphTxnTDB.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/GraphTxnTDB.java
@@ -27,7 +27,7 @@
/**
* Transaction version of {@link GraphTDB}.
- * Valid across transactions excep where noted.
+ * Valid across transactions except where noted.
*
* @see GraphTDB
* @see GraphTxnTDB
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/NodeId.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/NodeId.java
index 5774f0d5fb9..92cebd61bf5 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/NodeId.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/NodeId.java
@@ -186,7 +186,7 @@ public static NodeId inline(Node node) {
XSDDatatype.XSDboolean
} ;
- /** Return true if this node has a datatype that look sliek it is inlineable.
+ /** Return true if this node has a datatype that looks like it is inlineable.
* The node may still be out of range (e.g. very large integer).
* Only inline(Node)->NodeId can determine that.
*/
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTable.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTable.java
index 1fb68602a18..a692a5eb138 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTable.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetable/NodeTable.java
@@ -27,7 +27,7 @@
import org.apache.jena.tdb.store.NodeId ;
/** Node table - conceptually a two way mapping of Node<->NodeId
- * where Nodes can be staored and a NodeId allocated
+ * where Nodes can be stored and a NodeId allocated
* @see NodeId
*/
@@ -51,7 +51,7 @@ public interface NodeTable extends Sync, Closeable
/** Iterate over all nodes (not necessarily fast). Does not include inlined NodeIds */
public Iterator> all() ;
- /** The offset needed to predicate allocation difference between peristent tables - internal function */
+ /** The offset needed to predicate allocation difference between persistent tables - internal function */
public NodeId allocOffset() ;
/** Anything there? */
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetupletable/NodeTupleTableConcrete.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetupletable/NodeTupleTableConcrete.java
index c90547da767..b05b90ec5b2 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetupletable/NodeTupleTableConcrete.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/nodetupletable/NodeTupleTableConcrete.java
@@ -192,7 +192,7 @@ protected final NodeId idForNode(Node node)
// ==== Accessors
/**
- * Return the undelying tuple table - used with great care by tools that
+ * Return the underlying tuple table - used with great care by tools that
* directly manipulate internal structures.
*/
@Override
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/store/tupletable/TupleTable.java b/jena-tdb/src/main/java/org/apache/jena/tdb/store/tupletable/TupleTable.java
index 40cc878f2a2..399a972fb48 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/store/tupletable/TupleTable.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/store/tupletable/TupleTable.java
@@ -255,13 +255,13 @@ public long size()
/** Get i'th index */
public TupleIndex getIndex(int i) { return indexes[i] ; }
- /** Get all indexes - for code that maipulates internal structures directly - use with care */
+ /** Get all indexes - for code that manipulates internal structures directly - use with care */
public TupleIndex[] getIndexes() { return indexes ; }
/** Get the width of tuples in indexes in this table */
public int getTupleLen() { return tupleLen ; }
- /** Set index - for code that maipulates internal structures directly - use with care */
+ /** Set index - for code that manipulates internal structures directly - use with care */
public void setTupleIndex(int i, TupleIndex index)
{
if ( index != null && index.getTupleLength() != tupleLen )
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/DatasetGraphTransaction.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/DatasetGraphTransaction.java
index df6ac27610f..51a4bea5572 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/DatasetGraphTransaction.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/DatasetGraphTransaction.java
@@ -38,7 +38,7 @@
/**
* A transactional {@code DatasetGraph} that allows one active transaction per thread.
*
- * {@link DatasetGraphTxn} holds the {~link Trasnaction} object.
+ * {@link DatasetGraphTxn} holds the {~link Transaction} object.
*
* This is analogous to a "connection" in JDBC.
* It is a holder of a {@link StoreConnection} combined with the machinary from
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/JournalControl.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/JournalControl.java
index 748149efb14..9fe510ce415 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/JournalControl.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/JournalControl.java
@@ -165,7 +165,7 @@ private static long scanForCommit(Journal jrnl, long startPosn)
}
/** Recover one transaction from the start position given.
- * Scan to see if theer is a commit; if found, play the
+ * Scan to see if there is a commit; if found, play the
* journal from the start point to the commit.
* Return true is a commit was found.
* Leave journal positioned just after commit or at end if none found.
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTrans.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTrans.java
index d88ea1e2a4b..13d60b4d194 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTrans.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTrans.java
@@ -22,10 +22,10 @@
import org.apache.jena.tdb.base.objectfile.ObjectFileWrapper ;
/** Add transactionality control to an ObjectFile.
- * ObjectFiles are "append only" so with a single rwiter environment,
+ * ObjectFiles are "append only" so with a single writer environment,
* we just need to manage a reset on abort.
* A crash in a transaction will accumulate some junk in the file.
- * This is now a trandeoff of speed and space.
+ * This is now a tradeoff of speed and space.
*
* Speed : append to the original file directly and tolerate junk.
*
@@ -61,4 +61,4 @@ public void commitEnact(Transaction txn) { }
@Override
public void commitClearup(Transaction txn) {}
-}
\ No newline at end of file
+}
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTransComplex.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTransComplex.java
index 59b7d83fab6..cca941ef19e 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTransComplex.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/ObjectFileTransComplex.java
@@ -30,7 +30,7 @@
import org.apache.jena.tdb.base.objectfile.ObjectFile ;
/**
- * This version works with two files - the main, base file and a per-transction journal
+ * This version works with two files - the main, base file and a per-transaction journal
* file. It writes to the journal side.
*
* To flush, it writes the journal to the base file.
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/Transaction.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/Transaction.java
index 61859f8dead..68891c156ad 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/Transaction.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/Transaction.java
@@ -259,7 +259,7 @@ public void close() {
throw throwThis;
}
- /** A write transaction has been processed and all chanages propagated back to the database */
+ /** A write transaction has been processed and all changes propagated back to the database */
/*package*/ void signalEnacted()
{
synchronized (this)
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionLifecycle.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionLifecycle.java
index 239d8cd0691..4911b0651f0 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionLifecycle.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionLifecycle.java
@@ -18,7 +18,7 @@
package org.apache.jena.tdb.transaction;
-/** Interface that components of the transaction system implmement.
+/** Interface that components of the transaction system implement.
* This is not the public/application interface to transactions.
*/
public interface TransactionLifecycle
diff --git a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionManager.java b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionManager.java
index c87b977d87a..bd3008a132c 100644
--- a/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionManager.java
+++ b/jena-tdb/src/main/java/org/apache/jena/tdb/transaction/TransactionManager.java
@@ -570,7 +570,7 @@ private boolean acquireWriterLock(boolean canBlock) {
/** Block until no writers are active.
* When this returns, it guarantees that the database is not changing
- * and the jounral is flush to disk.
+ * and the journal is flush to disk.
*
* The application must call {@link #enableWriters} later.
*
diff --git a/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java b/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java
index b433a98bf81..30bdcfcdfb8 100644
--- a/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java
+++ b/jena-text-es/src/main/java/org/apache/jena/query/text/es/TextIndexES.java
@@ -199,7 +199,7 @@ public void rollback() {
}
/**
- * We don't have resources that need to be closed explicitely
+ * We don't have resources that need to be closed explicitly
*/
@Override
public void close() {
@@ -208,7 +208,7 @@ public void close() {
}
/**
- * Update an Entity. Since we are doing Upserts in add entity anyways, we simply call {@link #addEntity(Entity)}
+ * Update an Entity. Since we are doing Upserts in add entity anyway, we simply call {@link #addEntity(Entity)}
* method that takes care of updating the Entity as well.
* @param entity the entity to update.
*/
diff --git a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
index 8a684c477b0..170337afc0b 100644
--- a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
+++ b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
@@ -296,7 +296,7 @@ private ListMultimap performQuery(Node property, String queryStr
}
/** Deconstruct the node or list object argument and make a StrMatch
- * The 'executionTime' flag indciates whether this is for a build time
+ * The 'executionTime' flag indicates whether this is for a build time
* static check, or for runtime execution.
*/
private StrMatch objectToStruct(PropFuncArg argObject, boolean executionTime) {