30 |
import gzz.vob.vobs.*; |
import gzz.vob.vobs.*; |
31 |
|
|
32 |
import java.awt.event.MouseEvent; |
import java.awt.event.MouseEvent; |
33 |
|
import java.io.*; |
34 |
import com.hp.hpl.mesa.rdf.jena.model.*; |
import com.hp.hpl.mesa.rdf.jena.model.*; |
35 |
|
import com.hp.hpl.mesa.rdf.jena.mem.*; |
36 |
|
|
37 |
/** A very simple view of an RDF graph. |
/** A very simple view of an RDF graph. |
38 |
* Example: |
* Example: |
70 |
} |
} |
71 |
} |
} |
72 |
|
|
73 |
public static void main(String[] args) { |
|
74 |
|
public static Model load(String filename) throws RDFException, |
75 |
|
IOException { |
76 |
|
Model model = new ModelMem(); |
77 |
|
model.read(new java.io.FileReader(filename), ""); |
78 |
|
return model; |
79 |
|
} |
80 |
|
|
81 |
|
public static void main(String[] args) throws RDFException, IOException { |
82 |
|
final Model model = load(args[0]); |
83 |
|
final Statement stmt = model.listStatements().next(); |
84 |
|
|
85 |
final Shower s = new Shower() { |
final Shower s = new Shower() { |
86 |
Screen screen; |
Screen screen; |
87 |
public void setScreen(Screen s) { |
public void setScreen(Screen s) { |
89 |
} |
} |
90 |
public VobScene generate() { |
public VobScene generate() { |
91 |
VobScene sc = this.screen.window.createVobScene(); |
VobScene sc = this.screen.window.createVobScene(); |
92 |
|
SimpleView sv = new SimpleView(); |
93 |
|
sv.render(sc, 0, stmt.getSubject(), stmt.getObject()); |
94 |
return sc; |
return sc; |
95 |
} |
} |
96 |
public void chg() {} |
public void chg() {} |