spdx_python_model.bindings package#

Submodules#

spdx_python_model.bindings.v3_0_1 module#

spdx_python_model.bindings.v3_0_1.check_type(obj, types)[source]#
Parameters:
  • obj (Any)

  • types (Type[Any] | Tuple[Type[Any], ...])

Return type:

None

class spdx_python_model.bindings.v3_0_1.Property(*, pattern=None)[source]#

Bases: ABC

A generic SHACL object property. The different types will derive from this class

Parameters:

pattern (Optional[str])

VALID_TYPES: Tuple | Type = ()#
init()[source]#
Return type:

Any

validate(value)[source]#
Return type:

None

set(value)[source]#
Parameters:

value (Any)

Return type:

Any

check_min_count(value, min_count)[source]#
Parameters:

min_count (int)

Return type:

bool

check_max_count(value, max_count)[source]#
Parameters:

max_count (int)

Return type:

bool

elide(value)[source]#
Return type:

bool

walk(value, callback, path)[source]#
Parameters:
  • callback (Callable)

  • path (List[str])

Return type:

None

iter_objects(value, recursive, visited)[source]#
Parameters:
Return type:

Iterable[Any]

Parameters:
to_string(value)[source]#
Return type:

str

abstractmethod encode(encoder, value, state)[source]#
Return type:

None

abstractmethod decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

Any

class spdx_python_model.bindings.v3_0_1.StringProp(*, pattern=None)[source]#

Bases: Property

A scalar string property for an SHACL object

Parameters:

pattern (Optional[str])

VALID_TYPES#

alias of str

set(value)[source]#
Return type:

str

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

str | None

class spdx_python_model.bindings.v3_0_1.AnyURIProp(*, pattern=None)[source]#

Bases: StringProp

Parameters:

pattern (Optional[str])

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

str | None

class spdx_python_model.bindings.v3_0_1.DateTimeProp(*, pattern=None)[source]#

Bases: Property

A Date/Time Object with optional timezone

Parameters:

pattern (Optional[str])

VALID_TYPES#

alias of datetime

UTC_FORMAT_STR = '%Y-%m-%dT%H:%M:%SZ'#
REGEX = '^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(Z|[+-]\\d{2}:\\d{2})?$'#
set(value)[source]#
Return type:

datetime

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

datetime | None

to_string(value)[source]#
Parameters:

value (datetime)

Return type:

str

from_string(value)[source]#
Parameters:

value (str)

Return type:

datetime

class spdx_python_model.bindings.v3_0_1.DateTimeStampProp(*, pattern=None)[source]#

Bases: DateTimeProp

A Date/Time Object with required timestamp

Parameters:

pattern (Optional[str])

REGEX = '^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(Z|[+-]\\d{2}:\\d{2})$'#
class spdx_python_model.bindings.v3_0_1.IntegerProp(*, pattern=None)[source]#

Bases: Property

Parameters:

pattern (Optional[str])

VALID_TYPES#

alias of int

set(value)[source]#
Return type:

int

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

int | None

class spdx_python_model.bindings.v3_0_1.PositiveIntegerProp(*, pattern=None)[source]#

Bases: IntegerProp

Parameters:

pattern (Optional[str])

validate(value)[source]#
Return type:

None

class spdx_python_model.bindings.v3_0_1.NonNegativeIntegerProp(*, pattern=None)[source]#

Bases: IntegerProp

Parameters:

pattern (Optional[str])

validate(value)[source]#
Return type:

None

class spdx_python_model.bindings.v3_0_1.BooleanProp(*, pattern=None)[source]#

Bases: Property

Parameters:

pattern (Optional[str])

VALID_TYPES#

alias of bool

set(value)[source]#
Return type:

bool

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

bool | None

class spdx_python_model.bindings.v3_0_1.FloatProp(*, pattern=None)[source]#

Bases: Property

Parameters:

pattern (Optional[str])

VALID_TYPES: Tuple | Type = (<class 'float'>, <class 'int'>)#
set(value)[source]#
Return type:

float

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

float | None

class spdx_python_model.bindings.v3_0_1.IRIProp(context=None, *, pattern=None)[source]#

Bases: Property

Parameters:
  • context (Optional[List[Tuple[str, str]]])

  • pattern (Optional[str])

compact(value)[source]#
Return type:

str | None

expand(value)[source]#
Return type:

str | None

iri_values()[source]#
class spdx_python_model.bindings.v3_0_1.ObjectProp(cls, required, context=None)[source]#

Bases: IRIProp

A scalar SHACL object property of a SHACL object

Parameters:
  • required (bool)

  • context (Optional[List[Tuple[str, str]]])

validate(value)[source]#
Return type:

None

walk(value, callback, path)[source]#
Parameters:
  • callback (Callable)

  • path (List[str])

Return type:

None

iter_objects(value, recursive, visited)[source]#
Parameters:

recursive (bool)

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

class spdx_python_model.bindings.v3_0_1.ListProxy(prop, data=None)[source]#

Bases: object

Parameters:
  • prop (Property)

  • data (Optional[List[Any]])

append(value)[source]#
Return type:

None

insert(idx, value)[source]#
Parameters:

idx (int)

Return type:

None

extend(items)[source]#
Parameters:

items (Iterable[Any])

Return type:

None

sort(*args, **kwargs)[source]#
Return type:

None

class spdx_python_model.bindings.v3_0_1.ListProp(prop)[source]#

Bases: Property

A list of SHACL properties

Parameters:

prop (Property)

VALID_TYPES: Tuple | Type = (<class 'list'>, <class 'spdx_python_model.bindings.v3_0_1.ListProxy'>)#
init()[source]#
Return type:

ListProxy

validate(value)[source]#
Return type:

None

set(value)[source]#
Return type:

ListProxy

check_min_count(value, min_count)[source]#
Parameters:

min_count (int)

Return type:

bool

check_max_count(value, max_count)[source]#
Parameters:

max_count (int)

Return type:

bool

elide(value)[source]#
Return type:

bool

walk(value, callback, path)[source]#
Parameters:
  • callback (Callable)

  • path (List[str])

Return type:

None

iter_objects(value, recursive, visited)[source]#
Parameters:

recursive (bool)

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

ListProxy

class spdx_python_model.bindings.v3_0_1.EnumProp(values, *, pattern=None)[source]#

Bases: IRIProp

Parameters:

pattern (Optional[str])

VALID_TYPES#

alias of str

validate(value)[source]#
Return type:

None

encode(encoder, value, state)[source]#
Return type:

None

decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Return type:

str

class spdx_python_model.bindings.v3_0_1.NodeKind(*values)[source]#

Bases: Enum

BlankNode = 1#
IRI = 2#
BlankNodeOrIRI = 3#
spdx_python_model.bindings.v3_0_1.is_IRI(s)[source]#
Parameters:

s (Any)

Return type:

bool

spdx_python_model.bindings.v3_0_1.is_blank_node(s)[source]#
Parameters:

s (Any)

Return type:

bool

spdx_python_model.bindings.v3_0_1.register(type_iri, *, compact_type=None, abstract=False)[source]#
Parameters:
  • type_iri (str)

  • compact_type (str | None)

  • abstract (bool)

class spdx_python_model.bindings.v3_0_1.SHACLObject(**kwargs)[source]#

Bases: object

