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 instances

Each Person is respectively named “foo“, “bar”, and “baz”. They are used as authors in REVISIONS and RELEASES.

swh.graph.example_dataset.CONTENTS: List[Content]#

Example swh.model.model.Content instances

Objects 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 instances

Object has the following SWHIDs:

  • swh:1:cnt:0000000000000000000000000000000000000015

swh.graph.example_dataset.DIRECTORIES: List[Directory]#

Example swh.model.model.Directory instances

Directories have the following SWHIDs and content:

  • swh:1:dir:0000000000000000000000000000000000000002

    • README.mdswh:1:cnt:0000000000000000000000000000000000000001

  • swh:1:dir:0000000000000000000000000000000000000006

    • README.mdswh:1:cnt:0000000000000000000000000000000000000004

    • parser.cswh:1:cnt:0000000000000000000000000000000000000005

  • swh:1:dir:0000000000000000000000000000000000000008

    • README.mdswh:1:cnt:0000000000000000000000000000000000000001

    • parser.cswh:1:cnt:0000000000000000000000000000000000000007

    • testsswh:1:dir:0000000000000000000000000000000000000006

  • swh:1:dir:0000000000000000000000000000000000000012

    • README.mdswh:1:cnt:0000000000000000000000000000000000000011

    • oldprojectswh:1:dir:0000000000000000000000000000000000000008

  • swh:1:dir:0000000000000000000000000000000000000016

    • TODO.txtswh:1:cnt:0000000000000000000000000000000000000015

  • swh:1:dir:0000000000000000000000000000000000000017

    • TODO.txtswh:1:cnt:0000000000000000000000000000000000000014

    • oldswh:1:dir:0000000000000000000000000000000000000016

swh.graph.example_dataset.REVISIONS: List[Revision]#

Example swh.model.model.Revision instances

Objects 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 instances

Objects 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 instances

Objects have the following SWHIDs and branches:

  • swh:1:snp:0000000000000000000000000000000000000020

    • refs/heads/masterswh:1:rev:0000000000000000000000000000000000000009

    • refs/tags/v1.0swh:1:rel:0000000000000000000000000000000000000010

  • swh:1:snp:0000000000000000000000000000000000000022

    • refs/heads/masterswh:1:rev:0000000000000000000000000000000000000009

    • refs/tags/v1.0swh:1:rel:0000000000000000000000000000000000000010

    • refs/tags/v2.0-anonymousswh:1:rel:0000000000000000000000000000000000000021

swh.graph.example_dataset.ORIGIN_VISITS: List[OriginVisit]#

Example swh.model.model.OriginVisit instances

Objects 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 instances

Objects have the following origins and snapshots:

  • swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054swh:1:snp:0000000000000000000000000000000000000020

  • swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165swh: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 instances

Objects 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.DATASET_DIR: Path#

Path to the dataset directory