Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Wikidata/Wikidata-Toolkit
Browse files Browse the repository at this point in the history
…into serialization-of-constraints
  • Loading branch information
Julian Mendez committed Aug 5, 2016
2 parents fdc19ca + 2971604 commit 3b84b10
Show file tree
Hide file tree
Showing 41 changed files with 1,132 additions and 102 deletions.
7 changes: 7 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ Wikidata Toolkit Release Notes
Version 0.7.0
-------------

New features:
* Add a new client action "sqid" that analyses dumps to create the statistics
JSON files that are the basis for the SQID Wikidata Browser that is found at
https://tools.wmflabs.org/sqid/

Bug fixes:
* Fix JavaDoc errors to enable build using Java 8 (with doclint)
* Make JSON parser more tolerant towards unknown keys; avoids breaking on recent API changes
* Update Wikimedia dump location to https so that dump downloads work again

Version 0.6.0
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.7.0-SNAPSHOT</version>
<version>0.8.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Wikidata Toolkit</name>
Expand Down
2 changes: 1 addition & 1 deletion wdtk-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.wikidata.wdtk</groupId>
<artifactId>wdtk-parent</artifactId>
<version>0.7.0-SNAPSHOT</version>
<version>0.8.0-SNAPSHOT</version>
</parent>

<artifactId>wdtk-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ public class Client {
*
* @param args
* command line arguments to configure the conversion
* @throws ParseException
* @throws IOException
*/
public Client(DumpProcessingController dumpProcessingController,
String args[]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ public class ClientConfiguration {
*/
public static final String OPTION_LOCAL_DUMPFILE = "input";

static final Map<String, Class<? extends DumpProcessingOutputAction>> KNOWN_ACTIONS = new HashMap<>();
static final Map<String, Class<? extends DumpProcessingAction>> KNOWN_ACTIONS = new HashMap<>();
static {
KNOWN_ACTIONS.put("rdf", RdfSerializationAction.class);
KNOWN_ACTIONS.put("json", JsonSerializationAction.class);
KNOWN_ACTIONS.put("sqid", SchemaUsageAnalyzer.class);
}

/**
Expand Down Expand Up @@ -704,7 +705,7 @@ private DumpProcessingAction makeDumpProcessingAction(String name) {
}

try {
Constructor<? extends DumpProcessingOutputAction> constructor = KNOWN_ACTIONS
Constructor<? extends DumpProcessingAction> constructor = KNOWN_ACTIONS
.get(name).getConstructor();
return constructor.newInstance();
} catch (NoSuchMethodException | SecurityException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
/**
* This class represents an action of generating a JSON dump from data. It has
* no specific options.
*
*
* @author Markus Kroetzsch
*
*
*/
public class JsonSerializationAction extends DumpProcessingOutputAction {

Expand All @@ -55,8 +55,6 @@ public class JsonSerializationAction extends DumpProcessingOutputAction {

/**
* Constructor. See {@link DumpProcessingOutputAction} for more details.
*
* @param conversionProperties
*/
public JsonSerializationAction() {
this.outputDestination = DEFAULT_FILE_NAME;
Expand Down
Loading

0 comments on commit 3b84b10

Please sign in to comment.