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
>
> 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
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
;> 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
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
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
:
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
>> 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
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
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
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
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
12 matches
Mail list logo