Skip to content

Commit

Permalink
Spell checking some Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Oct 22, 2017
1 parent 006d306 commit 3f371df
Show file tree
Hide file tree
Showing 390 changed files with 642 additions and 644 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion jena-arq/src-examples/arq/examples/AlgebraEx.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static enum State {
public static JsonBuilder create() { return new JsonBuilder() ; }

/** Create a builder from a {@link JsonValue}.
* <p>If the argument is an object or array, use it to initailize the builder.
* <p>If the argument is an object or array, use it to initialize the builder.
* <p>If the argument is a JSON primitive (string, number, boolean or null),
* <p>Otherwise thrown {@link IllegalArgumentException}.
*/
Expand Down
2 changes: 1 addition & 1 deletion jena-arq/src/main/java/org/apache/jena/query/Dataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <a href="http://www.w3.org/TR/sparql11-http-rdf-update/">SPARQL 1.1 Graph Store HTTP Protocol</a>.
* The factory methods in {@link DatasetAccessorFactory} provides creators for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -184,7 +184,7 @@ public static Dataset createNamed(List<String> 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
*/

Expand Down Expand Up @@ -214,7 +214,7 @@ public static Dataset create(String uri, List<String> 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
*/
Expand All @@ -230,7 +230,7 @@ public static Dataset create(String uri, List<String> 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <p>
* Setting a parameter to null is equivalent to calling
* {@link #clearParam(int)} for the given index
Expand Down
4 changes: 2 additions & 2 deletions jena-arq/src/main/java/org/apache/jena/query/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -765,7 +765,7 @@ public int hashCode()
* <b>not</b> 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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */


Expand Down
14 changes: 7 additions & 7 deletions jena-arq/src/main/java/org/apache/jena/query/QueryExecution.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -116,12 +116,12 @@ public interface QueryExecution extends AutoCloseable
public Iterator<Quad> 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);

Expand Down Expand Up @@ -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
Expand All @@ -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.
*/
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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.
*
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
* <p>
* This builds the string in memory which can lead to memory exhaustion
* for large results. It is generally better to use the
Expand All @@ -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)
* <p>
* This builds the string in memory which can lead to memory exhaustion
* for large results. It is generally better to use the
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion jena-arq/src/main/java/org/apache/jena/query/Syntax.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Loading

0 comments on commit 3f371df

Please sign in to comment.