Open GoogleCodeExporter opened 9 years ago
Attaching correct file.
Original comment by emets...@gmail.com
on 14 Dec 2009 at 4:24
Attachments:
Original comment by azarot...@gmail.com
on 15 Dec 2009 at 3:50
Test case added to repository, will accept patch if available?
Original comment by azarot...@gmail.com
on 15 Dec 2009 at 4:05
Thanks for accepting! I'm not sure yet what a good solution for this issue is.
I
suspect that a complete solution would require a bit of coding. It would be
nice to
take a ReM and check to see that it conforms to the assertions stated in
http://www.openarchives.org/ore/1.0/datamodel (e.g. the MUSTs in sections 3,
4). I
know that some are covered explicitly by Foresite (e.g. the protocol
requirement in
URIs) but it seems that others are not (they are implicitly covered by Jena).
That said, what I did as a hack was to add the following to
JenaOREParser.ResourceMap
parse(InputStream is):
Model model = this.parseToModel( is );
// Serialize the model to a null output stream
model.write( new OutputStream()
{
@Override
public void write( int b ) throws IOException
{
// do nothing
}
} );
...
I don't think this is the best solution, I'm not sure what the performance
implications are. I'll think on this some more. I'm wondering if there are
some
options to pass to the Jena ARP parser which may help, but I haven't explored in
detail: http://jena.sourceforge.net/ARP/standalone.html
http://jena.sourceforge.net/IO/iohowto.html#input
Original comment by emets...@gmail.com
on 15 Dec 2009 at 4:58
Original issue reported on code.google.com by
emets...@gmail.com
on 14 Dec 2009 at 4:20