Skip to main content

This package was made to edit XML files ( particularly TEI-XML files). The main purpose is to facilitate the tagging and edit of repeated citations and the inclusion of VIAF records

Project description

XMLCit package

Purpose

This packages was developed by staff of the Research Computing Center to serve the needs of our digital humanities community. Therefore the classes and functions in this package were develop with ease of use and to be applicable to TEI-XML standards. TEI-XML specifications can be found here TEI

Structure

Due to the brevity of this package only a single module was made to hold one class( with 3 methoods) and 3 additional functions.

Class description : Insert

This class focuses on the insertion of attributes into tags in the XML.

Method descriptions

  1. ID inserts an 'ID' attribute inside the selected tag based on text inside XML tag

  2. CitbyID

  • inserts a text( in this case meant to be a full citation) in an attrribute by the ID attribute
  1. CitbyText
  • inserts a text( in this case meant to be a full citation) in an attrribute by seacrhing for matching text

Additional Functions descriptions

  1. AddVIAF This function identifies those nodes (citations) in which a repeated non-written out citation happens like Ibid. and op. cit. It will then transfer the closest fullcitation attribute from a node that has: the same ID number AND a FullCitation attribute.

  2. Addtag This function adds an attribute with the VIAF ( Virtual International Authority File) number of the citation. To do this it searches the first 4 words of the citation in the VIAF database using the selenium webdriver.

  3. RepeatCitation This function adds a tag on a specified word inside an existing tag (node) in the XML. The Initial purpose of the function ( and the one contained in defaults) is to tag repeated citation with the cit tag for further inclusion of attributes with other functions in package

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

XMLCit-0.0.7.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

XMLCit-0.0.7-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page