Merge pull request #1656 from OpenRefine/issue/1648
fix the template load issue and package typo
This commit is contained in:
commit
448a969cb1
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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{
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
/**
|
/**
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
package com.google.refine.model.medadata.validator;
|
|
||||||
|
|
||||||
|
|
||||||
public class ValidatorConfig {
|
|
||||||
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
package com.google.refine.model.medadata.validator;
|
|
||||||
|
|
||||||
|
|
||||||
public class ValidatorExceptions {
|
|
||||||
|
|
||||||
}
|
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -1,4 +1,4 @@
|
|||||||
package com.google.refine.model.medadata;
|
package com.google.refine.model.metadata;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.google.refine.model.medadata;
|
package com.google.refine.model.metadata;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -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) {
|
@ -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;
|
@ -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;
|
@ -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;
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.google.refine.model.metadata.validator;
|
||||||
|
|
||||||
|
|
||||||
|
public class ValidatorConfig {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
package com.google.refine.model.metadata.validator;
|
||||||
|
|
||||||
|
|
||||||
|
public class ValidatorExceptions {
|
||||||
|
|
||||||
|
}
|
@ -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 {
|
@ -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;
|
||||||
|
|
@ -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;
|
@ -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() {
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
@ -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;
|
@ -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;
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -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;
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user