/[fenfire]/fenfire/org/fenfire/modules/pp/PPActionsImpl.java
ViewVC logotype

Diff of /fenfire/org/fenfire/modules/pp/PPActionsImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mudyc, Sun Mar 9 01:46:25 2003 UTC revision 1.10 by mudyc, Sun Mar 9 11:30:05 2003 UTC
# Line 81  public static final String rcsid = "$Id$ Line 81  public static final String rcsid = "$Id$
81          // note doesn't exist so we need to make one          // note doesn't exist so we need to make one
82          String note_uri = URN5Namespace.instance.generateId();          String note_uri = URN5Namespace.instance.generateId();
83          Resource note = model.createResource(note_uri);          Resource note = model.createResource(note_uri);
84          note.addProperty(RDF.type, PP.Note);          note.addProperty(RDF.type, PP.NoteType);
85                    
86          // set note to paper          // set note to paper
87          paper.addProperty(PP.Contains, note);          paper.addProperty(PP.Contains, note);
# Line 106  public static final String rcsid = "$Id$ Line 106  public static final String rcsid = "$Id$
106    
107              note.addProperty(PP.LinkToContentRef, data);              note.addProperty(PP.LinkToContentRef, data);
108              data.addProperty(PP.Data, text);              data.addProperty(PP.Data, text);
109                data.addProperty(RDF.type, PP.DataType);
110    
111              } else {          } else {
112              // check if uri really exists?              // check if uri really exists?
113              // XXX maybe RDFException ?              // XXX maybe RDFException ?
114              Resource clone = model.getResource(noteURI);              Resource clone = model.getResource(noteURI);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26