searcch.importer.db.model package¶
Submodules¶
searcch.importer.db.model.license module¶
Module contents¶
-
class
searcch.importer.db.model.Affiliation(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
org¶
-
org_id¶
-
person¶
-
person_id¶
-
-
class
searcch.importer.db.model.Artifact(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe Artifact class provides an internal model of a SEARCCH artifact. An artifact is an entity that may be added to or edited within the SEARCCH Hub.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
affiliations¶
-
badges¶
-
candidate_relationships¶
-
ctime¶
-
curations¶
-
description¶
-
ext_id¶
-
files¶
-
fundings¶
-
id¶
-
import_session¶
-
importer¶
-
importer_id¶
-
license¶
-
license_id¶
-
meta¶
-
mtime¶
-
name¶
-
owner¶
-
owner_id¶
-
publication¶
-
relationships¶
-
releases¶
-
title¶
-
type¶
-
url¶
-
venues¶
-
-
class
searcch.importer.db.model.ArtifactAffiliation(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
affiliation¶
-
affiliation_id¶
-
artifact_id¶
-
id¶
-
roles¶
-
-
class
searcch.importer.db.model.ArtifactBadge(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
badge¶
-
badge_id¶
-
id¶
-
-
class
searcch.importer.db.model.ArtifactCuration(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
curator¶
-
curator_id¶
-
id¶
-
notes¶
-
opdata¶
-
time¶
-
-
class
searcch.importer.db.model.ArtifactFile(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
file_content¶
-
file_content_id¶
-
filetype¶
-
id¶
-
members¶
-
mtime¶
-
name¶
-
size¶
-
url¶
-
-
class
searcch.importer.db.model.ArtifactFileMember(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
download_url¶
-
file_content¶
-
file_content_id¶
-
filetype¶
-
html_url¶
-
id¶
-
mtime¶
-
name¶
-
parent_file¶
-
parent_file_id¶
-
pathname¶
-
size¶
-
-
class
searcch.importer.db.model.ArtifactFunding(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
funding_org_id¶
-
grant_number¶
-
grant_title¶
-
grant_url¶
-
id¶
-
organization¶
-
-
class
searcch.importer.db.model.ArtifactImport(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseArtifactImport represents an ongoing or completed artifact import session, for server-triggered imports.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact¶
-
artifact_id¶
-
bytes_extracted¶
-
bytes_retrieved¶
-
ctime¶
-
id¶
-
importer_module_name¶
-
log¶
-
message¶
-
mtime¶
-
noextract¶
-
nofetch¶
-
noremove¶
-
phase¶
-
progress¶
-
remote_id¶
-
type¶
-
url¶
-
-
class
searcch.importer.db.model.ArtifactMetadata(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
name¶
-
source¶
-
type¶
-
value¶
-
-
class
searcch.importer.db.model.ArtifactPublication(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
notes¶
-
publisher¶
-
publisher_id¶
-
time¶
-
-
class
searcch.importer.db.model.ArtifactRelationship(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe ArtifactRelationship class declares a relationship between two SEARCCH artifacts.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
relation¶
-
-
class
searcch.importer.db.model.ArtifactRelease(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
notes¶
-
tag¶
-
time¶
-
title¶
-
url¶
-
-
class
searcch.importer.db.model.ArtifactTag(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
source¶
-
tag¶
-
-
class
searcch.importer.db.model.ArtifactVenue(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact_id¶
-
id¶
-
venue¶
-
venue_id¶
-
-
class
searcch.importer.db.model.Badge(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
description¶
-
doi¶
-
id¶
-
image_url¶
-
issue_time¶
-
organization¶
-
title¶
-
url¶
-
venue¶
-
verified¶
-
version¶
-
-
class
searcch.importer.db.model.CandidateArtifact(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe CandidateArtifact class allows possible/recommended (“candidate”), yet-to-be-imported Artifacts to be declared. These have not been imported, so cannot be placed in the main Artifacts table. We also need to model possible relationships between both candidates and existing artifacts.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
candidate_artifact_relationships¶
-
ctime¶
-
description¶
-
id¶
-
imported_artifact¶
-
imported_artifact_id¶
-
meta¶
-
mtime¶
-
name¶
-
owner¶
-
owner_id¶
-
title¶
-
type¶
-
url¶
-
-
class
searcch.importer.db.model.CandidateArtifactMetadata(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
candidate_artifact_id¶
-
id¶
-
name¶
-
source¶
-
type¶
-
value¶
-
-
class
searcch.importer.db.model.CandidateArtifactRelationship(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe CandidateArtifactRelationship class declares a relationship between an artifact and a candidate.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
artifact¶
-
artifact_id¶
-
id¶
-
relation¶
-
-
class
searcch.importer.db.model.CandidateRelationship(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe CandidateRelationship class declares a relationship between two candidate artifacts.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
candidate_artifact_id¶
-
id¶
-
relation¶
-
-
class
searcch.importer.db.model.ExportedObject(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.BaseThe ExportedObject class tracks system objects that have been exported. The idea is that each object can only be exported to a single destination once without clearing its presence in this table.
-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
ctime¶
-
exporter¶
-
exporter_id¶
-
external_object_id¶
-
id¶
-
object_id¶
-
object_type¶
-
-
class
searcch.importer.db.model.Exporter(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
name¶
-
version¶
-
-
class
searcch.importer.db.model.Extractor(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
name¶
-
version¶
-
-
class
searcch.importer.db.model.FileContent(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
content¶
-
hash¶
-
id¶
-
size¶
-
-
class
searcch.importer.db.model.Importer(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
name¶
-
version¶
-
-
class
searcch.importer.db.model.License(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
long_name¶
-
short_name¶
-
url¶
-
verified¶
-
-
class
searcch.importer.db.model.Organization(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
address¶
-
country¶
-
id¶
-
latitude¶
-
longitude¶
-
name¶
-
state¶
-
type¶
-
url¶
-
verified¶
-
-
class
searcch.importer.db.model.Person(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
email¶
-
id¶
-
meta¶
-
name¶
-
-
class
searcch.importer.db.model.PersonMetadata(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
name¶
-
person_id¶
-
source¶
-
value¶
-
-
class
searcch.importer.db.model.RecurringVenue(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
abbrev¶
-
description¶
-
id¶
-
publisher_url¶
-
recurrences¶
-
title¶
-
type¶
-
url¶
-
verified¶
-
-
class
searcch.importer.db.model.User(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
id¶
-
person¶
-
person_id¶
-
-
class
searcch.importer.db.model.UserAuthorization(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
roles¶
-
scope¶
-
scoped_id¶
-
user_id¶
-
-
class
searcch.importer.db.model.Venue(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base-
__init__(**kwargs)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
abbrev¶
-
description¶
-
doi¶
-
end_day¶
-
id¶
-
isbn¶
-
issn¶
-
issue¶
-
location¶
-
month¶
-
publisher¶
-
publisher_location¶
-
publisher_url¶
-
recurring_venue¶
-
recurring_venue_id¶
-
start_day¶
-
title¶
-
type¶
-
url¶
-
verified¶
-
volume¶
-
year¶
-