- -
-

pyams_thesaurus.loader package

-
-

Module contents

-
-
-class pyams_thesaurus.loader.BaseThesaurusExporter
-

Bases: object

-

Base thesaurus exporter

-
-
-export(thesaurus, configuration=None)
-
- -
-
-handler = None
-
- -
- -
-
-class pyams_thesaurus.loader.BaseThesaurusExporterHandler(configuration)
-

Bases: object

-

Base thesaurus exporter handler

-
-
-content_type = None
-
- -
- -
-
-class pyams_thesaurus.loader.BaseThesaurusLoader
-

Bases: object

-

Base thesaurus loader

-
-
-handler = None
-
- -
-
-load(data, configuration=None)
-
- -
- -
-
-class pyams_thesaurus.loader.BaseThesaurusLoaderHandler(configuration)
-

Bases: object

-

Base thesaurus loader handler

-
- -
-
-class pyams_thesaurus.loader.ThesaurusExportersVocabulary(context, **kw)
-

Bases: zope.componentvocabulary.vocabulary.UtilityVocabulary

-

Thesaurus exporters vocabulary

-
-
-interface = <InterfaceClass pyams_thesaurus.interfaces.loader.IThesaurusExporter>
-
- -
-
-nameOnly = True
-
- -
- -
-
-class pyams_thesaurus.loader.ThesaurusLoaderDescription
-

Bases: object

-

Thesaurus loader description

-
-
-created
-
- -
-
-creator
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-description
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-language
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-publisher
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-subject
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-title
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_thesaurus.loader.ThesaurusLoaderTerm(label, alt=None, definition=None, note=None, generic=None, specifics=None, associations=None, usage=None, used_for=None, created=None, modified=None, weight=0, properties=None)
-

Bases: object

-

Thesaurus loader term

-
- -
-
-class pyams_thesaurus.loader.ThesaurusLoadersVocabulary(context, **kw)
-

Bases: zope.componentvocabulary.vocabulary.UtilityVocabulary

-

Thesaurus loaders vocabulary

-
-
-interface = <InterfaceClass pyams_thesaurus.interfaces.loader.IThesaurusLoader>
-
- -
-
-nameOnly = True
-
- -
- -
-
-class pyams_thesaurus.loader.XMLThesaurusExporterHandler(configuration)
-

Bases: pyams_thesaurus.loader.BaseThesaurusExporterHandler

-

Base XML thesaurus exporter handler

-
-
-content_type = 'text/xml'
-
- -
-
-write(thesaurus, output, configuration=None)
-
- -
- -
-
-class pyams_thesaurus.loader.XMLThesaurusLoaderHandler(configuration)
-

Bases: pyams_thesaurus.loader.BaseThesaurusLoaderHandler

-

Base XML thesaurus loader handler

-
- -
-
-

Submodules

-
-

pyams_thesaurus.loader.config module

-
-
-class pyams_thesaurus.loader.config.ThesaurusExporterConfiguration(data=None)
-

Bases: object

-

Thesaurus exporter configuration

-
-
-extract
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-filename
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-format
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_thesaurus.loader.config.ThesaurusLoaderConfiguration(data=None)
-

Bases: object

-

Thesaurus loader configuration

-
-
-data
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-encoding
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-format
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-import_synonyms
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-language
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-name
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-class pyams_thesaurus.loader.config.ThesaurusUpdaterConfiguration(data=None)
-

Bases: pyams_thesaurus.loader.config.ThesaurusLoaderConfiguration

-

Thesaurus updater configuration

-
-
-clear
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
-
-conflict_suffix
-

Computed attributes based on schema fields

-

Field properties provide default values, data validation and error messages -based on data found in field meta-data.

-

Note that FieldProperties cannot be used with slots. They can only -be used for attributes stored in instance dictionaries.

-
- -
- -
-
-

pyams_thesaurus.loader.skos module

-
-
-class pyams_thesaurus.loader.skos.SKOSThesaurusExporter
-

Bases: pyams_thesaurus.loader.BaseThesaurusExporter

-

SKOS/RDF format thesaurus exporter

-
-
-handler
-

alias of SKOSThesaurusExporterHandler

-
- -
- -
-
-class pyams_thesaurus.loader.skos.SKOSThesaurusExporterHandler(configuration)
-

Bases: pyams_thesaurus.loader.XMLThesaurusExporterHandler

-

SKOS/RDF format thesaurus export handler

-
- -
-
-class pyams_thesaurus.loader.skos.SKOSThesaurusLoader
-

Bases: pyams_thesaurus.loader.BaseThesaurusLoader

-

SKOS format thesaurus loader

-
-
-handler
-

alias of SKOSThesaurusLoaderHandler

-
- -
- -
-
-class pyams_thesaurus.loader.skos.SKOSThesaurusLoaderHandler(configuration)
-

Bases: pyams_thesaurus.loader.XMLThesaurusLoaderHandler

-

SKOS format thesaurus handler

-
-
-read(data, configuration=None)
-
- -
- -
-
-

pyams_thesaurus.loader.superdoc module

-
-
-class pyams_thesaurus.loader.superdoc.SuperdocThesaurusExporter
-

Bases: pyams_thesaurus.loader.BaseThesaurusExporter

-

SuperDoc format thesaurus exporter

-
-
-handler
-

alias of SuperdocThesaurusExporterHandler

-
- -
- -
-
-class pyams_thesaurus.loader.superdoc.SuperdocThesaurusExporterHandler(configuration)
-

Bases: pyams_thesaurus.loader.XMLThesaurusExporterHandler

-

SuperDoc format thesaurus export handler

-
- -
-
-class pyams_thesaurus.loader.superdoc.SuperdocThesaurusLoader
-

Bases: pyams_thesaurus.loader.BaseThesaurusLoader

-

SuperDoc export format thesaurus loader

-
-
-handler
-

alias of SuperdocThesaurusLoaderHandler

-
- -
- -
-
-class pyams_thesaurus.loader.superdoc.SuperdocThesaurusLoaderHandler(configuration)
-

Bases: pyams_thesaurus.loader.XMLThesaurusLoaderHandler

-

SuperDoc format thesaurus load handler

-
-
-read(data, configuration=None)
-
- -
- -
-
-
- - -