swh.graph.example_dataset package#
Submodules#
Module contents#
This module defines the various objects of the swh.graph example dataset.
- swh.graph.example_dataset.PERSONS: List[Person]#
Example
swh.model.model.PersoninstancesEach Person is respectively named “foo“, “bar”, and “baz”. They are used as authors in
REVISIONSandRELEASES.
- swh.graph.example_dataset.CONTENTS: List[Content]#
Example
swh.model.model.ContentinstancesObjects have the following SWHIDs:
swh:1:cnt:0000000000000000000000000000000000000001swh:1:cnt:0000000000000000000000000000000000000004swh:1:cnt:0000000000000000000000000000000000000005swh:1:cnt:0000000000000000000000000000000000000007swh:1:cnt:0000000000000000000000000000000000000011swh:1:cnt:0000000000000000000000000000000000000014
- swh.graph.example_dataset.SKIPPED_CONTENTS: List[SkippedContent]#
Example
swh.model.model.SkippedContentinstancesObject has the following SWHIDs:
swh:1:cnt:0000000000000000000000000000000000000015
- swh.graph.example_dataset.DIRECTORIES: List[Directory]#
Example
swh.model.model.DirectoryinstancesDirectories have the following SWHIDs and content:
swh:1:dir:0000000000000000000000000000000000000002README.md→swh:1:cnt:0000000000000000000000000000000000000001
swh:1:dir:0000000000000000000000000000000000000006README.rst→swh:1:cnt:0000000000000000000000000000000000000004main.py→swh:1:cnt:0000000000000000000000000000000000000005
swh:1:dir:0000000000000000000000000000000000000008README.md→swh:1:cnt:0000000000000000000000000000000000000001parser.c→swh:1:cnt:0000000000000000000000000000000000000007tests→swh:1:dir:0000000000000000000000000000000000000006
swh:1:dir:0000000000000000000000000000000000000012README.md→swh:1:cnt:0000000000000000000000000000000000000011oldproject→swh:1:dir:0000000000000000000000000000000000000008
swh:1:dir:0000000000000000000000000000000000000016TODO.txt→swh:1:cnt:0000000000000000000000000000000000000015
swh:1:dir:0000000000000000000000000000000000000017TODO.txt→swh:1:cnt:0000000000000000000000000000000000000014old→swh:1:dir:0000000000000000000000000000000000000016
- swh.graph.example_dataset.REVISIONS: List[Revision]#
Example
swh.model.model.RevisioninstancesObjects have the following SWHIDs:
swh:1:rev:0000000000000000000000000000000000000003swh:1:rev:0000000000000000000000000000000000000009swh:1:rev:0000000000000000000000000000000000000013swh:1:rev:0000000000000000000000000000000000000018
- swh.graph.example_dataset.RELEASES: List[Release]#
Example
swh.model.model.ReleaseinstancesObjects have the following SWHIDs:
swh:1:rel:0000000000000000000000000000000000000010swh:1:rel:0000000000000000000000000000000000000019swh:1:rel:0000000000000000000000000000000000000021
- swh.graph.example_dataset.SNAPSHOTS: List[Snapshot]#
Example
swh.model.model.ReleaseinstancesObjects have the following SWHIDs and branches:
swh:1:snp:0000000000000000000000000000000000000020refs/heads/master→swh:1:rev:0000000000000000000000000000000000000009refs/tags/v1.0→swh:1:rel:0000000000000000000000000000000000000010
swh:1:snp:0000000000000000000000000000000000000022refs/heads/master→swh:1:rev:0000000000000000000000000000000000000009refs/tags/v1.0→swh:1:rel:0000000000000000000000000000000000000010refs/tags/v2.0-anonymous→swh:1:rel:0000000000000000000000000000000000000021
- swh.graph.example_dataset.ORIGIN_VISITS: List[OriginVisit]#
Example
swh.model.model.OriginVisitinstancesObjects have the following origins:
https://example.com/swh/graph(swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054)https://example.com/swh/graph2(swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165)
- swh.graph.example_dataset.ORIGIN_VISIT_STATUSES: List[OriginVisitStatus]#
Example
swh.model.model.OriginVisitStatusinstancesObjects have the following origins and snapshots:
swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054→swh:1:snp:0000000000000000000000000000000000000020swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165→swh:1:snp:0000000000000000000000000000000000000022
- swh.graph.example_dataset.INITIAL_ORIGIN: Origin#
Origin where the development of the tiny project represented by this example dataset was initially made.
URL:
https://example.com/swh/graphSWHID:
swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054
- swh.graph.example_dataset.FORKED_ORIGIN: Origin#
Origin that picked up (forked) the development of the tiny project represented by this example dataset.
URL:
https://example.com/swh/graph2SWHID:
swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165
- swh.graph.example_dataset.ORIGINS: List[Origin]#
Example
swh.model.model.OrigininstancesObjects have the following SWHIDs:
https://example.com/swh/graph(swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054)https://example.com/swh/graph2(swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165)
- swh.graph.example_dataset.DATASET: List[Content | SkippedContent | Directory | Revision | Release | Snapshot | OriginVisit | OriginVisitStatus | Origin]#
Full dataset comprised with all the objects defined above.
- swh.graph.example_dataset.SENSITIVE_DATASET_DIR: Path = PosixPath('/home/jenkins/workspace/DDOC/publish/swh-docs/.tox/sphinx/lib/python3.11/site-packages/swh/graph/example_dataset_sensitive')#
Path to the sensitive dataset directory. For this example dataset it is not actually sensitive, but the production equivalent is.
- meta hide-value: