Revision 8910
Added by ben leinfelder about 10 years ago
src/edu/ucsb/nceas/metacat/annotation/DatapackageSummarizer.java | ||
---|---|---|
368 | 368 |
Individual m1 = m.createIndividual(ont.getURI() + "#measurement" + cnt, measurementClass); |
369 | 369 |
Individual a1 = m.createIndividual(ont.getURI() + "#annotation" + cnt, annotationClass); |
370 | 370 |
Individual t1 = m.createIndividual(ont.getURI() + "#target" + cnt, specificResourceClass); |
371 |
String xpointer = "xpointer(/eml/dataSet/" + entityCount + "/attributeList/" + attributeCount + ")";
|
|
371 |
String xpointer = "xpointer(/eml/dataSet/dataTable[" + entityCount + "]/attributeList/attribute[" + attributeCount + "])";
|
|
372 | 372 |
Individual s1 = m.createIndividual(ont.getURI() + "#" + xpointer, fragmentSelectorClass); |
373 | 373 |
s1.addLiteral(rdfValue, xpointer); |
374 |
s1.addProperty(conformsToProperty, "http://www.w3.org/TR/xptr/"); |
|
374 |
s1.addProperty(conformsToProperty, "http://tools.ietf.org/rfc/rfc3023"); |
|
375 |
//s1.addProperty(conformsToProperty, "http://www.w3.org/TR/xptr/"); |
|
376 |
|
|
375 | 377 |
|
376 | 378 |
// statements about the annotation |
377 | 379 |
a1.addProperty(hasBodyProperty, m1); |
Also available in: Unified diff
use http://tools.ietf.org/rfc/rfc3023 spec for conformsTo property. use the full xpath for EML dataTable and attribute selectors