CLASSES: Dict[str, Type] = {'Agent': <class 'spdx_python_model.bindings.v3_0_1.Agent'>, 'Annotation': <class 'spdx_python_model.bindings.v3_0_1.Annotation'>, 'AnnotationType': <class 'spdx_python_model.bindings.v3_0_1.AnnotationType'>, 'Artifact': <class 'spdx_python_model.bindings.v3_0_1.Artifact'>, 'Bom': <class 'spdx_python_model.bindings.v3_0_1.Bom'>, 'Bundle': <class 'spdx_python_model.bindings.v3_0_1.Bundle'>, 'CreationInfo': <class 'spdx_python_model.bindings.v3_0_1.CreationInfo'>, 'DictionaryEntry': <class 'spdx_python_model.bindings.v3_0_1.DictionaryEntry'>, 'Element': <class 'spdx_python_model.bindings.v3_0_1.Element'>, 'ElementCollection': <class 'spdx_python_model.bindings.v3_0_1.ElementCollection'>, 'ExternalIdentifier': <class 'spdx_python_model.bindings.v3_0_1.ExternalIdentifier'>, 'ExternalIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.ExternalIdentifierType'>, 'ExternalMap': <class 'spdx_python_model.bindings.v3_0_1.ExternalMap'>, 'ExternalRef': <class 'spdx_python_model.bindings.v3_0_1.ExternalRef'>, 'ExternalRefType': <class 'spdx_python_model.bindings.v3_0_1.ExternalRefType'>, 'Hash': <class 'spdx_python_model.bindings.v3_0_1.Hash'>, 'HashAlgorithm': <class 'spdx_python_model.bindings.v3_0_1.HashAlgorithm'>, 'IndividualElement': <class 'spdx_python_model.bindings.v3_0_1.IndividualElement'>, 'IntegrityMethod': <class 'spdx_python_model.bindings.v3_0_1.IntegrityMethod'>, 'LifecycleScopeType': <class 'spdx_python_model.bindings.v3_0_1.LifecycleScopeType'>, 'LifecycleScopedRelationship': <class 'spdx_python_model.bindings.v3_0_1.LifecycleScopedRelationship'>, 'NamespaceMap': <class 'spdx_python_model.bindings.v3_0_1.NamespaceMap'>, 'Organization': <class 'spdx_python_model.bindings.v3_0_1.Organization'>, 'PackageVerificationCode': <class 'spdx_python_model.bindings.v3_0_1.PackageVerificationCode'>, 'Person': <class 'spdx_python_model.bindings.v3_0_1.Person'>, 'PositiveIntegerRange': <class 'spdx_python_model.bindings.v3_0_1.PositiveIntegerRange'>, 'PresenceType': <class 'spdx_python_model.bindings.v3_0_1.PresenceType'>, 'ProfileIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.ProfileIdentifierType'>, 'Relationship': <class 'spdx_python_model.bindings.v3_0_1.Relationship'>, 'RelationshipCompleteness': <class 'spdx_python_model.bindings.v3_0_1.RelationshipCompleteness'>, 'RelationshipType': <class 'spdx_python_model.bindings.v3_0_1.RelationshipType'>, 'SoftwareAgent': <class 'spdx_python_model.bindings.v3_0_1.SoftwareAgent'>, 'SpdxDocument': <class 'spdx_python_model.bindings.v3_0_1.SpdxDocument'>, 'SupportType': <class 'spdx_python_model.bindings.v3_0_1.SupportType'>, 'Tool': <class 'spdx_python_model.bindings.v3_0_1.Tool'>, 'ai_AIPackage': <class 'spdx_python_model.bindings.v3_0_1.ai_AIPackage'>, 'ai_EnergyConsumption': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyConsumption'>, 'ai_EnergyConsumptionDescription': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyConsumptionDescription'>, 'ai_EnergyUnitType': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyUnitType'>, 'ai_SafetyRiskAssessmentType': <class 'spdx_python_model.bindings.v3_0_1.ai_SafetyRiskAssessmentType'>, 'build_Build': <class 'spdx_python_model.bindings.v3_0_1.build_Build'>, 'dataset_ConfidentialityLevelType': <class 'spdx_python_model.bindings.v3_0_1.dataset_ConfidentialityLevelType'>, 'dataset_DatasetAvailabilityType': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetAvailabilityType'>, 'dataset_DatasetPackage': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetPackage'>, 'dataset_DatasetType': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetType'>, 'expandedlicensing_ConjunctiveLicenseSet': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ConjunctiveLicenseSet'>, 'expandedlicensing_CustomLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicense'>, 'expandedlicensing_CustomLicenseAddition': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicenseAddition'>, 'expandedlicensing_DisjunctiveLicenseSet': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_DisjunctiveLicenseSet'>, 'expandedlicensing_ExtendableLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ExtendableLicense'>, 'expandedlicensing_IndividualLicensingInfo': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_IndividualLicensingInfo'>, 'expandedlicensing_License': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_License'>, 'expandedlicensing_LicenseAddition': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_LicenseAddition'>, 'expandedlicensing_ListedLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicense'>, 'expandedlicensing_ListedLicenseException': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicenseException'>, 'expandedlicensing_OrLaterOperator': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_OrLaterOperator'>, 'expandedlicensing_WithAdditionOperator': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_WithAdditionOperator'>, 'extension_CdxPropertiesExtension': <class 'spdx_python_model.bindings.v3_0_1.extension_CdxPropertiesExtension'>, 'extension_CdxPropertyEntry': <class 'spdx_python_model.bindings.v3_0_1.extension_CdxPropertyEntry'>, 'extension_Extension': <class 'spdx_python_model.bindings.v3_0_1.extension_Extension'>, 'https://spdx.org/rdf/3.0.1/terms/AI/AIPackage': <class 'spdx_python_model.bindings.v3_0_1.ai_AIPackage'>, 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyConsumption': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyConsumption'>, 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyConsumptionDescription': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyConsumptionDescription'>, 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType': <class 'spdx_python_model.bindings.v3_0_1.ai_EnergyUnitType'>, 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType': <class 'spdx_python_model.bindings.v3_0_1.ai_SafetyRiskAssessmentType'>, 'https://spdx.org/rdf/3.0.1/terms/Build/Build': <class 'spdx_python_model.bindings.v3_0_1.build_Build'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Agent': <class 'spdx_python_model.bindings.v3_0_1.Agent'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Annotation': <class 'spdx_python_model.bindings.v3_0_1.Annotation'>, 'https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType': <class 'spdx_python_model.bindings.v3_0_1.AnnotationType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Artifact': <class 'spdx_python_model.bindings.v3_0_1.Artifact'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Bom': <class 'spdx_python_model.bindings.v3_0_1.Bom'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Bundle': <class 'spdx_python_model.bindings.v3_0_1.Bundle'>, 'https://spdx.org/rdf/3.0.1/terms/Core/CreationInfo': <class 'spdx_python_model.bindings.v3_0_1.CreationInfo'>, 'https://spdx.org/rdf/3.0.1/terms/Core/DictionaryEntry': <class 'spdx_python_model.bindings.v3_0_1.DictionaryEntry'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Element': <class 'spdx_python_model.bindings.v3_0_1.Element'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ElementCollection': <class 'spdx_python_model.bindings.v3_0_1.ElementCollection'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifier': <class 'spdx_python_model.bindings.v3_0_1.ExternalIdentifier'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.ExternalIdentifierType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalMap': <class 'spdx_python_model.bindings.v3_0_1.ExternalMap'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRef': <class 'spdx_python_model.bindings.v3_0_1.ExternalRef'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType': <class 'spdx_python_model.bindings.v3_0_1.ExternalRefType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Hash': <class 'spdx_python_model.bindings.v3_0_1.Hash'>, 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm': <class 'spdx_python_model.bindings.v3_0_1.HashAlgorithm'>, 'https://spdx.org/rdf/3.0.1/terms/Core/IndividualElement': <class 'spdx_python_model.bindings.v3_0_1.IndividualElement'>, 'https://spdx.org/rdf/3.0.1/terms/Core/IntegrityMethod': <class 'spdx_python_model.bindings.v3_0_1.IntegrityMethod'>, 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType': <class 'spdx_python_model.bindings.v3_0_1.LifecycleScopeType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopedRelationship': <class 'spdx_python_model.bindings.v3_0_1.LifecycleScopedRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Core/NamespaceMap': <class 'spdx_python_model.bindings.v3_0_1.NamespaceMap'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Organization': <class 'spdx_python_model.bindings.v3_0_1.Organization'>, 'https://spdx.org/rdf/3.0.1/terms/Core/PackageVerificationCode': <class 'spdx_python_model.bindings.v3_0_1.PackageVerificationCode'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Person': <class 'spdx_python_model.bindings.v3_0_1.Person'>, 'https://spdx.org/rdf/3.0.1/terms/Core/PositiveIntegerRange': <class 'spdx_python_model.bindings.v3_0_1.PositiveIntegerRange'>, 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType': <class 'spdx_python_model.bindings.v3_0_1.PresenceType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.ProfileIdentifierType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Relationship': <class 'spdx_python_model.bindings.v3_0_1.Relationship'>, 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness': <class 'spdx_python_model.bindings.v3_0_1.RelationshipCompleteness'>, 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType': <class 'spdx_python_model.bindings.v3_0_1.RelationshipType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/SoftwareAgent': <class 'spdx_python_model.bindings.v3_0_1.SoftwareAgent'>, 'https://spdx.org/rdf/3.0.1/terms/Core/SpdxDocument': <class 'spdx_python_model.bindings.v3_0_1.SpdxDocument'>, 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType': <class 'spdx_python_model.bindings.v3_0_1.SupportType'>, 'https://spdx.org/rdf/3.0.1/terms/Core/Tool': <class 'spdx_python_model.bindings.v3_0_1.Tool'>, 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType': <class 'spdx_python_model.bindings.v3_0_1.dataset_ConfidentialityLevelType'>, 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetAvailabilityType'>, 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetPackage': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetPackage'>, 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType': <class 'spdx_python_model.bindings.v3_0_1.dataset_DatasetType'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ConjunctiveLicenseSet': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ConjunctiveLicenseSet'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/CustomLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicense'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/CustomLicenseAddition': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicenseAddition'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/DisjunctiveLicenseSet': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_DisjunctiveLicenseSet'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ExtendableLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ExtendableLicense'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/IndividualLicensingInfo': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_IndividualLicensingInfo'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/License': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_License'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/LicenseAddition': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_LicenseAddition'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ListedLicense': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicense'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ListedLicenseException': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicenseException'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/OrLaterOperator': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_OrLaterOperator'>, 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/WithAdditionOperator': <class 'spdx_python_model.bindings.v3_0_1.expandedlicensing_WithAdditionOperator'>, 'https://spdx.org/rdf/3.0.1/terms/Extension/CdxPropertiesExtension': <class 'spdx_python_model.bindings.v3_0_1.extension_CdxPropertiesExtension'>, 'https://spdx.org/rdf/3.0.1/terms/Extension/CdxPropertyEntry': <class 'spdx_python_model.bindings.v3_0_1.extension_CdxPropertyEntry'>, 'https://spdx.org/rdf/3.0.1/terms/Extension/Extension': <class 'spdx_python_model.bindings.v3_0_1.extension_Extension'>, 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType': <class 'spdx_python_model.bindings.v3_0_1.security_CvssSeverityType'>, 'https://spdx.org/rdf/3.0.1/terms/Security/CvssV2VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV2VulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/CvssV3VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV3VulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/CvssV4VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV4VulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/EpssVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_EpssVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType': <class 'spdx_python_model.bindings.v3_0_1.security_ExploitCatalogType'>, 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_ExploitCatalogVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType': <class 'spdx_python_model.bindings.v3_0_1.security_SsvcDecisionType'>, 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_SsvcVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexAffectedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexAffectedVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexFixedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexFixedVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType': <class 'spdx_python_model.bindings.v3_0_1.security_VexJustificationType'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexNotAffectedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexNotAffectedVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexUnderInvestigationVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexUnderInvestigationVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VexVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexVulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VulnAssessmentRelationship'>, 'https://spdx.org/rdf/3.0.1/terms/Security/Vulnerability': <class 'spdx_python_model.bindings.v3_0_1.security_Vulnerability'>, 'https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/AnyLicenseInfo': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_AnyLicenseInfo'>, 'https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/LicenseExpression': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_LicenseExpression'>, 'https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/SimpleLicensingText': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_SimpleLicensingText'>, 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifier': <class 'spdx_python_model.bindings.v3_0_1.software_ContentIdentifier'>, 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.software_ContentIdentifierType'>, 'https://spdx.org/rdf/3.0.1/terms/Software/File': <class 'spdx_python_model.bindings.v3_0_1.software_File'>, 'https://spdx.org/rdf/3.0.1/terms/Software/FileKindType': <class 'spdx_python_model.bindings.v3_0_1.software_FileKindType'>, 'https://spdx.org/rdf/3.0.1/terms/Software/Package': <class 'spdx_python_model.bindings.v3_0_1.software_Package'>, 'https://spdx.org/rdf/3.0.1/terms/Software/Sbom': <class 'spdx_python_model.bindings.v3_0_1.software_Sbom'>, 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType': <class 'spdx_python_model.bindings.v3_0_1.software_SbomType'>, 'https://spdx.org/rdf/3.0.1/terms/Software/Snippet': <class 'spdx_python_model.bindings.v3_0_1.software_Snippet'>, 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwareArtifact': <class 'spdx_python_model.bindings.v3_0_1.software_SoftwareArtifact'>, 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose': <class 'spdx_python_model.bindings.v3_0_1.software_SoftwarePurpose'>, 'security_CvssSeverityType': <class 'spdx_python_model.bindings.v3_0_1.security_CvssSeverityType'>, 'security_CvssV2VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV2VulnAssessmentRelationship'>, 'security_CvssV3VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV3VulnAssessmentRelationship'>, 'security_CvssV4VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_CvssV4VulnAssessmentRelationship'>, 'security_EpssVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_EpssVulnAssessmentRelationship'>, 'security_ExploitCatalogType': <class 'spdx_python_model.bindings.v3_0_1.security_ExploitCatalogType'>, 'security_ExploitCatalogVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_ExploitCatalogVulnAssessmentRelationship'>, 'security_SsvcDecisionType': <class 'spdx_python_model.bindings.v3_0_1.security_SsvcDecisionType'>, 'security_SsvcVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_SsvcVulnAssessmentRelationship'>, 'security_VexAffectedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexAffectedVulnAssessmentRelationship'>, 'security_VexFixedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexFixedVulnAssessmentRelationship'>, 'security_VexJustificationType': <class 'spdx_python_model.bindings.v3_0_1.security_VexJustificationType'>, 'security_VexNotAffectedVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexNotAffectedVulnAssessmentRelationship'>, 'security_VexUnderInvestigationVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexUnderInvestigationVulnAssessmentRelationship'>, 'security_VexVulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VexVulnAssessmentRelationship'>, 'security_VulnAssessmentRelationship': <class 'spdx_python_model.bindings.v3_0_1.security_VulnAssessmentRelationship'>, 'security_Vulnerability': <class 'spdx_python_model.bindings.v3_0_1.security_Vulnerability'>, 'simplelicensing_AnyLicenseInfo': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_AnyLicenseInfo'>, 'simplelicensing_LicenseExpression': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_LicenseExpression'>, 'simplelicensing_SimpleLicensingText': <class 'spdx_python_model.bindings.v3_0_1.simplelicensing_SimpleLicensingText'>, 'software_ContentIdentifier': <class 'spdx_python_model.bindings.v3_0_1.software_ContentIdentifier'>, 'software_ContentIdentifierType': <class 'spdx_python_model.bindings.v3_0_1.software_ContentIdentifierType'>, 'software_File': <class 'spdx_python_model.bindings.v3_0_1.software_File'>, 'software_FileKindType': <class 'spdx_python_model.bindings.v3_0_1.software_FileKindType'>, 'software_Package': <class 'spdx_python_model.bindings.v3_0_1.software_Package'>, 'software_Sbom': <class 'spdx_python_model.bindings.v3_0_1.software_Sbom'>, 'software_SbomType': <class 'spdx_python_model.bindings.v3_0_1.software_SbomType'>, 'software_Snippet': <class 'spdx_python_model.bindings.v3_0_1.software_Snippet'>, 'software_SoftwareArtifact': <class 'spdx_python_model.bindings.v3_0_1.software_SoftwareArtifact'>, 'software_SoftwarePurpose': <class 'spdx_python_model.bindings.v3_0_1.software_SoftwarePurpose'>}#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
NODE_KIND = 3#
ID_ALIAS: str | None = None#
IS_ABSTRACT: bool = True#
IS_DEPRECATED: bool = False#
walk(callback, path=None)[source]#

Walk object tree, invoking the callback for each item

Callback has the form:

def callback(object, path):

Parameters:
  • callback (Callable)

  • path (List[str] | None)

Return type:

None

property_keys()[source]#
Return type:

Iterator[Tuple[str | None, str, str | None]]

iter_objects(*, recursive=False, visited=None)[source]#

Iterate of all objects that are a child of this one

Parameters:

recursive (bool)

encode(encoder, state)[source]#
Return type:

None

classmethod decode(decoder, *, objectset=None)[source]#
Parameters:

objectset (SHACLObjectSet | None)

Parameters:

objectset (SHACLObjectSet | None)

Return type:

None

class spdx_python_model.bindings.v3_0_1.SHACLExtensibleObject(typ=None, **kwargs)[source]#

Bases: SHACLObject

CLOSED = False#
property_keys()[source]#
Return type:

Iterator[Tuple[str | None, str, str | None]]

class spdx_python_model.bindings.v3_0_1.SHACLObjectSet(objects=[], *, link=False)[source]#

Bases: object

Parameters:
objects: Set[SHACLObject]#
missing_ids: Set[str]#
obj_by_id: Dict[str, SHACLObject]#
obj_by_type: Dict[str, Set[Tuple[bool, SHACLObject]]]#
create_index()[source]#

(re)Create object index

Creates or recreates the indices for the object set to enable fast lookup. All objects and their children are walked and indexed

Return type:

None

add_index(obj)[source]#

Add object to index

Adds the object to all appropriate indices

Parameters:

obj (SHACLObject)

Return type:

None

add(obj)[source]#

Add object to object set

Adds a SHACLObject to the object set and index it.

NOTE: Child objects of the attached object are not indexes

Parameters:

obj (SHACLObject)

Return type:

SHACLObject

update(*others)[source]#

Update object set adding all objects in each other iterable

Return type:

None

Link object set

Links the object in the object set by replacing string object references with references to the objects themselves. e.g. a property that references object “https://foo/bar” by a string reference will be replaced with an actual reference to the object in the object set with the same ID if it exists in the object set

If multiple objects with the same ID are found, the duplicates are eliminated

Return type:

Set[str]

find_by_id(_id, default=None)[source]#

Find object by ID

Returns objects that match the specified ID, or default if there is no object with the specified ID

Parameters:
Return type:

SHACLObject | None

foreach()[source]#

Iterate over every object in the object set, and all child objects

Return type:

Iterable[SHACLObject]

foreach_type(typ: str, *, match_subclass: bool = True) Iterator[SHACLObject][source]#
foreach_type(typ: Type[T_SHACLObject], *, match_subclass: bool = True) Iterator[T_SHACLObject]

Iterate over each object of a specified type (or subclass there of)

If match_subclass is True, and class derived from typ will also match (similar to isinstance()). If False, only exact matches will be returned

Parameters:
  • typ (str | Type[T_SHACLObject])

  • match_subclass (bool)

Return type:

Iterable[SHACLObject]

merge(*objectsets)[source]#

Merge object sets

Returns a new object set that is the combination of this object set and all provided arguments

Return type:

SHACLObjectSet

inline_blank_nodes()[source]#

Removes (inlines) blank node objects from the root object set if they are referenced in only one other location besides the root.

Deserializers that do not preserve the tree-like structure of the objects (e.g. RDF) should call this to ensure that blank nodes are inline correctly

Return type:

None

encode(encoder, force_list=False, *, key=None)[source]#

Serialize a list of objects to a serialization encoder

If force_list is true, a list will always be written using the encoder.

Parameters:

force_list (bool)

Return type:

None

decode(decoder)[source]#
class spdx_python_model.bindings.v3_0_1.EncodeState[source]#

Bases: object

get_object_id(o)[source]#
is_refed(o)[source]#
Return type:

bool

add_refed(o)[source]#
Return type:

None

is_written(o)[source]#
Return type:

bool

add_written(o)[source]#
class spdx_python_model.bindings.v3_0_1.Decoder[source]#

Bases: ABC

abstractmethod read_value()[source]#

Consume next item

Consumes the next item of any type

Return type:

Any | None

abstractmethod read_string()[source]#

Consume the next item as a string.

Returns the string value of the next item, or None if the next item is not a string

Return type:

str | None

abstractmethod read_datetime()[source]#

Consumes the next item as a date & time string

Returns the string value of the next item, if it is a ISO datetime, or None if the next item is not a ISO datetime string.

Note that validation of the string is done by the caller, so a minimal implementation can just check if the next item is a string without worrying about the format

Return type:

str | None

abstractmethod read_integer()[source]#

Consumes the next item as an integer

Returns the integer value of the next item, or None if the next item is not an integer

Return type:

int | None

abstractmethod read_iri()[source]#

Consumes the next item as an IRI string

Returns the string value of the next item an IRI, or None if the next item is not an IRI.

The returned string should be either a fully-qualified IRI, or a blank node ID

Return type:

str | None

abstractmethod read_enum(e)[source]#

Consumes the next item as an Enum value string

Returns the fully qualified IRI of the next enum item, or None if the next item is not an enum value.

The callee is responsible for validating that the returned IRI is actually a member of the specified Enum, so the Decoder does not need to check that, but can if it wishes

Return type:

str | None

abstractmethod read_bool()[source]#

Consume the next item as a boolean value

Returns the boolean value of the next item, or None if the next item is not a boolean

Return type:

bool | None

abstractmethod read_float()[source]#

Consume the next item as a float value

Returns the float value of the next item, or None if the next item is not a float

Return type:

float | None

abstractmethod read_list()[source]#

Consume the next item as a list generator

This should generate a Decoder object for each item in the list. The generated Decoder can be used to read the corresponding item from the list

Return type:

Iterator[Decoder]

abstractmethod is_list()[source]#

Checks if the next item is a list

Returns True if the next item is a list, or False if it is a scalar

Return type:

bool

abstractmethod read_object()[source]#

Consume next item as an object

A context manager that “enters” the next item as a object and yields a Decoder that can read properties from it. If the next item is not an object, yields None

Properties will be read out of the object using read_property and read_object_id

Return type:

Tuple[Any, Decoder]

abstractmethod read_property(key)[source]#

Read property from object

A context manager that yields a Decoder that can be used to read the value of the property with the given key in current object, or None if the property does not exist in the current object.

Return type:

Iterator[Decoder | None]

abstractmethod is_object()[source]#

Checks if the item is an object

Returns True if the item is an object, or False if is not

Return type:

bool

abstractmethod object_keys()[source]#

Read property keys from an object

Iterates over all the serialized keys for the current object

Return type:

Iterator[str]

abstractmethod read_object_id(alias=None)[source]#

Read current object ID property

Returns the ID of the current object if one is defined, or None if the current object has no ID.

The ID must be a fully qualified IRI or a blank node

If alias is provided, is is a hint as to another name by which the ID might be found, if the Decoder supports aliases for an ID

Return type:

Any | None

class spdx_python_model.bindings.v3_0_1.JSONLDDecoder(data, root=False)[source]#

Bases: Decoder

Parameters:

root (bool)

read_value()[source]#

Consume next item

Consumes the next item of any type

Return type:

Any | None

read_string()[source]#

Consume the next item as a string.

Returns the string value of the next item, or None if the next item is not a string

Return type:

str | None

read_datetime()[source]#

Consumes the next item as a date & time string

Returns the string value of the next item, if it is a ISO datetime, or None if the next item is not a ISO datetime string.

Note that validation of the string is done by the caller, so a minimal implementation can just check if the next item is a string without worrying about the format

Return type:

str | None

read_integer()[source]#

Consumes the next item as an integer

Returns the integer value of the next item, or None if the next item is not an integer

Return type:

int | None

read_bool()[source]#

Consume the next item as a boolean value

Returns the boolean value of the next item, or None if the next item is not a boolean

Return type:

bool | None

read_float()[source]#

Consume the next item as a float value

Returns the float value of the next item, or None if the next item is not a float

Return type:

float | None

read_iri()[source]#

Consumes the next item as an IRI string

Returns the string value of the next item an IRI, or None if the next item is not an IRI.

The returned string should be either a fully-qualified IRI, or a blank node ID

Return type:

str | None

read_enum(e)[source]#

Consumes the next item as an Enum value string

Returns the fully qualified IRI of the next enum item, or None if the next item is not an enum value.

The callee is responsible for validating that the returned IRI is actually a member of the specified Enum, so the Decoder does not need to check that, but can if it wishes

Return type:

str | None

read_list()[source]#

Consume the next item as a list generator

This should generate a Decoder object for each item in the list. The generated Decoder can be used to read the corresponding item from the list

Return type:

Iterator[JSONLDDecoder]

is_list()[source]#

Checks if the next item is a list

Returns True if the next item is a list, or False if it is a scalar

Return type:

bool

read_property(key)[source]#

Read property from object

A context manager that yields a Decoder that can be used to read the value of the property with the given key in current object, or None if the property does not exist in the current object.

Return type:

Iterator[JSONLDDecoder | None]

is_object()[source]#

Checks if the item is an object

Returns True if the item is an object, or False if is not

Return type:

bool

object_keys()[source]#

Read property keys from an object

Iterates over all the serialized keys for the current object

Return type:

Iterator[str]

read_object()[source]#

Consume next item as an object

A context manager that “enters” the next item as a object and yields a Decoder that can read properties from it. If the next item is not an object, yields None

Properties will be read out of the object using read_property and read_object_id

Return type:

Tuple[Any, JSONLDDecoder]

read_object_id(alias=None)[source]#

Read current object ID property

Returns the ID of the current object if one is defined, or None if the current object has no ID.

The ID must be a fully qualified IRI or a blank node

If alias is provided, is is a hint as to another name by which the ID might be found, if the Decoder supports aliases for an ID

Return type:

Any | None

class spdx_python_model.bindings.v3_0_1.JSONLDDeserializer[source]#

Bases: object

deserialize_data(data, objectset)[source]#
Parameters:

objectset (SHACLObjectSet)

Return type:

None

read(f, objectset)[source]#
Parameters:

objectset (SHACLObjectSet)

Return type:

None

class spdx_python_model.bindings.v3_0_1.Encoder[source]#

Bases: ABC

abstractmethod write_string(v)[source]#

Write a string value

Encodes the value as a string in the output

Return type:

None

abstractmethod write_datetime(v)[source]#

Write a date & time string

Encodes the value as an ISO datetime string

Note: The provided string is already correctly encoded as an ISO datetime

Return type:

None

abstractmethod write_integer(v)[source]#

Write an integer value

Encodes the value as an integer in the output

Return type:

None

abstractmethod write_iri(v, compact=None)[source]#

Write IRI

Encodes the string as an IRI. Note that the string will be either a fully qualified IRI or a blank node ID. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI

Return type:

None

abstractmethod write_enum(v, e, compact=None)[source]#

Write enum value IRI

Encodes the string enum value IRI. Note that the string will be a fully qualified IRI. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

Return type:

None

abstractmethod write_bool(v)[source]#

Write boolean

Encodes the value as a boolean in the output

Return type:

None

abstractmethod write_float(v)[source]#

Write float

Encodes the value as a floating point number in the output

Return type:

None

abstractmethod write_object(o, _id, needs_id)[source]#

Write object

A context manager that yields an Encoder that can be used to encode the given object properties.

The provided ID will always be a valid ID (even if o._id is None), in case the Encoder _must_ have an ID. needs_id is a hint to indicate to the Encoder if an ID must be written or not (if that is even an option). If it is True, the Encoder must encode an ID for the object. If False, the encoder is not required to encode an ID and may omit it.

The ID will be either a fully qualified IRI, or a blank node IRI.

Properties will be written the object using write_property

Parameters:
abstractmethod write_property(iri, compact=None)[source]#

Write object property

A context manager that yields an Encoder that can be used to encode the value for the property with the given IRI in the current object

Note that the IRI will be fully qualified. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

Parameters:
  • iri (str)

  • compact (str | None)

abstractmethod write_list()[source]#

Write list

A context manager that yields an Encoder that can be used to encode a list.

Each item of the list will be added using write_list_item

abstractmethod write_list_item()[source]#

Write list item

A context manager that yields an Encoder that can be used to encode the value for a list item

class spdx_python_model.bindings.v3_0_1.JSONLDEncoder(data=None)[source]#

Bases: Encoder

write_string(v)[source]#

Write a string value

Encodes the value as a string in the output

write_datetime(v)[source]#

Write a date & time string

Encodes the value as an ISO datetime string

Note: The provided string is already correctly encoded as an ISO datetime

write_integer(v)[source]#

Write an integer value

Encodes the value as an integer in the output

write_iri(v, compact=None)[source]#

Write IRI

Encodes the string as an IRI. Note that the string will be either a fully qualified IRI or a blank node ID. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI

write_enum(v, e, compact=None)[source]#

Write enum value IRI

Encodes the string enum value IRI. Note that the string will be a fully qualified IRI. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

write_bool(v)[source]#

Write boolean

Encodes the value as a boolean in the output

write_float(v)[source]#

Write float

Encodes the value as a floating point number in the output

write_property(iri, compact=None)[source]#

Write object property

A context manager that yields an Encoder that can be used to encode the value for the property with the given IRI in the current object

Note that the IRI will be fully qualified. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

Parameters:
  • iri (str)

  • compact (str | None)

write_object(o, _id, needs_id)[source]#

Write object

A context manager that yields an Encoder that can be used to encode the given object properties.

The provided ID will always be a valid ID (even if o._id is None), in case the Encoder _must_ have an ID. needs_id is a hint to indicate to the Encoder if an ID must be written or not (if that is even an option). If it is True, the Encoder must encode an ID for the object. If False, the encoder is not required to encode an ID and may omit it.

The ID will be either a fully qualified IRI, or a blank node IRI.

Properties will be written the object using write_property

Parameters:
write_list()[source]#

Write list

A context manager that yields an Encoder that can be used to encode a list.

Each item of the list will be added using write_list_item

write_list_item()[source]#

Write list item

A context manager that yields an Encoder that can be used to encode the value for a list item

class spdx_python_model.bindings.v3_0_1.JSONLDSerializer(**args)[source]#

Bases: object

serialize_data(objectset, force_at_graph=False)[source]#
Parameters:
write(objectset, f, force_at_graph=False, **kwargs)[source]#

Write a SHACLObjectSet to a JSON LD file

If force_at_graph is True, a @graph node will always be written

Note that f should be a file-like object that supports the write method, and that opens in binary mode (e.g. open(“file.json”, “wb”)).

Parameters:
class spdx_python_model.bindings.v3_0_1.JSONLDInlineEncoder(f, sha1)[source]#

Bases: Encoder

write(s)[source]#
write_string(v)[source]#

Write a string value

Encodes the value as a string in the output

write_datetime(v)[source]#

Write a date & time string

Encodes the value as an ISO datetime string

Note: The provided string is already correctly encoded as an ISO datetime

write_integer(v)[source]#

Write an integer value

Encodes the value as an integer in the output

write_iri(v, compact=None)[source]#

Write IRI

Encodes the string as an IRI. Note that the string will be either a fully qualified IRI or a blank node ID. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI

write_enum(v, e, compact=None)[source]#

Write enum value IRI

Encodes the string enum value IRI. Note that the string will be a fully qualified IRI. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

write_bool(v)[source]#

Write boolean

Encodes the value as a boolean in the output

write_float(v)[source]#

Write float

Encodes the value as a floating point number in the output

write_property(iri, compact=None)[source]#

Write object property

A context manager that yields an Encoder that can be used to encode the value for the property with the given IRI in the current object

Note that the IRI will be fully qualified. If compact is provided and the serialization supports compacted IRIs, it should be preferred to the full IRI.

Parameters:
  • iri (str)

  • compact (str | None)

write_object(o, _id, needs_id)[source]#

Write object

A context manager that yields an Encoder that can be used to encode the given object properties.

The provided ID will always be a valid ID (even if o._id is None), in case the Encoder _must_ have an ID. needs_id is a hint to indicate to the Encoder if an ID must be written or not (if that is even an option). If it is True, the Encoder must encode an ID for the object. If False, the encoder is not required to encode an ID and may omit it.

The ID will be either a fully qualified IRI, or a blank node IRI.

Properties will be written the object using write_property

Parameters:
write_list()[source]#

Write list

A context manager that yields an Encoder that can be used to encode a list.

Each item of the list will be added using write_list_item

write_list_item()[source]#

Write list item

A context manager that yields an Encoder that can be used to encode the value for a list item

class spdx_python_model.bindings.v3_0_1.JSONLDInlineSerializer[source]#

Bases: object

write(objectset, f, force_at_graph=False)[source]#

Write a SHACLObjectSet to a JSON LD file

Note: force_at_graph is included for compatibility, but ignored. This serializer always writes out a graph

Parameters:
spdx_python_model.bindings.v3_0_1.print_tree(objects, all_fields=False)[source]#

Print object tree

Parameters:

all_fields (bool)

Return type:

None

class spdx_python_model.bindings.v3_0_1.ai_EnergyConsumption(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ai_EnergyConsumptionDescription(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ai_EnergyUnitType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'kilowattHour': 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour', 'megajoule': 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule', 'other': 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other'}#
kilowattHour = 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour'#
megajoule = 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule'#
other = 'https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ai_SafetyRiskAssessmentType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'high': 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/high', 'low': 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/low', 'medium': 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/medium', 'serious': 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/serious'}#
high = 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/high'#
low = 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/low'#
medium = 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/medium'#
serious = 'https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/serious'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.AnnotationType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'other': 'https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other', 'review': 'https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review'}#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other'#
review = 'https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.CreationInfo(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.DictionaryEntry(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Element(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.ElementCollection(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.ExternalIdentifier(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ExternalIdentifierType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'cpe22': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22', 'cpe23': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23', 'cve': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve', 'email': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email', 'gitoid': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid', 'other': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other', 'packageUrl': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl', 'securityOther': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther', 'swhid': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid', 'swid': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid', 'urlScheme': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme'}#
cpe22 = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22'#
cpe23 = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23'#
cve = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve'#
email = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email'#
gitoid = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid'#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other'#
packageUrl = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl'#
securityOther = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther'#
swhid = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid'#
swid = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid'#
urlScheme = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ExternalMap(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ExternalRef(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ExternalRefType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'altDownloadLocation': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altDownloadLocation', 'altWebPage': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altWebPage', 'binaryArtifact': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/binaryArtifact', 'bower': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/bower', 'buildMeta': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildMeta', 'buildSystem': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildSystem', 'certificationReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/certificationReport', 'chat': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/chat', 'componentAnalysisReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/componentAnalysisReport', 'cwe': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/cwe', 'documentation': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/documentation', 'dynamicAnalysisReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/dynamicAnalysisReport', 'eolNotice': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/eolNotice', 'exportControlAssessment': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/exportControlAssessment', 'funding': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/funding', 'issueTracker': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/issueTracker', 'license': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/license', 'mailingList': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mailingList', 'mavenCentral': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mavenCentral', 'metrics': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/metrics', 'npm': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/npm', 'nuget': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/nuget', 'other': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/other', 'privacyAssessment': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/privacyAssessment', 'productMetadata': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/productMetadata', 'purchaseOrder': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/purchaseOrder', 'qualityAssessmentReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/qualityAssessmentReport', 'releaseHistory': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseHistory', 'releaseNotes': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseNotes', 'riskAssessment': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/riskAssessment', 'runtimeAnalysisReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/runtimeAnalysisReport', 'secureSoftwareAttestation': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/secureSoftwareAttestation', 'securityAdversaryModel': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdversaryModel', 'securityAdvisory': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdvisory', 'securityFix': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityFix', 'securityOther': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityOther', 'securityPenTestReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPenTestReport', 'securityPolicy': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPolicy', 'securityThreatModel': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityThreatModel', 'socialMedia': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/socialMedia', 'sourceArtifact': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/sourceArtifact', 'staticAnalysisReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/staticAnalysisReport', 'support': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/support', 'vcs': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vcs', 'vulnerabilityDisclosureReport': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityDisclosureReport', 'vulnerabilityExploitabilityAssessment': 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment'}#
altDownloadLocation = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altDownloadLocation'#
altWebPage = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altWebPage'#
binaryArtifact = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/binaryArtifact'#
bower = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/bower'#
buildMeta = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildMeta'#
buildSystem = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildSystem'#
certificationReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/certificationReport'#
chat = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/chat'#
componentAnalysisReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/componentAnalysisReport'#
cwe = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/cwe'#
documentation = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/documentation'#
dynamicAnalysisReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/dynamicAnalysisReport'#
eolNotice = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/eolNotice'#
exportControlAssessment = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/exportControlAssessment'#
funding = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/funding'#
issueTracker = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/issueTracker'#
license = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/license'#
mailingList = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mailingList'#
mavenCentral = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mavenCentral'#
metrics = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/metrics'#
npm = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/npm'#
nuget = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/nuget'#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/other'#
privacyAssessment = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/privacyAssessment'#
productMetadata = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/productMetadata'#
purchaseOrder = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/purchaseOrder'#
qualityAssessmentReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/qualityAssessmentReport'#
releaseHistory = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseHistory'#
releaseNotes = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseNotes'#
riskAssessment = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/riskAssessment'#
runtimeAnalysisReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/runtimeAnalysisReport'#
secureSoftwareAttestation = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/secureSoftwareAttestation'#
securityAdversaryModel = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdversaryModel'#
securityAdvisory = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdvisory'#
securityFix = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityFix'#
securityOther = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityOther'#
securityPenTestReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPenTestReport'#
securityPolicy = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPolicy'#
securityThreatModel = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityThreatModel'#
socialMedia = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/socialMedia'#
sourceArtifact = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/sourceArtifact'#
staticAnalysisReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/staticAnalysisReport'#
support = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/support'#
vcs = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vcs'#
vulnerabilityDisclosureReport = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityDisclosureReport'#
vulnerabilityExploitabilityAssessment = 'https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.HashAlgorithm(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'adler32': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32', 'blake2b256': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256', 'blake2b384': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384', 'blake2b512': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512', 'blake3': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3', 'crystalsDilithium': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium', 'crystalsKyber': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber', 'falcon': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon', 'md2': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2', 'md4': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4', 'md5': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5', 'md6': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6', 'other': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other', 'sha1': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1', 'sha224': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224', 'sha256': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256', 'sha384': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384', 'sha3_224': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224', 'sha3_256': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256', 'sha3_384': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384', 'sha3_512': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512', 'sha512': 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512'}#
adler32 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32'#
blake2b256 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256'#
blake2b384 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384'#
blake2b512 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512'#
blake3 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3'#
crystalsDilithium = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium'#
crystalsKyber = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber'#
falcon = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon'#
md2 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2'#
md4 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4'#
md5 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5'#
md6 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6'#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other'#
sha1 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1'#
sha224 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224'#
sha256 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256'#
sha384 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384'#
sha3_224 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224'#
sha3_256 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256'#
sha3_384 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384'#
sha3_512 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512'#
sha512 = 'https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.IndividualElement(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'NoAssertionElement': 'https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement', 'NoneElement': 'https://spdx.org/rdf/3.0.1/terms/Core/NoneElement'}#
NoAssertionElement = 'https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement'#
NoneElement = 'https://spdx.org/rdf/3.0.1/terms/Core/NoneElement'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.IntegrityMethod(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.LifecycleScopeType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'build': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/build', 'design': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/design', 'development': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/development', 'other': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/other', 'runtime': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/runtime', 'test': 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/test'}#
build = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/build'#
design = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/design'#
development = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/development'#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/other'#
runtime = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/runtime'#
test = 'https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/test'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.NamespaceMap(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.PackageVerificationCode(**kwargs)[source]#

Bases: IntegrityMethod

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.PositiveIntegerRange(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.PresenceType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'no': 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no', 'noAssertion': 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion', 'yes': 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes'}#
no = 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no'#
noAssertion = 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion'#
yes = 'https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ProfileIdentifierType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'ai': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/ai', 'build': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/build', 'core': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/core', 'dataset': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/dataset', 'expandedLicensing': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/expandedLicensing', 'extension': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/extension', 'lite': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/lite', 'security': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/security', 'simpleLicensing': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/simpleLicensing', 'software': 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/software'}#
ai = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/ai'#
build = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/build'#
core = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/core'#
dataset = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/dataset'#
expandedLicensing = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/expandedLicensing'#
extension = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/extension'#
lite = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/lite'#
security = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/security'#
simpleLicensing = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/simpleLicensing'#
software = 'https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/software'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Relationship(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.RelationshipCompleteness(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'complete': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete', 'incomplete': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete', 'noAssertion': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion'}#
complete = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete'#
incomplete = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete'#
noAssertion = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.RelationshipType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'affects': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects', 'amendedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy', 'ancestorOf': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf', 'availableFrom': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom', 'configures': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures', 'contains': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains', 'coordinatedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy', 'copiedTo': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo', 'delegatedTo': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo', 'dependsOn': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn', 'descendantOf': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf', 'describes': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes', 'doesNotAffect': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect', 'expandsTo': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo', 'exploitCreatedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy', 'fixedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy', 'fixedIn': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn', 'foundBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy', 'generates': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates', 'hasAddedFile': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile', 'hasAssessmentFor': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor', 'hasAssociatedVulnerability': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability', 'hasConcludedLicense': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense', 'hasDataFile': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile', 'hasDeclaredLicense': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense', 'hasDeletedFile': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile', 'hasDependencyManifest': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest', 'hasDistributionArtifact': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact', 'hasDocumentation': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation', 'hasDynamicLink': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDynamicLink', 'hasEvidence': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence', 'hasExample': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample', 'hasHost': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost', 'hasInput': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput', 'hasMetadata': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata', 'hasOptionalComponent': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent', 'hasOptionalDependency': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency', 'hasOutput': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput', 'hasPrerequisite': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite', 'hasProvidedDependency': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency', 'hasRequirement': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement', 'hasSpecification': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification', 'hasStaticLink': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasStaticLink', 'hasTest': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest', 'hasTestCase': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase', 'hasVariant': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant', 'invokedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy', 'modifiedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy', 'other': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other', 'packagedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy', 'patchedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy', 'publishedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy', 'reportedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy', 'republishedBy': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy', 'serializedInArtifact': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact', 'testedOn': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn', 'trainedOn': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn', 'underInvestigationFor': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor', 'usesTool': 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool'}#
affects = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects'#
amendedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy'#
ancestorOf = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf'#
availableFrom = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom'#
configures = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures'#
contains = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains'#
coordinatedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy'#
copiedTo = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo'#
delegatedTo = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo'#
dependsOn = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn'#
descendantOf = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf'#
describes = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes'#
doesNotAffect = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect'#
expandsTo = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo'#
exploitCreatedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy'#
fixedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy'#
fixedIn = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn'#
foundBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy'#
generates = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates'#
hasAddedFile = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile'#
hasAssessmentFor = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor'#
hasAssociatedVulnerability = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability'#
hasConcludedLicense = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense'#
hasDataFile = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile'#
hasDeclaredLicense = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense'#
hasDeletedFile = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile'#
hasDependencyManifest = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest'#
hasDistributionArtifact = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact'#
hasDocumentation = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation'#
hasEvidence = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence'#
hasExample = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample'#
hasHost = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost'#
hasInput = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput'#
hasMetadata = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata'#
hasOptionalComponent = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent'#
hasOptionalDependency = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency'#
hasOutput = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput'#
hasPrerequisite = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite'#
hasProvidedDependency = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency'#
hasRequirement = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement'#
hasSpecification = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification'#
hasTest = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest'#
hasTestCase = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase'#
hasVariant = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant'#
invokedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy'#
modifiedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy'#
other = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other'#
packagedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy'#
patchedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy'#
publishedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy'#
reportedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy'#
republishedBy = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy'#
serializedInArtifact = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact'#
testedOn = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn'#
trainedOn = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn'#
underInvestigationFor = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor'#
usesTool = 'https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.SpdxDocument(**kwargs)[source]#

Bases: ElementCollection

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.SupportType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'deployed': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/deployed', 'development': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/development', 'endOfSupport': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/endOfSupport', 'limitedSupport': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/limitedSupport', 'noAssertion': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noAssertion', 'noSupport': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noSupport', 'support': 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/support'}#
deployed = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/deployed'#
development = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/development'#
endOfSupport = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/endOfSupport'#
limitedSupport = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/limitedSupport'#
noAssertion = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noAssertion'#
noSupport = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noSupport'#
support = 'https://spdx.org/rdf/3.0.1/terms/Core/SupportType/support'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Tool(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.dataset_ConfidentialityLevelType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'amber': 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/amber', 'clear': 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/clear', 'green': 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/green', 'red': 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/red'}#
amber = 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/amber'#
clear = 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/clear'#
green = 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/green'#
red = 'https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/red'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.dataset_DatasetAvailabilityType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'clickthrough': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/clickthrough', 'directDownload': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/directDownload', 'query': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/query', 'registration': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/registration', 'scrapingScript': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/scrapingScript'}#
clickthrough = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/clickthrough'#
directDownload = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/directDownload'#
query = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/query'#
registration = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/registration'#
scrapingScript = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/scrapingScript'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.dataset_DatasetType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'audio': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/audio', 'categorical': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/categorical', 'graph': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/graph', 'image': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/image', 'noAssertion': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/noAssertion', 'numeric': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/numeric', 'other': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/other', 'sensor': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/sensor', 'structured': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/structured', 'syntactic': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/syntactic', 'text': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/text', 'timeseries': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timeseries', 'timestamp': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timestamp', 'video': 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/video'}#
audio = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/audio'#
categorical = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/categorical'#
graph = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/graph'#
image = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/image'#
noAssertion = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/noAssertion'#
numeric = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/numeric'#
other = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/other'#
sensor = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/sensor'#
structured = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/structured'#
syntactic = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/syntactic'#
text = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/text'#
timeseries = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timeseries'#
timestamp = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timestamp'#
video = 'https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/video'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_LicenseAddition(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicenseException(**kwargs)[source]#

Bases: expandedlicensing_LicenseAddition

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.extension_CdxPropertyEntry(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.extension_Extension(typ=None, **kwargs)[source]#

Bases: SHACLExtensibleObject, SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.security_CvssSeverityType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'critical': 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical', 'high': 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high', 'low': 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low', 'medium': 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium', 'none': 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none'}#
critical = 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical'#
high = 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high'#
low = 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low'#
medium = 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium'#
none = 'https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_ExploitCatalogType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'kev': 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/kev', 'other': 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/other'}#
kev = 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/kev'#
other = 'https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/other'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_SsvcDecisionType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'act': 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/act', 'attend': 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/attend', 'track': 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/track', 'trackStar': 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/trackStar'}#
act = 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/act'#
attend = 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/attend'#
track = 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/track'#
trackStar = 'https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/trackStar'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexJustificationType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'componentNotPresent': 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/componentNotPresent', 'inlineMitigationsAlreadyExist': 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist', 'vulnerableCodeCannotBeControlledByAdversary': 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary', 'vulnerableCodeNotInExecutePath': 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath', 'vulnerableCodeNotPresent': 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotPresent'}#
componentNotPresent = 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/componentNotPresent'#
inlineMitigationsAlreadyExist = 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist'#
vulnerableCodeCannotBeControlledByAdversary = 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary'#
vulnerableCodeNotInExecutePath = 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath'#
vulnerableCodeNotPresent = 'https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotPresent'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VulnAssessmentRelationship(**kwargs)[source]#

Bases: Relationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.simplelicensing_AnyLicenseInfo(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.simplelicensing_LicenseExpression(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.simplelicensing_SimpleLicensingText(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_ContentIdentifier(**kwargs)[source]#

Bases: IntegrityMethod

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_ContentIdentifierType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'gitoid': 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid', 'swhid': 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid'}#
gitoid = 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid'#
swhid = 'https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_FileKindType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'directory': 'https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory', 'file': 'https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file'}#
directory = 'https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory'#
file = 'https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_SbomType(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'analyzed': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/analyzed', 'build': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/build', 'deployed': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/deployed', 'design': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/design', 'runtime': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/runtime', 'source': 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/source'}#
analyzed = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/analyzed'#
build = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/build'#
deployed = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/deployed'#
design = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/design'#
runtime = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/runtime'#
source = 'https://spdx.org/rdf/3.0.1/terms/Software/SbomType/source'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_SoftwarePurpose(**kwargs)[source]#

Bases: SHACLObject

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'application': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application', 'archive': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive', 'bom': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom', 'configuration': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration', 'container': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container', 'data': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data', 'device': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device', 'deviceDriver': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver', 'diskImage': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage', 'documentation': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation', 'evidence': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence', 'executable': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable', 'file': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file', 'filesystemImage': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage', 'firmware': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware', 'framework': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework', 'install': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install', 'library': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library', 'manifest': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest', 'model': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model', 'module': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module', 'operatingSystem': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem', 'other': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other', 'patch': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch', 'platform': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform', 'requirement': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement', 'source': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source', 'specification': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification', 'test': 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test'}#
application = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application'#
archive = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive'#
bom = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom'#
configuration = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration'#
container = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container'#
data = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data'#
device = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device'#
deviceDriver = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver'#
diskImage = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage'#
documentation = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation'#
evidence = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence'#
executable = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable'#
file = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file'#
filesystemImage = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage'#
firmware = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware'#
framework = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework'#
install = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install'#
library = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library'#
manifest = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest'#
model = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model'#
module = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module'#
operatingSystem = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem'#
other = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other'#
patch = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch'#
platform = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform'#
requirement = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement'#
source = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source'#
specification = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification'#
test = 'https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.build_Build(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Agent(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Annotation(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Artifact(**kwargs)[source]#

Bases: Element

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.Bundle(**kwargs)[source]#

Bases: ElementCollection

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Hash(**kwargs)[source]#

Bases: IntegrityMethod

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.LifecycleScopedRelationship(**kwargs)[source]#

Bases: Relationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Organization(**kwargs)[source]#

Bases: Agent

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'SpdxOrganization': 'https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization'}#
SpdxOrganization = 'https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.Person(**kwargs)[source]#

Bases: Agent

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.SoftwareAgent(**kwargs)[source]#

Bases: Agent

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_ConjunctiveLicenseSet(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicenseAddition(**kwargs)[source]#

Bases: expandedlicensing_LicenseAddition

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_DisjunctiveLicenseSet(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_ExtendableLicense(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_IndividualLicensingInfo(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {'NoAssertionLicense': 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense', 'NoneLicense': 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense'}#
NoAssertionLicense = 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense'#
NoneLicense = 'https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense'#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_License(**kwargs)[source]#

Bases: expandedlicensing_ExtendableLicense

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_ListedLicense(**kwargs)[source]#

Bases: expandedlicensing_License

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_OrLaterOperator(**kwargs)[source]#

Bases: expandedlicensing_ExtendableLicense

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_WithAdditionOperator(**kwargs)[source]#

Bases: simplelicensing_AnyLicenseInfo

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.extension_CdxPropertiesExtension(typ=None, **kwargs)[source]#

Bases: extension_Extension

NODE_KIND = 3#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_CvssV2VulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_CvssV3VulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_CvssV4VulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_EpssVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_ExploitCatalogVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_SsvcVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.security_Vulnerability(**kwargs)[source]#

Bases: Artifact

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_SoftwareArtifact(**kwargs)[source]#

Bases: Artifact

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = True#
class spdx_python_model.bindings.v3_0_1.Bom(**kwargs)[source]#

Bases: Bundle

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.expandedlicensing_CustomLicense(**kwargs)[source]#

Bases: expandedlicensing_License

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexAffectedVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VexVulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexFixedVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VexVulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexNotAffectedVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VexVulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.security_VexUnderInvestigationVulnAssessmentRelationship(**kwargs)[source]#

Bases: security_VexVulnAssessmentRelationship

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_File(**kwargs)[source]#

Bases: software_SoftwareArtifact

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_Package(**kwargs)[source]#

Bases: software_SoftwareArtifact

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_Sbom(**kwargs)[source]#

Bases: Bom

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.software_Snippet(**kwargs)[source]#

Bases: software_SoftwareArtifact

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.ai_AIPackage(**kwargs)[source]#

Bases: software_Package

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
IS_ABSTRACT: bool = False#
class spdx_python_model.bindings.v3_0_1.dataset_DatasetPackage(**kwargs)[source]#

Bases: software_Package

NODE_KIND = 2#
ID_ALIAS: str | None = 'spdxId'#
IS_DEPRECATED: bool = False#
IS_ABSTRACT: bool = False#
NAMED_INDIVIDUALS: Dict[str, str] = {}#
spdx_python_model.bindings.v3_0_1.main()[source]#

Module contents#