Merge pull request #1656 from OpenRefine/issue/1648

fix the template load issue and package typo
This commit is contained in:
Antonin Delpeuch 2018-06-17 09:23:52 +01:00 committed by GitHub
commit 448a969cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
95 changed files with 138 additions and 138 deletions

View File

@ -55,7 +55,7 @@ import com.google.refine.importing.ImportingController;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;

View File

@ -25,7 +25,6 @@ import org.testng.annotations.Parameters;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.model.medadata.ProjectMetadata;
import com.google.refine.RefineServlet; import com.google.refine.RefineServlet;
import com.google.refine.extension.database.mysql.MySQLDatabaseService; import com.google.refine.extension.database.mysql.MySQLDatabaseService;
import com.google.refine.extension.database.stub.RefineDbServletStub; import com.google.refine.extension.database.stub.RefineDbServletStub;
@ -33,6 +32,7 @@ import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.io.FileProjectManager; import com.google.refine.io.FileProjectManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.metadata.ProjectMetadata;

View File

@ -25,7 +25,6 @@ import org.testng.annotations.Parameters;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.model.medadata.ProjectMetadata;
import com.google.refine.RefineServlet; import com.google.refine.RefineServlet;
import com.google.refine.extension.database.DBExtensionTestUtils; import com.google.refine.extension.database.DBExtensionTestUtils;
import com.google.refine.extension.database.DBExtensionTests; import com.google.refine.extension.database.DBExtensionTests;
@ -36,6 +35,7 @@ import com.google.refine.extension.database.stub.RefineDbServletStub;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.io.FileProjectManager; import com.google.refine.io.FileProjectManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.metadata.ProjectMetadata;
public class SavedConnectionCommandTest extends DBExtensionTests{ public class SavedConnectionCommandTest extends DBExtensionTests{

View File

@ -43,7 +43,7 @@ import com.google.refine.importers.TabularImportingParserBase;
import com.google.refine.importers.TabularImportingParserBase.TableDataReader; import com.google.refine.importers.TabularImportingParserBase.TableDataReader;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
/** /**

View File

@ -19,7 +19,7 @@ import com.google.refine.importers.TabularImportingParserBase;
import com.google.refine.importers.TabularImportingParserBase.TableDataReader; import com.google.refine.importers.TabularImportingParserBase.TableDataReader;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class GDataImporter { public class GDataImporter {

View File

@ -37,7 +37,7 @@ import com.google.refine.importing.ImportingController;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;

View File

@ -44,7 +44,7 @@ import org.slf4j.LoggerFactory;
import com.google.refine.importers.TabularImportingParserBase; import com.google.refine.importers.TabularImportingParserBase;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class PCAxisImporter extends TabularImportingParserBase { public class PCAxisImporter extends TabularImportingParserBase {

View File

@ -56,8 +56,8 @@ import org.slf4j.LoggerFactory;
import com.google.refine.history.HistoryEntryManager; import com.google.refine.history.HistoryEntryManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.preference.PreferenceStore; import com.google.refine.preference.PreferenceStore;
import com.google.refine.preference.TopList; import com.google.refine.preference.TopList;

View File

@ -56,7 +56,7 @@ import com.google.refine.RefineServlet;
import com.google.refine.browsing.Engine; import com.google.refine.browsing.Engine;
import com.google.refine.history.HistoryEntry; import com.google.refine.history.HistoryEntry;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.process.Process; import com.google.refine.process.Process;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;

View File

@ -42,7 +42,7 @@ import javax.servlet.http.HttpServletResponse;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class DeleteProjectCommand extends Command { public class DeleteProjectCommand extends Command {

View File

@ -11,9 +11,9 @@ import org.json.JSONException;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.MetadataFactory; import com.google.refine.model.metadata.MetadataFactory;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFormat;
public class GetMetadataCommand extends Command { public class GetMetadataCommand extends Command {
@Override @Override

View File

@ -53,7 +53,7 @@ import org.slf4j.LoggerFactory;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;
public class ImportProjectCommand extends Command { public class ImportProjectCommand extends Command {

View File

@ -20,8 +20,8 @@ import com.google.refine.browsing.Engine;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.exporters.CsvExporter; import com.google.refine.exporters.CsvExporter;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.DataPackageMetadata; import com.google.refine.model.metadata.DataPackageMetadata;
import com.google.refine.model.medadata.PackageExtension; import com.google.refine.model.metadata.PackageExtension;
public class PackageProjectCommand extends Command { public class PackageProjectCommand extends Command {
@Override @Override

View File

@ -40,7 +40,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class RenameProjectCommand extends Command { public class RenameProjectCommand extends Command {
@Override @Override

View File

@ -11,7 +11,7 @@ import org.json.JSONException;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class SetProjectMetadataCommand extends Command { public class SetProjectMetadataCommand extends Command {
@Override @Override

View File

@ -39,7 +39,7 @@ import org.json.JSONException;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class SetProjectTagsCommand extends Command { public class SetProjectTagsCommand extends Command {
@Override @Override

View File

@ -12,7 +12,7 @@ import org.json.JSONObject;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.validator.ValidateOperation; import com.google.refine.model.metadata.validator.ValidateOperation;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;
public class ValidateSchemaCommand extends Command { public class ValidateSchemaCommand extends Command {

View File

@ -48,7 +48,7 @@ import org.json.JSONWriter;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.Command; import com.google.refine.commands.Command;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class GetAllProjectMetadataCommand extends Command { public class GetAllProjectMetadataCommand extends Command {
@Override @Override

View File

@ -44,7 +44,7 @@ import com.google.refine.expr.EvalError;
import com.google.refine.grel.ControlFunctionRegistry; import com.google.refine.grel.ControlFunctionRegistry;
import com.google.refine.grel.Function; import com.google.refine.grel.Function;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class Reinterpret implements Function { public class Reinterpret implements Function {

View File

@ -66,7 +66,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Recon; import com.google.refine.model.Recon;
import com.google.refine.model.Recon.Judgment; import com.google.refine.model.Recon.Judgment;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.model.ReconCandidate; import com.google.refine.model.ReconCandidate;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -17,7 +17,7 @@ import org.json.JSONObject;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class FixedWidthImporter extends TabularImportingParserBase { public class FixedWidthImporter extends TabularImportingParserBase {

View File

@ -51,7 +51,7 @@ import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
abstract public class ImportingParserBase implements ImportingParser { abstract public class ImportingParserBase implements ImportingParser {

View File

@ -56,7 +56,7 @@ import com.google.refine.importers.tree.TreeReaderException;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class JsonImporter extends TreeImportingParserBase { public class JsonImporter extends TreeImportingParserBase {

View File

@ -12,7 +12,7 @@ import org.slf4j.LoggerFactory;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class LineBasedImporter extends TabularImportingParserBase { public class LineBasedImporter extends TabularImportingParserBase {

View File

@ -61,7 +61,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Recon; import com.google.refine.model.Recon;
import com.google.refine.model.Recon.Judgment; import com.google.refine.model.Recon.Judgment;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.model.ReconCandidate; import com.google.refine.model.ReconCandidate;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -53,7 +53,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class RdfTripleImporter extends ImportingParserBase { public class RdfTripleImporter extends ImportingParserBase {
private Mode mode; private Mode mode;

View File

@ -59,7 +59,7 @@ import au.com.bytecode.opencsv.CSVParser;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class SeparatorBasedImporter extends TabularImportingParserBase { public class SeparatorBasedImporter extends TabularImportingParserBase {

View File

@ -47,7 +47,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
abstract public class TabularImportingParserBase extends ImportingParserBase { abstract public class TabularImportingParserBase extends ImportingParserBase {

View File

@ -63,7 +63,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Recon; import com.google.refine.model.Recon;
import com.google.refine.model.ReconStats; import com.google.refine.model.ReconStats;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.model.recon.StandardReconConfig.ColumnDetail; import com.google.refine.model.recon.StandardReconConfig.ColumnDetail;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
import com.google.refine.model.recon.StandardReconConfig; import com.google.refine.model.recon.StandardReconConfig;

View File

@ -58,7 +58,7 @@ import com.google.refine.importers.tree.TreeReaderException;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class XmlImporter extends TreeImportingParserBase { public class XmlImporter extends TreeImportingParserBase {

View File

@ -48,7 +48,7 @@ import com.google.refine.importers.ImportingParserBase;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
/** /**

View File

@ -48,7 +48,7 @@ import org.json.JSONWriter;
import com.google.refine.Jsonizable; import com.google.refine.Jsonizable;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -38,7 +38,7 @@ import java.util.List;
import org.json.JSONObject; import org.json.JSONObject;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public interface ImportingParser { public interface ImportingParser {
/** /**

View File

@ -97,12 +97,12 @@ import com.google.refine.model.Column;
import com.google.refine.model.ColumnModel; import com.google.refine.model.ColumnModel;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.DataPackageMetadata; import com.google.refine.model.metadata.DataPackageMetadata;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.MetadataFactory; import com.google.refine.model.metadata.MetadataFactory;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFormat;
import com.google.refine.model.medadata.PackageExtension; import com.google.refine.model.metadata.PackageExtension;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.preference.PreferenceStore; import com.google.refine.preference.PreferenceStore;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -60,10 +60,10 @@ import org.slf4j.LoggerFactory;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.history.HistoryEntryManager; import com.google.refine.history.HistoryEntryManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.DataPackageMetadata; import com.google.refine.model.metadata.DataPackageMetadata;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFormat;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.preference.TopList; import com.google.refine.preference.TopList;

View File

@ -51,8 +51,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
public class ProjectMetadataUtilities { public class ProjectMetadataUtilities {
final static Logger logger = LoggerFactory.getLogger("project_metadata_utilities"); final static Logger logger = LoggerFactory.getLogger("project_metadata_utilities");

View File

@ -47,9 +47,9 @@ import org.slf4j.LoggerFactory;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.DataPackageMetadata; import com.google.refine.model.metadata.DataPackageMetadata;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFormat;
import com.google.refine.util.Pool; import com.google.refine.util.Pool;

View File

@ -57,7 +57,7 @@ import org.slf4j.LoggerFactory;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.RefineServlet; import com.google.refine.RefineServlet;
import com.google.refine.history.History; import com.google.refine.history.History;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.process.ProcessManager; import com.google.refine.process.ProcessManager;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;
import com.google.refine.util.Pool; import com.google.refine.util.Pool;

View File

@ -1,6 +0,0 @@
package com.google.refine.model.medadata.validator;
public class ValidatorConfig {
}

View File

@ -1,6 +0,0 @@
package com.google.refine.model.medadata.validator;
public class ValidatorExceptions {
}

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.File; import java.io.File;
import java.time.LocalDateTime; import java.time.LocalDateTime;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.File; import java.io.File;
import java.io.InputStream; import java.io.InputStream;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.IOException; import java.io.IOException;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
/** /**

View File

@ -1,16 +1,16 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream; import java.util.zip.ZipOutputStream;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.everit.json.schema.ValidationException; import org.everit.json.schema.ValidationException;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -73,8 +73,8 @@ public class PackageExtension {
public static Package buildPackageFromTemplate() { public static Package buildPackageFromTemplate() {
try { try {
ClassLoader classLoader = PackageExtension.class.getClassLoader(); ClassLoader classLoader = PackageExtension.class.getClassLoader();
File file = new File(classLoader.getResource(DATAPACKAGE_TEMPLATE_FILE).getFile()); InputStream inputStream = classLoader.getResourceAsStream(DATAPACKAGE_TEMPLATE_FILE);
return new Package(FileUtils.readFileToString(file), false); return new Package(IOUtils.toString(inputStream), false);
} catch (ValidationException e) { } catch (ValidationException e) {
logger.error("validation failed", ExceptionUtils.getStackTrace(e)); logger.error("validation failed", ExceptionUtils.getStackTrace(e));
} catch (DataPackageException e) { } catch (DataPackageException e) {

View File

@ -31,7 +31,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata; package com.google.refine.model.metadata;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.ColumnModel; import com.google.refine.model.ColumnModel;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator; package com.google.refine.model.metadata.validator;
import java.util.Properties; import java.util.Properties;

View File

@ -0,0 +1,6 @@
package com.google.refine.model.metadata.validator;
public class ValidatorConfig {
}

View File

@ -0,0 +1,6 @@
package com.google.refine.model.metadata.validator;
public class ValidatorExceptions {
}

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator; package com.google.refine.model.metadata.validator;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
@ -16,8 +16,8 @@ import org.slf4j.LoggerFactory;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.validator.checks.TypeorFormatError; import com.google.refine.model.metadata.validator.checks.TypeorFormatError;
import com.google.refine.model.medadata.validator.checks.Validator; import com.google.refine.model.metadata.validator.checks.Validator;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;
public class ValidatorInspector { public class ValidatorInspector {

View File

@ -1,15 +1,15 @@
package com.google.refine.model.medadata.validator; package com.google.refine.model.metadata.validator;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import com.google.refine.model.medadata.validator.checks.EnumerableConstraint; import com.google.refine.model.metadata.validator.checks.EnumerableConstraint;
import com.google.refine.model.medadata.validator.checks.MaximumConstraint; import com.google.refine.model.metadata.validator.checks.MaximumConstraint;
import com.google.refine.model.medadata.validator.checks.MaximumLengthConstraint; import com.google.refine.model.metadata.validator.checks.MaximumLengthConstraint;
import com.google.refine.model.medadata.validator.checks.MinimumConstraint; import com.google.refine.model.metadata.validator.checks.MinimumConstraint;
import com.google.refine.model.medadata.validator.checks.MinimumLengthConstraint; import com.google.refine.model.metadata.validator.checks.MinimumLengthConstraint;
import com.google.refine.model.medadata.validator.checks.PatternConstraint; import com.google.refine.model.metadata.validator.checks.PatternConstraint;
import com.google.refine.model.medadata.validator.checks.RequiredConstraint; import com.google.refine.model.metadata.validator.checks.RequiredConstraint;
import io.frictionlessdata.tableschema.Field; import io.frictionlessdata.tableschema.Field;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator; package com.google.refine.model.metadata.validator;
import java.util.Locale; import java.util.Locale;
import java.util.ResourceBundle; import java.util.ResourceBundle;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -13,7 +13,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.validator.ValidatorSpec; import com.google.refine.model.metadata.validator.ValidatorSpec;
public abstract class AbstractValidator implements Validator { public abstract class AbstractValidator implements Validator {
protected final Logger logger = LoggerFactory.getLogger(this.getClass()); protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@ -92,7 +92,7 @@ public abstract class AbstractValidator implements Validator {
/* /*
* Empty body since default there is no customized Format * Empty body since default there is no customized Format
* @see com.google.refine.model.medadata.validator.checks.Validator#customizedFormat() * @see com.google.refine.model.metadata.validator.checks.Validator#customizedFormat()
*/ */
@Override @Override
public void customizedFormat() { public void customizedFormat() {

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -1,4 +1,4 @@
package com.google.refine.model.medadata.validator.checks; package com.google.refine.model.metadata.validator.checks;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;

View File

@ -42,8 +42,8 @@ import org.apache.tools.tar.TarOutputStream;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.history.HistoryEntryManager; import com.google.refine.history.HistoryEntryManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.IMetadata; import com.google.refine.model.metadata.IMetadata;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFormat;
/** /**
* Stub used to make protected methods public for testing * Stub used to make protected methods public for testing

View File

@ -53,7 +53,7 @@ import org.testng.annotations.Test;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.process.ProcessManager; import com.google.refine.process.ProcessManager;
import com.google.refine.tests.model.ProjectStub; import com.google.refine.tests.model.ProjectStub;

View File

@ -65,7 +65,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.util.TestUtils; import com.google.refine.tests.util.TestUtils;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -45,7 +45,7 @@ import org.testng.annotations.Test;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.browsing.RowFilter; import com.google.refine.browsing.RowFilter;
import com.google.refine.browsing.facets.TextSearchFacet; import com.google.refine.browsing.facets.TextSearchFacet;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -59,7 +59,7 @@ import org.testng.annotations.Test;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.commands.project.SetProjectMetadataCommand; import com.google.refine.commands.project.SetProjectMetadataCommand;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;
public class SetProjectMetadataCommandTests extends RefineTest { public class SetProjectMetadataCommandTests extends RefineTest {

View File

@ -28,10 +28,10 @@ import org.testng.Assert;
import com.google.refine.ProjectManager; import com.google.refine.ProjectManager;
import com.google.refine.importers.SeparatorBasedImporter; import com.google.refine.importers.SeparatorBasedImporter;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.medadata.DataPackageMetadata; import com.google.refine.model.metadata.validator.ValidateOperation;
import com.google.refine.model.medadata.MetadataFactory; import com.google.refine.model.metadata.DataPackageMetadata;
import com.google.refine.model.medadata.MetadataFormat; import com.google.refine.model.metadata.MetadataFactory;
import com.google.refine.model.medadata.validator.ValidateOperation; import com.google.refine.model.metadata.MetadataFormat;
import com.google.refine.tests.importers.TsvCsvImporterTests; import com.google.refine.tests.importers.TsvCsvImporterTests;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;

View File

@ -58,7 +58,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.ProjectManagerStub; import com.google.refine.tests.ProjectManagerStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -56,7 +56,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.ProjectManagerStub; import com.google.refine.tests.ProjectManagerStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -59,7 +59,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.ProjectManagerStub; import com.google.refine.tests.ProjectManagerStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -64,7 +64,7 @@ import com.google.refine.model.Column;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.ProjectManagerStub; import com.google.refine.tests.ProjectManagerStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -52,7 +52,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -50,7 +50,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -50,7 +50,7 @@ import com.google.refine.ProjectManager;
import com.google.refine.history.History; import com.google.refine.history.History;
import com.google.refine.history.HistoryEntry; import com.google.refine.history.HistoryEntry;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -21,7 +21,7 @@ import com.google.refine.importers.tree.XmlImportUtilities;
import com.google.refine.importing.ImportingJob; import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineServletStub; import com.google.refine.tests.RefineServletStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -16,7 +16,7 @@ import com.google.refine.importing.ImportingJob;
import com.google.refine.importing.ImportingManager; import com.google.refine.importing.ImportingManager;
import com.google.refine.importing.ImportingUtilities; import com.google.refine.importing.ImportingUtilities;
import com.google.refine.model.Column; import com.google.refine.model.Column;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.importers.ImporterTest; import com.google.refine.tests.importers.ImporterTest;
import com.google.refine.util.JSONUtilities; import com.google.refine.util.JSONUtilities;

View File

@ -52,7 +52,7 @@ import com.google.refine.model.Cell;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.Row; import com.google.refine.model.Row;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.operations.EngineDependentOperation; import com.google.refine.operations.EngineDependentOperation;
import com.google.refine.operations.row.RowRemovalOperation; import com.google.refine.operations.row.RowRemovalOperation;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -60,7 +60,7 @@ import com.google.refine.importing.ImportingManager;
import com.google.refine.io.FileProjectManager; import com.google.refine.io.FileProjectManager;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.tests.RefineServletStub; import com.google.refine.tests.RefineServletStub;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;
import com.google.refine.tests.util.TestUtils; import com.google.refine.tests.util.TestUtils;

View File

@ -60,7 +60,7 @@ import com.google.refine.io.FileProjectManager;
import com.google.refine.model.AbstractOperation; import com.google.refine.model.AbstractOperation;
import com.google.refine.model.ModelException; import com.google.refine.model.ModelException;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.operations.cell.KeyValueColumnizeOperation; import com.google.refine.operations.cell.KeyValueColumnizeOperation;
import com.google.refine.process.Process; import com.google.refine.process.Process;
import com.google.refine.tests.RefineServletStub; import com.google.refine.tests.RefineServletStub;

View File

@ -42,7 +42,7 @@ import org.testng.annotations.Test;
import com.google.refine.model.AbstractOperation; import com.google.refine.model.AbstractOperation;
import com.google.refine.model.Project; import com.google.refine.model.Project;
import com.google.refine.model.medadata.ProjectMetadata; import com.google.refine.model.metadata.ProjectMetadata;
import com.google.refine.operations.cell.KeyValueColumnizeOperation; import com.google.refine.operations.cell.KeyValueColumnizeOperation;
import com.google.refine.process.Process; import com.google.refine.process.Process;
import com.google.refine.tests.RefineTest; import com.google.refine.tests.RefineTest;

View File

@ -281,7 +281,7 @@ function registerImporting() {
IM.registerMimeType("application/marc", "text/marc"); IM.registerMimeType("application/marc", "text/marc");
IM.registerUrlRewriter(new Packages.com.google.refine.model.medadata.DataPackageUrlRewriter()); IM.registerUrlRewriter(new Packages.com.google.refine.model.metadata.DataPackageUrlRewriter());
/* /*
* Format guessers: these take a format derived from extensions or mime-types, * Format guessers: these take a format derived from extensions or mime-types,