spotterbase.model_core package
Submodules
spotterbase.model_core.annotation module
- class spotterbase.model_core.annotation.Annotation(uri: str | Uri | URIRef | Path | VocabularyMeta | None = None, *, target_uri: str | Uri | URIRef | Path | VocabularyMeta | None = None, body: Any | None = None, creator_uri: Uri | None = None)
Bases:
Record- body: Any
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
spotterbase.model_core.annotation_creator module
- class spotterbase.model_core.annotation_creator.SpotterRun(uri: Uri | None = None, spotter_uri: Uri | None = None, spotter_version: str | None = None, date: datetime | None = None, comment: str | None = None, label: str | None = None)
Bases:
Record- comment: str | None
- date: datetime | None
- label: str | None
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- spotter_version: str | None
spotterbase.model_core.body module
- class spotterbase.model_core.body.MultiTagBody(tags: list[Uri] | None = None)
Bases:
Record- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- class spotterbase.model_core.body.ReplacedHtmlBody(html_frag: HtmlFragment | None = None)
Bases:
Record- html_frag: HtmlFragment
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- class spotterbase.model_core.body.SimpleTagBody(tag: Uri | None = None)
Bases:
Record- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- class spotterbase.model_core.body.Tag(uri: Uri | None = None, *, label: str | None = None, belongs_to: Uri | None = None, comment: str | None = None, sub_tag_of: Uri | None = None)
Bases:
Record- comment: str | None
- label: str | None
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
spotterbase.model_core.corpus module
- class spotterbase.model_core.corpus.CorpusInfo(uri: str | Uri | URIRef | Path | VocabularyMeta | None = None, *, label: str | None = None, comment: str | None = None, based_on: str | Uri | URIRef | Path | VocabularyMeta | None = None)
Bases:
Record- comment: str | None
- label: str | None
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- class spotterbase.model_core.corpus.DocumentInfo(uri: str | Uri | URIRef | Path | VocabularyMeta | None = None, *, license: str | Uri | URIRef | Path | VocabularyMeta | None = None, belongs_to: str | Uri | URIRef | Path | VocabularyMeta | None = None, title: str | None = None, year: int | None = None, based_on: str | Uri | URIRef | Path | VocabularyMeta | None = None)
Bases:
Record- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- title: str | None
- year: int | None
spotterbase.model_core.oa module
- class spotterbase.model_core.oa.OA
Bases:
VocabularyGenerated from http://www.w3.org/ns/oa.ttl
- class spotterbase.model_core.oa.OA_PRED
Bases:
object- body = PredInfo(uri=Uri('http://www.w3.org/ns/oa#hasBody'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='body', json_ld_type_is_id=True)
- created = PredInfo(uri=Uri('http://purl.org/dc/terms/created'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#dateTime'), is_reversed=False, json_ld_term='created', json_ld_type_is_id=False)
- creator = PredInfo(uri=Uri('http://purl.org/dc/terms/creator'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='creator', json_ld_type_is_id=True)
- end = PredInfo(uri=Uri('http://www.w3.org/ns/oa#end'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#nonNegativeInteger'), is_reversed=False, json_ld_term='end', json_ld_type_is_id=False)
- label = PredInfo(uri=Uri('http://www.w3.org/2000/01/rdf-schema#label'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='label', json_ld_type_is_id=False)
- refinedBy = PredInfo(uri=Uri('http://www.w3.org/ns/oa#refinedBy'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='refinedBy', json_ld_type_is_id=True)
- selector = PredInfo(uri=Uri('http://www.w3.org/ns/oa#hasSelector'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='selector', json_ld_type_is_id=True)
- source = PredInfo(uri=Uri('http://www.w3.org/ns/oa#hasSource'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='source', json_ld_type_is_id=True)
- start = PredInfo(uri=Uri('http://www.w3.org/ns/oa#start'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#nonNegativeInteger'), is_reversed=False, json_ld_term='start', json_ld_type_is_id=False)
- target = PredInfo(uri=Uri('http://www.w3.org/ns/oa#hasTarget'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='target', json_ld_type_is_id=True)
spotterbase.model_core.sb module
- class spotterbase.model_core.sb.SB
Bases:
Vocabulary
- class spotterbase.model_core.sb.SB_PRED
Bases:
object- belongsTo = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/belongsTo'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='belongsTo', json_ld_type_is_id=True)
- belongsTo_Rev = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/belongsTo'), is_rdf_list=False, literal_type=None, is_reversed=True, json_ld_term='belongsTo_Rev', json_ld_type_is_id=True)
- comment = PredInfo(uri=Uri('http://www.w3.org/2000/01/rdf-schema#comment'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#string'), is_reversed=False, json_ld_term='comment', json_ld_type_is_id=False)
- contains = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/contains'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='contains', json_ld_type_is_id=True)
- endPath = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/endPath'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#string'), is_reversed=False, json_ld_term='endPath', json_ld_type_is_id=False)
- html_val = PredInfo(uri=Uri('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML'), is_reversed=False, json_ld_term='html-value', json_ld_type_is_id=False)
- isBasedOn = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/isBasedOn'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='isBasedOn', json_ld_type_is_id=True)
- license = PredInfo(uri=Uri('http://purl.org/dc/terms/license'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='license', json_ld_type_is_id=True)
- spotterVersion = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/spotterVersion'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#string'), is_reversed=False, json_ld_term='spotterVersion', json_ld_type_is_id=False)
- startPath = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/startPath'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#string'), is_reversed=False, json_ld_term='startPath', json_ld_type_is_id=False)
- subTagOf = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/subTagOf'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='subTagOf', json_ld_type_is_id=True)
- title = PredInfo(uri=Uri('http://purl.org/dc/terms/title'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='title', json_ld_type_is_id=True)
- val = PredInfo(uri=Uri('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='val', json_ld_type_is_id=True)
- vals = PredInfo(uri=Uri('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'), is_rdf_list=True, literal_type=None, is_reversed=False, json_ld_term='vals', json_ld_type_is_id=True)
- withSpotter = PredInfo(uri=Uri('https://ns.mathhub.info/project/sb/withSpotter'), is_rdf_list=False, literal_type=None, is_reversed=False, json_ld_term='withSpotter', json_ld_type_is_id=True)
- year = PredInfo(uri=Uri('http://purl.org/dc/terms/date'), is_rdf_list=False, literal_type=Uri('http://www.w3.org/2001/XMLSchema#gYear'), is_reversed=False, json_ld_term='year', json_ld_type_is_id=False)
spotterbase.model_core.selector module
- class spotterbase.model_core.selector.ListSelector(selectors: list[PathSelector | OffsetSelector] | None = None)
Bases:
Record- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- selectors: list[PathSelector | OffsetSelector]
- class spotterbase.model_core.selector.OffsetSelector(start: int | None = None, end: int | None = None, refinement: ListSelector | None = None)
Bases:
Record- end: int
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- refinement: ListSelector | None = None
- start: int
- class spotterbase.model_core.selector.PathSelector(start: str | None = None, end: str | None = None, refinement: ListSelector | None = None)
Bases:
Record- end: str
- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- refinement: ListSelector | None = None
- start: str
spotterbase.model_core.target module
- class spotterbase.model_core.target.FragmentTarget(uri: str | Uri | URIRef | Path | VocabularyMeta | None = None, source: str | Uri | URIRef | Path | VocabularyMeta | None = None, selectors: list | None = None)
Bases:
Record- record_info: ClassVar[RecordInfo] = <spotterbase.records.record.RecordInfo object>
- selectors: list[PathSelector | OffsetSelector]
- spotterbase.model_core.target.populate_standard_selectors(fragment_targets: list[tuple[Record, RootUri]], property_path: PropertyPath, populator: Populator)
spotterbase.model_core.update_sb_context_file module
Module contents
- spotterbase.model_core.load()