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); |
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); |