cwrc / CWRC-WriterBase

The base class from which to create a CWRC-Writer XML editor.
GNU General Public License v2.0
14 stars 3 forks source link

TEI place entity precision mapping #160

Open ilovan opened 5 years ago

ilovan commented 5 years ago

Currently, this is the mapping for precision in TEI:

When I reached <placeName ref="http://viaf.org/viaf/7996154387399030970000/" cert="definite">Oslo<precision precision="unknown" /></placeName>

According to TEI practice, it should be something more like:

When I reached <placeName ref="http://viaf.org/viaf/7996154387399030970000/" cert="definite">Oslo<precision match=@ref precision="unknown" /></placeName>

This woudl say that:

  1. We are certain that he speaks about that particular Oslo (hence the cert attribute in the placeName), but we are not sure whereabouts he reached it (was it that he got to downtown Oslo, city limits, somewhere in the environs, saw it from the bus at the top of the hill, etc.)
ajmacdonald commented 5 years ago

So precision needs a match attribute whose value is the same as the one in placeName?

SusanBrown commented 5 years ago

That's what I thought from what Mihaela says in the CWRC-Writer RDF doc but I am now confused since the URI is not repeated in the example given here. @ilovan please clarify.

SusanBrown commented 5 years ago

I can't tell. Mihaela is this exactly as it should be? Does @ref point generically to the URI? or is it replaced by the URI? I can't look it up--no search box on this version of the TEI guidelines at least.

ilovan commented 5 years ago

@ajmacdonald, ad discussed yesterday morning during the standup:

The match attribute points to the @ref attribute, not to the value of the ref attribute. See example at https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-precision.html

It's a way to specify which of the attributes of the parent element the precision element applies to .

SusanBrown commented 5 years ago

OK, so is this now clear, @ajmacdonald ?

As I understand this, the XML generated by CWRC-Writer has to change. But I am putting <placeName ref="http://viaf.org/viaf/7996154387399030970000/" cert="definite">Oslo<precision match=@ref precision="unknown" /></placeName> into the CWRC-Writer RDF Annotations doc assuming it is what we will have.

ilovan commented 4 years ago

confirmed on dev-cwrc-writer