Re: Line Numbers

2017-01-17 Thread Conal Tuohy
if you want to keep track of the provenance of data, you can use named graphs. If your graphs are small (fine-grained) enough then this may give you the necessary precision to refer any triple back to its source. On 18/01/2017 7:49 am, "Grahame Grieve" wrote: > > > > Add a stage to parsing which

Re: Line Numbers

2017-01-17 Thread Grahame Grieve
> > Add a stage to parsing which built a Triple to location map (ParserProfile > receives the line and column number). > > The look up in that map to find the source of the triple. Imperfect in > the general case but for working on a single file it might do what you are > looking for. > yes I cou

Re: Line Numbers

2017-01-17 Thread Andy Seaborne
m.au> 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 wrote: That will depend a bit on the language. For example, JSON

Re: Line Numbers

2017-01-17 Thread A. Soroka
;> The University of Virginia Library >> >>> On Jan 17, 2017, at 2:42 PM, Grahame Grieve < >> grah...@healthintersections.com.au> wrote: >>> >>> well, I care about turtle and json-ld. I can contribute a json library >>> that preserves line n

Re: Line Numbers

2017-01-17 Thread Grahame Grieve
ons.com.au> 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, 20

Re: Line Numbers

2017-01-17 Thread A. Soroka
brary > On Jan 17, 2017, at 2:42 PM, 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

Re: Line Numbers

2017-01-17 Thread Andy Seaborne
: 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 wrote: That will depend a bit on the language. For example, JSON parsing doesn&#x

Re: Line Numbers

2017-01-17 Thread A. Soroka
>> 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 l

Re: Line Numbers

2017-01-17 Thread Grahame Grieve
ed 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

Re: Line Numbers

2017-01-17 Thread Grahame Grieve
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 wrote: > That will depend a bit on the language. For example, JSON parsing

Re: Line Numbers

2017-01-17 Thread A. Soroka
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 so

Line Numbers

2017-01-16 Thread Grahame Grieve
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 / grah...@healthintersections.com.au / +61 411 867 065