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.Person
instancesEach Person is respectively named “foo“, “bar”, and “baz”. They are used as authors in
REVISIONS
andRELEASES
.
- swh.graph.example_dataset.CONTENTS: List[Content]#
Example
swh.model.model.Content
instancesObjects have the following SWHIDs:
swh:1:cnt:0000000000000000000000000000000000000001
swh:1:cnt:0000000000000000000000000000000000000004
swh:1:cnt:0000000000000000000000000000000000000005
swh:1:cnt:0000000000000000000000000000000000000007
swh:1:cnt:0000000000000000000000000000000000000011
swh:1:cnt:0000000000000000000000000000000000000014
- swh.graph.example_dataset.SKIPPED_CONTENTS: List[SkippedContent]#
Example
swh.model.model.SkippedContent
instancesObject has the following SWHIDs:
swh:1:cnt:0000000000000000000000000000000000000015
- swh.graph.example_dataset.DIRECTORIES: List[Directory]#
Example
swh.model.model.Directory
instancesDirectories have the following SWHIDs and content:
swh:1:dir:0000000000000000000000000000000000000002
README.md
→swh:1:cnt:0000000000000000000000000000000000000001
swh:1:dir:0000000000000000000000000000000000000006
README.md
→swh:1:cnt:0000000000000000000000000000000000000004
parser.c
→swh:1:cnt:0000000000000000000000000000000000000005
swh:1:dir:0000000000000000000000000000000000000008
README.md
→swh:1:cnt:0000000000000000000000000000000000000001
parser.c
→swh:1:cnt:0000000000000000000000000000000000000007
tests
→swh:1:dir:0000000000000000000000000000000000000006
swh:1:dir:0000000000000000000000000000000000000012
README.md
→swh:1:cnt:0000000000000000000000000000000000000011
oldproject
→swh:1:dir:0000000000000000000000000000000000000008
swh:1:dir:0000000000000000000000000000000000000016
TODO.txt
→swh:1:cnt:0000000000000000000000000000000000000015
swh:1:dir:0000000000000000000000000000000000000017
TODO.txt
→swh:1:cnt:0000000000000000000000000000000000000014
old
→swh:1:dir:0000000000000000000000000000000000000016
- swh.graph.example_dataset.REVISIONS: List[Revision]#
Example
swh.model.model.Revision
instancesObjects have the following SWHIDs:
swh:1:rev:0000000000000000000000000000000000000003
swh:1:rev:0000000000000000000000000000000000000009
swh:1:rev:0000000000000000000000000000000000000013
swh:1:rev:0000000000000000000000000000000000000018
- swh.graph.example_dataset.RELEASES: List[Release]#
Example
swh.model.model.Release
instancesObjects have the following SWHIDs:
swh:1:rel:0000000000000000000000000000000000000010
swh:1:rel:0000000000000000000000000000000000000019
swh:1:rel:0000000000000000000000000000000000000021
- swh.graph.example_dataset.SNAPSHOTS: List[Snapshot]#
Example
swh.model.model.Release
instancesObjects have the following SWHIDs and branches:
swh:1:snp:0000000000000000000000000000000000000020
refs/heads/master
→swh:1:rev:0000000000000000000000000000000000000009
refs/tags/v1.0
→swh:1:rel:0000000000000000000000000000000000000010
swh:1:snp:0000000000000000000000000000000000000022
refs/heads/master
→swh:1:rev:0000000000000000000000000000000000000009
refs/tags/v1.0
→swh:1:rel:0000000000000000000000000000000000000010
refs/tags/v2.0-anonymous
→swh:1:rel:0000000000000000000000000000000000000021
- swh.graph.example_dataset.ORIGIN_VISITS: List[OriginVisit]#
Example
swh.model.model.OriginVisit
instancesObjects 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.OriginVisitStatus
instancesObjects have the following origins and snapshots:
swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054
→swh:1:snp:0000000000000000000000000000000000000020
swh: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/graph
SWHID:
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/graph2
SWHID:
swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165
- swh.graph.example_dataset.ORIGINS: List[Origin]#
Example
swh.model.model.Origin
instancesObjects 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.