Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Aug 21, 2024
1 parent a3e14f0 commit 4a2c1ab
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package org.apache.commons.rdf.api;

/**
* Factory for creating RDFTerm instances..
* Factory for creating RDFTerm instances.
* <p>
* This interface is <strong>deprecated</strong> in favour of the richer
* {@link RDF}.
Expand Down
1 change: 0 additions & 1 deletion commons-rdf-examples/src/example/UserGuideTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ public void testTriple() throws Exception {
String s = ((IRI) subj).getIRIString();
System.out.println(s);
}
// ..
if (obj instanceof Literal) {
IRI type = ((Literal) obj).getDatatype();
System.out.println(type);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public AllToAllTest(final Class<? extends RDF> from, final Class<? extends RDF>
* second factory.
*
* @throws Exception
* Just in case..
* Just in case.
*/
@Test
public void testAddTermsFromOtherFactory() throws Exception {
Expand Down Expand Up @@ -122,7 +122,7 @@ public void testAddTermsFromOtherFactory() throws Exception {
* the graph.
*
* @throws Exception
* Just in case..
* Just in case.
*/
@Test
public void testAddTriplesFromOtherFactory() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public JenaDataset createDataset(final DatasetGraph datasetGraph, final UUID sal

public JenaDataset createDataset(final UUID salt) {
final DatasetGraph dg = DatasetGraphFactory.createGeneral();
// Or which createMethod() -- a bit confusing with lots of choice..
// Or which createMethod() -- a bit confusing with lots of choice.
return new JenaDatasetImpl(dg, salt);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public Value asValue(final RDFTerm term) {
// This is where it gets tricky to support round trips!
final BlankNode blankNode = (BlankNode) term;
// FIXME: The uniqueReference might not be a valid BlankNode
// identifier..
// identifier.
// does it have to be in RDF4J?
return getValueFactory().createBNode(blankNode.uniqueReference());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void close() throws Exception {
@SuppressWarnings("unchecked")
@Override
public Iterator<Triple> iterator() {
// double-cast to fight Java generics..
// double-cast to fight Java generics.
final Stream<? extends Triple> s = stream(subject, predicate, object);
return (Iterator<Triple>) s.iterator();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Optional<Graph> getGraph(final BlankNodeOrIRI graphName) {

@Override
public Stream<BlankNodeOrIRI> getGraphNames() {
// Not very efficient..
// Not very efficient.
return stream().map(Quad::getGraphName).filter(Optional::isPresent).map(Optional::get).distinct();
}

Expand Down

0 comments on commit 4a2c1ab

Please sign in to comment.