I'm not sure where that means it's not possible or of interest to trace the triples (or their parts) to source files
Grahame On Wed, Jan 18, 2017 at 6:47 AM, Andy Seaborne <[email protected]> wrote: > RDF does not have the concept of an order to triples and indeed triples > can be added and deleted to the set of triples from different places. > > What you can do is to add stages to the parsing process to produce > messages as parsing happens. > > Andy > > > On 17/01/17 19:42, Grahame Grieve wrote: > >> well, I care about turtle and json-ld. I can contribute a json library >> that preserves line numbers when the json is parsed, since the main stream >> ones don't. >> >> Grahame >> >> >> On Wed, Jan 18, 2017 at 5:38 AM, A. Soroka <[email protected]> wrote: >> >> That will depend a bit on the language. For example, JSON parsing doesn't >>> occur directly in Jena, Jena uses a library that parses from JSON to Java >>> objects and then works with those objects: >>> >>> org.apache.jena.riot.lang.JsonLDReader.read(InputStream, String, >>> ContentType, StreamRDF, Context) >>> >>> In some other cases, it seems like it should be possible. Do you have a >>> specific language in mind? >>> >>> --- >>> A. Soroka >>> The University of Virginia Library >>> >>> On Jan 16, 2017, at 6:48 AM, Grahame Grieve < >>>> >>> [email protected]> wrote: >>> >>>> >>>> Can the Jena parser maintain a link between the triples and the line >>>> >>> number >>> >>>> from which are sourced in the original file? This is really useful for >>>> reporting issues with the content.... >>>> >>>> Grahame >>>> >>>> >>>> -- >>>> ----- >>>> http://www.healthintersections.com.au / grahame@healthintersections. >>>> >>> com.au >>> >>>> / +61 411 867 065 >>>> >>> >>> >>> >> >> -- ----- http://www.healthintersections.com.au / [email protected] / +61 411 867 065
