Mercurial > hg > AnnotationManager
comparison src/main/java/de/mpiwg/itgroup/annotationManager/RDFHandling/Convert.java @ 28:185db3cac82c
working on new schema.
| author | casties |
|---|---|
| date | Wed, 02 May 2012 19:31:53 +0200 |
| parents | b4a798d417fe |
| children | cf8166ee8918 |
comparison
equal
deleted
inserted
replaced
| 27:b4a798d417fe | 28:185db3cac82c |
|---|---|
| 84 // target (full URL) | 84 // target (full URL) |
| 85 retQuad.add(new Quadruple(annot.xpointer, NS.RDF_NS + "type", NS.OAC_NS + "Target", context)); | 85 retQuad.add(new Quadruple(annot.xpointer, NS.RDF_NS + "type", NS.OAC_NS + "Target", context)); |
| 86 // is target of annotation | 86 // is target of annotation |
| 87 retQuad.add(new Quadruple(annotationUrl, NS.OAC_NS + "hasTarget", annot.xpointer, context)); | 87 retQuad.add(new Quadruple(annotationUrl, NS.OAC_NS + "hasTarget", annot.xpointer, context)); |
| 88 | 88 |
| 89 // now add the xpointers | |
| 90 /* | |
| 91 * String[] xpointerSplitted = annot.xpointer.split("#"); if (xpointerSplitted.length > 2) { throw new XPointerError(); } | |
| 92 * retQuad.add(new Quadruple(annotationUrl, NS.MPIWG_ANNOT_URL + "annotatesDocuviewerText", xpointerSplitted[0], context)); | |
| 93 * retQuad.add(new Quadruple(annotationUrl, NS.MPIWG_ANNOT_URL + "textSelection", annot.xpointer, context)); | |
| 94 */ | |
| 95 | |
| 96 // annotation body | 89 // annotation body |
| 97 if (annot.url != null && annot.url.startsWith("http://")) { | 90 if (annot.url != null && annot.url.startsWith("http://")) { |
| 98 // body is resource | 91 // body is resource |
| 99 retQuad.add(new Quadruple(annot.url, NS.RDF_NS + "type", NS.OAC_NS + "Body", context)); | 92 retQuad.add(new Quadruple(annot.url, NS.RDF_NS + "type", NS.OAC_NS + "Body", context)); |
| 100 // is body of annotation | 93 // is body of annotation |
