Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.37 KB

kb.rst

File metadata and controls

33 lines (25 loc) · 1.37 KB

Knowledge base

The class :py~hucitlib.KnowledgeBase is the main access point to all resources described in the knowledge base (e.g. :py~hucitlib.surfext.HucitAuthor, :py~hucitlib.surfext.HucitWork, etc.). Its methods can be divided into the following high-level groups:

  • methods that concern globally the knowledge base:
    • :py~hucitlib.KnowledgeBase.search
    • :py~hucitlib.KnowledgeBase.to_json
    • :py~hucitlib.KnowledgeBase.get_statistics
  • methods to access top-level resources:

    • :py~hucitlib.KnowledgeBase.get_resource_by_urn
    • :py~hucitlib.KnowledgeBase.get_authors
    • :py~hucitlib.KnowledgeBase.get_author_label
    • :py~hucitlib.KnowledgeBase.get_works
    • :py~hucitlib.KnowledgeBase.get_work_label
    • :py~hucitlib.KnowledgeBase.get_opus_maximum_of
    • :py~hucitlib.KnowledgeBase.get_textelement_type
    • :py~hucitlib.KnowledgeBase.get_textelement_types
  • "factory methods", i.e. methods that create new objects (i.e. entries):

    • :py~hucitlib.KnowledgeBase.create_cts_urn
    • :py~hucitlib.KnowledgeBase.create_text_element
    • :py~hucitlib.KnowledgeBase.add_textelement_type
    • :py~hucitlib.KnowledgeBase.add_textelement_types

hucitlib.KnowledgeBase