Updated to use ExporterRegistry and added event methods to overlay model.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1192 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-08-22 05:19:29 +00:00
parent 95e2e30c8a
commit 3b043b7970
2 changed files with 16 additions and 3 deletions

View File

@ -21,11 +21,11 @@ function init() {
/*
* Exporters
*/
var ExportRowsCommand = Packages.com.google.gridworks.commands.project.ExportRowsCommand;
var ExporterRegistry = Packages.com.google.gridworks.exporters.ExporterRegistry;
var RdfExporter = Packages.com.google.gridworks.rdf.exporters.RdfExporter;
ExportRowsCommand.registerExporter("rdf", new RdfExporter("RDF/XML"));
ExportRowsCommand.registerExporter("n3", new RdfExporter("N3"));
ExporterRegistry.registerExporter("rdf", new RdfExporter("RDF/XML"));
ExporterRegistry.registerExporter("n3", new RdfExporter("N3"));
/*
* GEL Functions and Binders

View File

@ -23,6 +23,19 @@ public class RdfSchema implements OverlayModel {
public List<ConstantBlankNode> get_blanks() {
return _blanks;
}
@Override
public void onBeforeSave() {
}
@Override
public void onAfterSave() {
}
@Override
public void dispose() {
}
protected URI baseUri;