relaton / relaton-bib

MIT License
3 stars 1 forks source link

place/text should be place/city/text #95

Open opoudjis opened 2 weeks ago

opoudjis commented 2 weeks ago

In the Relaton grammar, place is defined as:

## Place associated with the production of a bibliographic item
bplace = element place {
    ## City
    bibliocity?,
    ## Region that city is located in, given for disambiguation purposes.
    biblioregion*,
    ## Country that city is located in, given for disambiguation purposes.
    bibliocountry*,
    ## Name of the place, not broken down semantically
    formattedPlace?,
    ## URI in a geographical registry identifying the place
    uri?
} 

That means that a text string, such as "Geneva" being output in ISO 712, is illegal in the grammar. If you find just a string in your scraping of bibliographic data, assume by default that it is city: <place><city>Geneva</city></place>, not <place>Geneva</place>