Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abrokenjester committed Jun 30, 2018
2 parents fd40eeb + fa70320 commit f75f92c
Show file tree
Hide file tree
Showing 205 changed files with 8,629 additions and 254 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ dependency-reduced-pom.xml
# NetBean files
**/nb-configuration.xml
**/nbactions*.xml
*.jfr
5 changes: 2 additions & 3 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-client-parent</artifactId>
<version>2.3-SNAPSHOT</version>
<artifactId>rdf4j-parent</artifactId>
<version>2.4-SNAPSHOT</version>
</parent>
<artifactId>rdf4j-client</artifactId>
<name>RDF4J: Client Library</name>
Expand Down Expand Up @@ -212,7 +212,6 @@
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>create-manifest</id>
Expand Down
2 changes: 1 addition & 1 deletion compliance/manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-compliance</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-manager-compliance</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compliance/model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-compliance</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-model-compliance</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions compliance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-client-parent</artifactId>
<version>2.3-SNAPSHOT</version>
<artifactId>rdf4j-parent</artifactId>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-compliance</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compliance/queryresultio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-compliance</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-queryresultio-compliance</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;

Expand Down Expand Up @@ -76,7 +76,7 @@ private String writeTupleResult(TupleQueryResult tqr)
{
ByteArrayOutputStream output = new ByteArrayOutputStream();
QueryResultIO.writeTuple(tqr, TupleQueryResultFormat.TSV, output);
String result = new String(output.toByteArray(), Charset.forName("UTF-8"));
String result = new String(output.toByteArray(), StandardCharsets.UTF_8);
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion compliance/rio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-compliance</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-rio-compliance</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Namespace;
Expand Down Expand Up @@ -86,7 +86,7 @@ private InputStream writeJSONLD(Model statements)

// System.out.println(writer.toString());

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -80,7 +80,7 @@ private InputStream writeNQuads(Model statements)
}
nQuadsWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -80,7 +80,7 @@ private InputStream writeNTriples(Model statements)
}
nTriplesWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -81,7 +81,7 @@ private InputStream writeRDFJSON(Model statements)
}
rdfjsonWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -80,7 +80,7 @@ private InputStream writeRDFXML(Model statements)
}
rdfxmlWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -80,7 +80,7 @@ private InputStream writeTriG(Model statements)
}
trigWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.StringWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Statement;
Expand Down Expand Up @@ -80,7 +80,7 @@ private InputStream writeTurtle(Model statements)
}
turtleWriter.endRDF();

return new ByteArrayInputStream(writer.toString().getBytes(Charset.forName("UTF-8")));
return new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8));
}

}
2 changes: 1 addition & 1 deletion http/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-http</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-http-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.net.HttpURLConnection;
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -898,7 +899,7 @@ protected void upload(final Reader contents, String baseURI, final RDFFormat dat
boolean overwrite, boolean preserveNodeIds, Action action, Resource... contexts)
throws IOException, RDFParseException, RepositoryException, UnauthorizedException
{
final Charset charset = dataFormat.hasCharset() ? dataFormat.getCharset() : Charset.forName("UTF-8");
final Charset charset = dataFormat.hasCharset() ? dataFormat.getCharset() : StandardCharsets.UTF_8;

HttpEntity entity = new AbstractHttpEntity() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.net.URISyntaxException;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -122,7 +123,7 @@ public class SPARQLProtocolSession implements HttpClientDependent, AutoCloseable
* Constants *
*-----------*/

protected static final Charset UTF8 = Charset.forName("UTF-8");
protected static final Charset UTF8 = StandardCharsets.UTF_8;

/**
* The default value of the threshold for URL length, beyond which we use the POST method for SPARQL query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.io.InputStream;
import java.io.Reader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

import org.eclipse.rdf4j.query.QueryEvaluationException;
import org.eclipse.rdf4j.rio.RDFFormat;
Expand Down Expand Up @@ -60,7 +61,7 @@ public void testBGRHang()
String data = "@not-rdf";

BackgroundGraphResult gRes = new BackgroundGraphResult(new DummyParser(),
new ByteArrayInputStream(data.getBytes(Charset.forName("UTF-8"))), Charset.forName("UTF-8"),
new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8,
"http://base.org");

thrown.expect(QueryEvaluationException.class);
Expand Down
4 changes: 2 additions & 2 deletions http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-client-parent</artifactId>
<version>2.3-SNAPSHOT</version>
<artifactId>rdf4j-parent</artifactId>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-http</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion http/protocol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-http</artifactId>
<version>2.3-SNAPSHOT</version>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-http-protocol</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<parent>
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-client-parent</artifactId>
<version>2.3-SNAPSHOT</version>
<artifactId>rdf4j-parent</artifactId>
<version>2.4-SNAPSHOT</version>
</parent>

<artifactId>rdf4j-model</artifactId>
Expand Down
Loading

0 comments on commit f75f92c

Please sign in to comment.