various fixes

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1128 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-08-03 20:19:26 +00:00
parent 762a9f13eb
commit f28c1607f7
3 changed files with 7 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>rdf-exporter</name>
<name>gridworks-rdf-exporter</name>
<comment></comment>
<projects>
</projects>

View File

@ -20,7 +20,6 @@ import com.metaweb.gridworks.browsing.RowVisitor;
import com.metaweb.gridworks.commands.Command;
import com.metaweb.gridworks.model.Project;
import com.metaweb.gridworks.model.Row;
import com.metaweb.gridworks.rdf.ConstantBlankNode;
import com.metaweb.gridworks.rdf.Node;
import com.metaweb.gridworks.rdf.RdfSchema;
import com.metaweb.gridworks.util.ParsingUtilities;
@ -47,11 +46,10 @@ public class PreviewRdfCommand extends Command {
Node root = schema.getRoot();
Resource[] blanks = new Resource[schema.get_blanks().size()];
int i=0;
for (ConstantBlankNode b : schema.get_blanks()){
for (int i = 0; i < blanks.length; i++) {
blanks[i] = model.createResource();
i +=1;
}
RowVisitor visitor = new RdfRowVisitor(model, baseUri, root,blanks,20);
filteredRows.accept(project, visitor);

View File

@ -6,7 +6,6 @@ import java.io.Writer;
import java.net.URI;
import java.util.Properties;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.Resource;
@ -16,7 +15,6 @@ import com.metaweb.gridworks.browsing.RowVisitor;
import com.metaweb.gridworks.exporters.Exporter;
import com.metaweb.gridworks.model.Project;
import com.metaweb.gridworks.model.Row;
import com.metaweb.gridworks.rdf.ConstantBlankNode;
import com.metaweb.gridworks.rdf.Node;
import com.metaweb.gridworks.rdf.RdfSchema;
import com.metaweb.gridworks.rdf.Util;
@ -37,11 +35,10 @@ public class RdfExporter implements Exporter{
Node root = schema.getRoot();
Resource[] blanks = new Resource[schema.get_blanks().size()];
int i=0;
for (ConstantBlankNode b : schema.get_blanks()){
for (int i = 0; i < blanks.length; i++) {
blanks[i] = model.createResource();
i +=1;
}
RowVisitor visitor = new RdfRowVisitor(model, baseUri, root,blanks);
FilteredRows filteredRows = engine.getAllFilteredRows();
filteredRows.accept(project, visitor);
@ -57,12 +54,10 @@ public class RdfExporter implements Exporter{
Node root = schema.getRoot();
Resource[] blanks = new Resource[schema.get_blanks().size()];
int i = 0;
for (ConstantBlankNode b : schema.get_blanks()){
for (int i = 0; i < blanks.length; i++) {
blanks[i] = model.createResource();
i +=1;
}
RowVisitor visitor = new RdfRowVisitor(model, baseUri, root,blanks);
FilteredRows filteredRows = engine.getAllFilteredRows();
filteredRows.accept(project, visitor);