diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2024-09-27 09:51:56 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-30 17:07:18 +0100 |
commit | 2e594183251f22dd6ba040d410766f7a4c959fca (patch) | |
tree | f8a25a5d36ad00d46ae369e23d9d4ba127f4a8c5 /meta/lib | |
parent | 07836a96845bad998a803aedf6b3a6d80445f211 (diff) | |
download | poky-2e594183251f22dd6ba040d410766f7a4c959fca.tar.gz |
create-spdx-3.0: Upgrade to SPDX 3.0.1
Upgrades the SPDX 3.0 implementation from 3.0.0 -> 3.0.1. This version
introduced some breaking changes. Effectively, 3.0.0 was a pre-release
version that we do not need to support any longer.
(From OE-Core rev: 7e6509a19f6146f0dad0be7037ff4b3268d0128c)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/sbom30.py | 15 | ||||
-rw-r--r-- | meta/lib/oe/spdx30.py | 3375 | ||||
-rw-r--r-- | meta/lib/oe/spdx30_tasks.py | 40 |
3 files changed, 1492 insertions, 1938 deletions
diff --git a/meta/lib/oe/sbom30.py b/meta/lib/oe/sbom30.py index 76bfb752ef..7b4f78cc71 100644 --- a/meta/lib/oe/sbom30.py +++ b/meta/lib/oe/sbom30.py | |||
@@ -359,7 +359,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
359 | if not spdxid: | 359 | if not spdxid: |
360 | bb.fatal(f"{key} is not a valid SPDX_IMPORTS key") | 360 | bb.fatal(f"{key} is not a valid SPDX_IMPORTS key") |
361 | 361 | ||
362 | for i in self.docs.imports: | 362 | for i in self.docs.import_: |
363 | if i.externalSpdxId == spdxid: | 363 | if i.externalSpdxId == spdxid: |
364 | # Already imported | 364 | # Already imported |
365 | return spdxid | 365 | return spdxid |
@@ -380,7 +380,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
380 | ) | 380 | ) |
381 | ) | 381 | ) |
382 | 382 | ||
383 | self.doc.imports.append(m) | 383 | self.doc.import_.append(m) |
384 | return spdxid | 384 | return spdxid |
385 | 385 | ||
386 | def new_agent(self, varname, *, creation_info=None, add=True): | 386 | def new_agent(self, varname, *, creation_info=None, add=True): |
@@ -521,8 +521,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
521 | return [] | 521 | return [] |
522 | 522 | ||
523 | if not to: | 523 | if not to: |
524 | # TODO: Switch to the code constant once SPDX 3.0.1 is released | 524 | to = [oe.spdx30.Element.NoneElement] |
525 | to = ["https://spdx.org/rdf/3.0.0/terms/Core/NoneElement"] | ||
526 | 525 | ||
527 | ret = [] | 526 | ret = [] |
528 | 527 | ||
@@ -726,7 +725,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
726 | bb_objset = load_jsonld( | 725 | bb_objset = load_jsonld( |
727 | self.d, deploy_dir_spdx / "bitbake.spdx.json", required=True | 726 | self.d, deploy_dir_spdx / "bitbake.spdx.json", required=True |
728 | ) | 727 | ) |
729 | self.doc.imports.extend(bb_objset.doc.imports) | 728 | self.doc.import_.extend(bb_objset.doc.import_) |
730 | self.update(bb_objset.objects) | 729 | self.update(bb_objset.objects) |
731 | 730 | ||
732 | return bb_objset | 731 | return bb_objset |
@@ -827,12 +826,12 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
827 | Returns the set of ids that could not be found to link into the document | 826 | Returns the set of ids that could not be found to link into the document |
828 | """ | 827 | """ |
829 | missing_spdxids = set() | 828 | missing_spdxids = set() |
830 | imports = {e.externalSpdxId: e for e in self.doc.imports} | 829 | imports = {e.externalSpdxId: e for e in self.doc.import_} |
831 | 830 | ||
832 | def merge_doc(other): | 831 | def merge_doc(other): |
833 | nonlocal imports | 832 | nonlocal imports |
834 | 833 | ||
835 | for e in other.doc.imports: | 834 | for e in other.doc.import_: |
836 | if not e.externalSpdxId in imports: | 835 | if not e.externalSpdxId in imports: |
837 | imports[e.externalSpdxId] = e | 836 | imports[e.externalSpdxId] = e |
838 | 837 | ||
@@ -876,7 +875,7 @@ class ObjectSet(oe.spdx30.SHACLObjectSet): | |||
876 | f"Linked document doesn't match missing SPDX ID list. Got: {missing}\nExpected: {missing_spdxids}" | 875 | f"Linked document doesn't match missing SPDX ID list. Got: {missing}\nExpected: {missing_spdxids}" |
877 | ) | 876 | ) |
878 | 877 | ||
879 | self.doc.imports = sorted(imports.values(), key=lambda e: e.externalSpdxId) | 878 | self.doc.import_ = sorted(imports.values(), key=lambda e: e.externalSpdxId) |
880 | 879 | ||
881 | return missing_spdxids | 880 | return missing_spdxids |
882 | 881 | ||
diff --git a/meta/lib/oe/spdx30.py b/meta/lib/oe/spdx30.py index ae74ce36f4..5cd2eb45c3 100644 --- a/meta/lib/oe/spdx30.py +++ b/meta/lib/oe/spdx30.py | |||
@@ -220,13 +220,34 @@ class FloatProp(Property): | |||
220 | return decoder.read_float() | 220 | return decoder.read_float() |
221 | 221 | ||
222 | 222 | ||
223 | class ObjectProp(Property): | 223 | class IRIProp(Property): |
224 | def __init__(self, context=[], *, pattern=None): | ||
225 | super().__init__(pattern=pattern) | ||
226 | self.context = context | ||
227 | |||
228 | def compact(self, value): | ||
229 | for iri, compact in self.context: | ||
230 | if value == iri: | ||
231 | return compact | ||
232 | return None | ||
233 | |||
234 | def expand(self, value): | ||
235 | for iri, compact in self.context: | ||
236 | if value == compact: | ||
237 | return iri | ||
238 | return None | ||
239 | |||
240 | def iri_values(self): | ||
241 | return (iri for iri, _ in self.context) | ||
242 | |||
243 | |||
244 | class ObjectProp(IRIProp): | ||
224 | """ | 245 | """ |
225 | A scalar SHACL object property of a SHACL object | 246 | A scalar SHACL object property of a SHACL object |
226 | """ | 247 | """ |
227 | 248 | ||
228 | def __init__(self, cls, required): | 249 | def __init__(self, cls, required, context=[]): |
229 | super().__init__() | 250 | super().__init__(context) |
230 | self.cls = cls | 251 | self.cls = cls |
231 | self.required = required | 252 | self.required = required |
232 | 253 | ||
@@ -264,8 +285,7 @@ class ObjectProp(Property): | |||
264 | raise ValueError("Object cannot be None") | 285 | raise ValueError("Object cannot be None") |
265 | 286 | ||
266 | if isinstance(value, str): | 287 | if isinstance(value, str): |
267 | value = _NI_ENCODE_CONTEXT.get(value, value) | 288 | encoder.write_iri(value, self.compact(value)) |
268 | encoder.write_iri(value) | ||
269 | return | 289 | return |
270 | 290 | ||
271 | return value.encode(encoder, state) | 291 | return value.encode(encoder, state) |
@@ -275,7 +295,7 @@ class ObjectProp(Property): | |||
275 | if iri is None: | 295 | if iri is None: |
276 | return self.cls.decode(decoder, objectset=objectset) | 296 | return self.cls.decode(decoder, objectset=objectset) |
277 | 297 | ||
278 | iri = _NI_DECODE_CONTEXT.get(iri, iri) | 298 | iri = self.expand(iri) or iri |
279 | 299 | ||
280 | if objectset is None: | 300 | if objectset is None: |
281 | return iri | 301 | return iri |
@@ -445,36 +465,27 @@ class ListProp(Property): | |||
445 | return ListProxy(self.prop, data=data) | 465 | return ListProxy(self.prop, data=data) |
446 | 466 | ||
447 | 467 | ||
448 | class EnumProp(Property): | 468 | class EnumProp(IRIProp): |
449 | VALID_TYPES = str | 469 | VALID_TYPES = str |
450 | 470 | ||
451 | def __init__(self, values, *, pattern=None): | 471 | def __init__(self, values, *, pattern=None): |
452 | super().__init__(pattern=pattern) | 472 | super().__init__(values, pattern=pattern) |
453 | self.values = values | ||
454 | 473 | ||
455 | def validate(self, value): | 474 | def validate(self, value): |
456 | super().validate(value) | 475 | super().validate(value) |
457 | 476 | ||
458 | valid_values = (iri for iri, _ in self.values) | 477 | valid_values = self.iri_values() |
459 | if value not in valid_values: | 478 | if value not in valid_values: |
460 | raise ValueError( | 479 | raise ValueError( |
461 | f"'{value}' is not a valid value. Choose one of {' '.join(valid_values)}" | 480 | f"'{value}' is not a valid value. Choose one of {' '.join(valid_values)}" |
462 | ) | 481 | ) |
463 | 482 | ||
464 | def encode(self, encoder, value, state): | 483 | def encode(self, encoder, value, state): |
465 | for iri, compact in self.values: | 484 | encoder.write_enum(value, self, self.compact(value)) |
466 | if iri == value: | ||
467 | encoder.write_enum(value, self, compact) | ||
468 | return | ||
469 | |||
470 | encoder.write_enum(value, self) | ||
471 | 485 | ||
472 | def decode(self, decoder, *, objectset=None): | 486 | def decode(self, decoder, *, objectset=None): |
473 | v = decoder.read_enum(self) | 487 | v = decoder.read_enum(self) |
474 | for iri, compact in self.values: | 488 | return self.expand(v) or v |
475 | if v == compact: | ||
476 | return iri | ||
477 | return v | ||
478 | 489 | ||
479 | 490 | ||
480 | class NodeKind(Enum): | 491 | class NodeKind(Enum): |
@@ -1946,539 +1957,26 @@ def print_tree(objects, all_fields=False): | |||
1946 | 1957 | ||
1947 | 1958 | ||
1948 | CONTEXT_URLS = [ | 1959 | CONTEXT_URLS = [ |
1949 | "https://spdx.org/rdf/3.0.0/spdx-context.jsonld", | 1960 | "https://spdx.org/rdf/3.0.1/spdx-context.jsonld", |
1950 | ] | 1961 | ] |
1951 | 1962 | ||
1952 | _NI_ENCODE_CONTEXT = { | ||
1953 | "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/kilowattHour": "ai_EnergyUnitType:kilowattHour", | ||
1954 | "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/megajoule": "ai_EnergyUnitType:megajoule", | ||
1955 | "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/other": "ai_EnergyUnitType:other", | ||
1956 | "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/high": "ai_SafetyRiskAssessmentType:high", | ||
1957 | "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/low": "ai_SafetyRiskAssessmentType:low", | ||
1958 | "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/medium": "ai_SafetyRiskAssessmentType:medium", | ||
1959 | "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/serious": "ai_SafetyRiskAssessmentType:serious", | ||
1960 | "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/other": "AnnotationType:other", | ||
1961 | "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/review": "AnnotationType:review", | ||
1962 | "https://spdx.org/rdf/3.0.0/terms/Core/NoAssertionElement": "spdx:Core/NoAssertionElement", | ||
1963 | "https://spdx.org/rdf/3.0.0/terms/Core/NoneElement": "spdx:Core/NoneElement", | ||
1964 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe22": "ExternalIdentifierType:cpe22", | ||
1965 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe23": "ExternalIdentifierType:cpe23", | ||
1966 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cve": "ExternalIdentifierType:cve", | ||
1967 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/email": "ExternalIdentifierType:email", | ||
1968 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/gitoid": "ExternalIdentifierType:gitoid", | ||
1969 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/other": "ExternalIdentifierType:other", | ||
1970 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/packageUrl": "ExternalIdentifierType:packageUrl", | ||
1971 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/securityOther": "ExternalIdentifierType:securityOther", | ||
1972 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swhid": "ExternalIdentifierType:swhid", | ||
1973 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swid": "ExternalIdentifierType:swid", | ||
1974 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/urlScheme": "ExternalIdentifierType:urlScheme", | ||
1975 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altDownloadLocation": "ExternalRefType:altDownloadLocation", | ||
1976 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altWebPage": "ExternalRefType:altWebPage", | ||
1977 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/binaryArtifact": "ExternalRefType:binaryArtifact", | ||
1978 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/bower": "ExternalRefType:bower", | ||
1979 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildMeta": "ExternalRefType:buildMeta", | ||
1980 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildSystem": "ExternalRefType:buildSystem", | ||
1981 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/certificationReport": "ExternalRefType:certificationReport", | ||
1982 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/chat": "ExternalRefType:chat", | ||
1983 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/componentAnalysisReport": "ExternalRefType:componentAnalysisReport", | ||
1984 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/cwe": "ExternalRefType:cwe", | ||
1985 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/documentation": "ExternalRefType:documentation", | ||
1986 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/dynamicAnalysisReport": "ExternalRefType:dynamicAnalysisReport", | ||
1987 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/eolNotice": "ExternalRefType:eolNotice", | ||
1988 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/exportControlAssessment": "ExternalRefType:exportControlAssessment", | ||
1989 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/funding": "ExternalRefType:funding", | ||
1990 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/issueTracker": "ExternalRefType:issueTracker", | ||
1991 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/license": "ExternalRefType:license", | ||
1992 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mailingList": "ExternalRefType:mailingList", | ||
1993 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mavenCentral": "ExternalRefType:mavenCentral", | ||
1994 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/metrics": "ExternalRefType:metrics", | ||
1995 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/npm": "ExternalRefType:npm", | ||
1996 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/nuget": "ExternalRefType:nuget", | ||
1997 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/other": "ExternalRefType:other", | ||
1998 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/privacyAssessment": "ExternalRefType:privacyAssessment", | ||
1999 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/productMetadata": "ExternalRefType:productMetadata", | ||
2000 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/purchaseOrder": "ExternalRefType:purchaseOrder", | ||
2001 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/qualityAssessmentReport": "ExternalRefType:qualityAssessmentReport", | ||
2002 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseHistory": "ExternalRefType:releaseHistory", | ||
2003 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseNotes": "ExternalRefType:releaseNotes", | ||
2004 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/riskAssessment": "ExternalRefType:riskAssessment", | ||
2005 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/runtimeAnalysisReport": "ExternalRefType:runtimeAnalysisReport", | ||
2006 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/secureSoftwareAttestation": "ExternalRefType:secureSoftwareAttestation", | ||
2007 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdversaryModel": "ExternalRefType:securityAdversaryModel", | ||
2008 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdvisory": "ExternalRefType:securityAdvisory", | ||
2009 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityFix": "ExternalRefType:securityFix", | ||
2010 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityOther": "ExternalRefType:securityOther", | ||
2011 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPenTestReport": "ExternalRefType:securityPenTestReport", | ||
2012 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPolicy": "ExternalRefType:securityPolicy", | ||
2013 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityThreatModel": "ExternalRefType:securityThreatModel", | ||
2014 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/socialMedia": "ExternalRefType:socialMedia", | ||
2015 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/sourceArtifact": "ExternalRefType:sourceArtifact", | ||
2016 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/staticAnalysisReport": "ExternalRefType:staticAnalysisReport", | ||
2017 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/support": "ExternalRefType:support", | ||
2018 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vcs": "ExternalRefType:vcs", | ||
2019 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityDisclosureReport": "ExternalRefType:vulnerabilityDisclosureReport", | ||
2020 | "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment": "ExternalRefType:vulnerabilityExploitabilityAssessment", | ||
2021 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256": "HashAlgorithm:blake2b256", | ||
2022 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384": "HashAlgorithm:blake2b384", | ||
2023 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512": "HashAlgorithm:blake2b512", | ||
2024 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3": "HashAlgorithm:blake3", | ||
2025 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium": "HashAlgorithm:crystalsDilithium", | ||
2026 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber": "HashAlgorithm:crystalsKyber", | ||
2027 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon": "HashAlgorithm:falcon", | ||
2028 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2": "HashAlgorithm:md2", | ||
2029 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4": "HashAlgorithm:md4", | ||
2030 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5": "HashAlgorithm:md5", | ||
2031 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6": "HashAlgorithm:md6", | ||
2032 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other": "HashAlgorithm:other", | ||
2033 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1": "HashAlgorithm:sha1", | ||
2034 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224": "HashAlgorithm:sha224", | ||
2035 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256": "HashAlgorithm:sha256", | ||
2036 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384": "HashAlgorithm:sha384", | ||
2037 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224": "HashAlgorithm:sha3_224", | ||
2038 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256": "HashAlgorithm:sha3_256", | ||
2039 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384": "HashAlgorithm:sha3_384", | ||
2040 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512": "HashAlgorithm:sha3_512", | ||
2041 | "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512": "HashAlgorithm:sha512", | ||
2042 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/build": "LifecycleScopeType:build", | ||
2043 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/design": "LifecycleScopeType:design", | ||
2044 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/development": "LifecycleScopeType:development", | ||
2045 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/other": "LifecycleScopeType:other", | ||
2046 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/runtime": "LifecycleScopeType:runtime", | ||
2047 | "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/test": "LifecycleScopeType:test", | ||
2048 | "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no": "PresenceType:no", | ||
2049 | "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion": "PresenceType:noAssertion", | ||
2050 | "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes": "PresenceType:yes", | ||
2051 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/ai": "ProfileIdentifierType:ai", | ||
2052 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/build": "ProfileIdentifierType:build", | ||
2053 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/core": "ProfileIdentifierType:core", | ||
2054 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/dataset": "ProfileIdentifierType:dataset", | ||
2055 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/expandedLicensing": "ProfileIdentifierType:expandedLicensing", | ||
2056 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/extension": "ProfileIdentifierType:extension", | ||
2057 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/lite": "ProfileIdentifierType:lite", | ||
2058 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/security": "ProfileIdentifierType:security", | ||
2059 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/simpleLicensing": "ProfileIdentifierType:simpleLicensing", | ||
2060 | "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/software": "ProfileIdentifierType:software", | ||
2061 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/complete": "RelationshipCompleteness:complete", | ||
2062 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/incomplete": "RelationshipCompleteness:incomplete", | ||
2063 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/noAssertion": "RelationshipCompleteness:noAssertion", | ||
2064 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/affects": "RelationshipType:affects", | ||
2065 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/amendedBy": "RelationshipType:amendedBy", | ||
2066 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/ancestorOf": "RelationshipType:ancestorOf", | ||
2067 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/availableFrom": "RelationshipType:availableFrom", | ||
2068 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/configures": "RelationshipType:configures", | ||
2069 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/contains": "RelationshipType:contains", | ||
2070 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/coordinatedBy": "RelationshipType:coordinatedBy", | ||
2071 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/copiedTo": "RelationshipType:copiedTo", | ||
2072 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/delegatedTo": "RelationshipType:delegatedTo", | ||
2073 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/dependsOn": "RelationshipType:dependsOn", | ||
2074 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/descendantOf": "RelationshipType:descendantOf", | ||
2075 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/describes": "RelationshipType:describes", | ||
2076 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/doesNotAffect": "RelationshipType:doesNotAffect", | ||
2077 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/expandsTo": "RelationshipType:expandsTo", | ||
2078 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/exploitCreatedBy": "RelationshipType:exploitCreatedBy", | ||
2079 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedBy": "RelationshipType:fixedBy", | ||
2080 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedIn": "RelationshipType:fixedIn", | ||
2081 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/foundBy": "RelationshipType:foundBy", | ||
2082 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/generates": "RelationshipType:generates", | ||
2083 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAddedFile": "RelationshipType:hasAddedFile", | ||
2084 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssessmentFor": "RelationshipType:hasAssessmentFor", | ||
2085 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssociatedVulnerability": "RelationshipType:hasAssociatedVulnerability", | ||
2086 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasConcludedLicense": "RelationshipType:hasConcludedLicense", | ||
2087 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDataFile": "RelationshipType:hasDataFile", | ||
2088 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeclaredLicense": "RelationshipType:hasDeclaredLicense", | ||
2089 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeletedFile": "RelationshipType:hasDeletedFile", | ||
2090 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDependencyManifest": "RelationshipType:hasDependencyManifest", | ||
2091 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDistributionArtifact": "RelationshipType:hasDistributionArtifact", | ||
2092 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDocumentation": "RelationshipType:hasDocumentation", | ||
2093 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDynamicLink": "RelationshipType:hasDynamicLink", | ||
2094 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasEvidence": "RelationshipType:hasEvidence", | ||
2095 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasExample": "RelationshipType:hasExample", | ||
2096 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasHost": "RelationshipType:hasHost", | ||
2097 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasInputs": "RelationshipType:hasInputs", | ||
2098 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasMetadata": "RelationshipType:hasMetadata", | ||
2099 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalComponent": "RelationshipType:hasOptionalComponent", | ||
2100 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalDependency": "RelationshipType:hasOptionalDependency", | ||
2101 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOutputs": "RelationshipType:hasOutputs", | ||
2102 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasPrerequsite": "RelationshipType:hasPrerequsite", | ||
2103 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasProvidedDependency": "RelationshipType:hasProvidedDependency", | ||
2104 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasRequirement": "RelationshipType:hasRequirement", | ||
2105 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasSpecification": "RelationshipType:hasSpecification", | ||
2106 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasStaticLink": "RelationshipType:hasStaticLink", | ||
2107 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTest": "RelationshipType:hasTest", | ||
2108 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTestCase": "RelationshipType:hasTestCase", | ||
2109 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasVariant": "RelationshipType:hasVariant", | ||
2110 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/invokedBy": "RelationshipType:invokedBy", | ||
2111 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/modifiedBy": "RelationshipType:modifiedBy", | ||
2112 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/other": "RelationshipType:other", | ||
2113 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/packagedBy": "RelationshipType:packagedBy", | ||
2114 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/patchedBy": "RelationshipType:patchedBy", | ||
2115 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/publishedBy": "RelationshipType:publishedBy", | ||
2116 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/reportedBy": "RelationshipType:reportedBy", | ||
2117 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/republishedBy": "RelationshipType:republishedBy", | ||
2118 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/serializedInArtifact": "RelationshipType:serializedInArtifact", | ||
2119 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/testedOn": "RelationshipType:testedOn", | ||
2120 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/trainedOn": "RelationshipType:trainedOn", | ||
2121 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/underInvestigationFor": "RelationshipType:underInvestigationFor", | ||
2122 | "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/usesTool": "RelationshipType:usesTool", | ||
2123 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/deployed": "SupportType:deployed", | ||
2124 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/development": "SupportType:development", | ||
2125 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/endOfSupport": "SupportType:endOfSupport", | ||
2126 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/limitedSupport": "SupportType:limitedSupport", | ||
2127 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noAssertion": "SupportType:noAssertion", | ||
2128 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noSupport": "SupportType:noSupport", | ||
2129 | "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/support": "SupportType:support", | ||
2130 | "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/amber": "dataset_ConfidentialityLevelType:amber", | ||
2131 | "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/clear": "dataset_ConfidentialityLevelType:clear", | ||
2132 | "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/green": "dataset_ConfidentialityLevelType:green", | ||
2133 | "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/red": "dataset_ConfidentialityLevelType:red", | ||
2134 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/clickthrough": "dataset_DatasetAvailabilityType:clickthrough", | ||
2135 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/directDownload": "dataset_DatasetAvailabilityType:directDownload", | ||
2136 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/query": "dataset_DatasetAvailabilityType:query", | ||
2137 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/registration": "dataset_DatasetAvailabilityType:registration", | ||
2138 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/scrapingScript": "dataset_DatasetAvailabilityType:scrapingScript", | ||
2139 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/audio": "dataset_DatasetType:audio", | ||
2140 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/categorical": "dataset_DatasetType:categorical", | ||
2141 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/graph": "dataset_DatasetType:graph", | ||
2142 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/image": "dataset_DatasetType:image", | ||
2143 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/noAssertion": "dataset_DatasetType:noAssertion", | ||
2144 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/numeric": "dataset_DatasetType:numeric", | ||
2145 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/other": "dataset_DatasetType:other", | ||
2146 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/sensor": "dataset_DatasetType:sensor", | ||
2147 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/structured": "dataset_DatasetType:structured", | ||
2148 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/syntactic": "dataset_DatasetType:syntactic", | ||
2149 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/text": "dataset_DatasetType:text", | ||
2150 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timeseries": "dataset_DatasetType:timeseries", | ||
2151 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timestamp": "dataset_DatasetType:timestamp", | ||
2152 | "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/video": "dataset_DatasetType:video", | ||
2153 | "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical": "security_CvssSeverityType:critical", | ||
2154 | "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high": "security_CvssSeverityType:high", | ||
2155 | "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low": "security_CvssSeverityType:low", | ||
2156 | "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium": "security_CvssSeverityType:medium", | ||
2157 | "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none": "security_CvssSeverityType:none", | ||
2158 | "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/kev": "security_ExploitCatalogType:kev", | ||
2159 | "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/other": "security_ExploitCatalogType:other", | ||
2160 | "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/act": "security_SsvcDecisionType:act", | ||
2161 | "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/attend": "security_SsvcDecisionType:attend", | ||
2162 | "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/track": "security_SsvcDecisionType:track", | ||
2163 | "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/trackStar": "security_SsvcDecisionType:trackStar", | ||
2164 | "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/componentNotPresent": "security_VexJustificationType:componentNotPresent", | ||
2165 | "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist": "security_VexJustificationType:inlineMitigationsAlreadyExist", | ||
2166 | "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary": "security_VexJustificationType:vulnerableCodeCannotBeControlledByAdversary", | ||
2167 | "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath": "security_VexJustificationType:vulnerableCodeNotInExecutePath", | ||
2168 | "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotPresent": "security_VexJustificationType:vulnerableCodeNotPresent", | ||
2169 | "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/gitoid": "software_ContentIdentifierType:gitoid", | ||
2170 | "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/swhid": "software_ContentIdentifierType:swhid", | ||
2171 | "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/directory": "software_FileKindType:directory", | ||
2172 | "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/file": "software_FileKindType:file", | ||
2173 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/analyzed": "software_SbomType:analyzed", | ||
2174 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/build": "software_SbomType:build", | ||
2175 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/deployed": "software_SbomType:deployed", | ||
2176 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/design": "software_SbomType:design", | ||
2177 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/runtime": "software_SbomType:runtime", | ||
2178 | "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/source": "software_SbomType:source", | ||
2179 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application": "software_SoftwarePurpose:application", | ||
2180 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive": "software_SoftwarePurpose:archive", | ||
2181 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom": "software_SoftwarePurpose:bom", | ||
2182 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration": "software_SoftwarePurpose:configuration", | ||
2183 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container": "software_SoftwarePurpose:container", | ||
2184 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data": "software_SoftwarePurpose:data", | ||
2185 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device": "software_SoftwarePurpose:device", | ||
2186 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver": "software_SoftwarePurpose:deviceDriver", | ||
2187 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage": "software_SoftwarePurpose:diskImage", | ||
2188 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation": "software_SoftwarePurpose:documentation", | ||
2189 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence": "software_SoftwarePurpose:evidence", | ||
2190 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable": "software_SoftwarePurpose:executable", | ||
2191 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file": "software_SoftwarePurpose:file", | ||
2192 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage": "software_SoftwarePurpose:filesystemImage", | ||
2193 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware": "software_SoftwarePurpose:firmware", | ||
2194 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework": "software_SoftwarePurpose:framework", | ||
2195 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install": "software_SoftwarePurpose:install", | ||
2196 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library": "software_SoftwarePurpose:library", | ||
2197 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest": "software_SoftwarePurpose:manifest", | ||
2198 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model": "software_SoftwarePurpose:model", | ||
2199 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module": "software_SoftwarePurpose:module", | ||
2200 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem": "software_SoftwarePurpose:operatingSystem", | ||
2201 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other": "software_SoftwarePurpose:other", | ||
2202 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch": "software_SoftwarePurpose:patch", | ||
2203 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform": "software_SoftwarePurpose:platform", | ||
2204 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement": "software_SoftwarePurpose:requirement", | ||
2205 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source": "software_SoftwarePurpose:source", | ||
2206 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification": "software_SoftwarePurpose:specification", | ||
2207 | "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test": "software_SoftwarePurpose:test", | ||
2208 | "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoAssertionLicense": "spdx:ExpandedLicensing/NoAssertionLicense", | ||
2209 | "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoneLicense": "spdx:ExpandedLicensing/NoneLicense", | ||
2210 | } | ||
2211 | |||
2212 | _NI_DECODE_CONTEXT = { | ||
2213 | "ai_EnergyUnitType:kilowattHour": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/kilowattHour", | ||
2214 | "ai_EnergyUnitType:megajoule": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/megajoule", | ||
2215 | "ai_EnergyUnitType:other": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/other", | ||
2216 | "ai_SafetyRiskAssessmentType:high": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/high", | ||
2217 | "ai_SafetyRiskAssessmentType:low": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/low", | ||
2218 | "ai_SafetyRiskAssessmentType:medium": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/medium", | ||
2219 | "ai_SafetyRiskAssessmentType:serious": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/serious", | ||
2220 | "AnnotationType:other": "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/other", | ||
2221 | "AnnotationType:review": "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/review", | ||
2222 | "spdx:Core/NoAssertionElement": "https://spdx.org/rdf/3.0.0/terms/Core/NoAssertionElement", | ||
2223 | "spdx:Core/NoneElement": "https://spdx.org/rdf/3.0.0/terms/Core/NoneElement", | ||
2224 | "ExternalIdentifierType:cpe22": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe22", | ||
2225 | "ExternalIdentifierType:cpe23": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe23", | ||
2226 | "ExternalIdentifierType:cve": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cve", | ||
2227 | "ExternalIdentifierType:email": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/email", | ||
2228 | "ExternalIdentifierType:gitoid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/gitoid", | ||
2229 | "ExternalIdentifierType:other": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/other", | ||
2230 | "ExternalIdentifierType:packageUrl": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/packageUrl", | ||
2231 | "ExternalIdentifierType:securityOther": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/securityOther", | ||
2232 | "ExternalIdentifierType:swhid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swhid", | ||
2233 | "ExternalIdentifierType:swid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swid", | ||
2234 | "ExternalIdentifierType:urlScheme": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/urlScheme", | ||
2235 | "ExternalRefType:altDownloadLocation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altDownloadLocation", | ||
2236 | "ExternalRefType:altWebPage": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altWebPage", | ||
2237 | "ExternalRefType:binaryArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/binaryArtifact", | ||
2238 | "ExternalRefType:bower": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/bower", | ||
2239 | "ExternalRefType:buildMeta": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildMeta", | ||
2240 | "ExternalRefType:buildSystem": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildSystem", | ||
2241 | "ExternalRefType:certificationReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/certificationReport", | ||
2242 | "ExternalRefType:chat": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/chat", | ||
2243 | "ExternalRefType:componentAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/componentAnalysisReport", | ||
2244 | "ExternalRefType:cwe": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/cwe", | ||
2245 | "ExternalRefType:documentation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/documentation", | ||
2246 | "ExternalRefType:dynamicAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/dynamicAnalysisReport", | ||
2247 | "ExternalRefType:eolNotice": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/eolNotice", | ||
2248 | "ExternalRefType:exportControlAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/exportControlAssessment", | ||
2249 | "ExternalRefType:funding": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/funding", | ||
2250 | "ExternalRefType:issueTracker": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/issueTracker", | ||
2251 | "ExternalRefType:license": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/license", | ||
2252 | "ExternalRefType:mailingList": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mailingList", | ||
2253 | "ExternalRefType:mavenCentral": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mavenCentral", | ||
2254 | "ExternalRefType:metrics": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/metrics", | ||
2255 | "ExternalRefType:npm": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/npm", | ||
2256 | "ExternalRefType:nuget": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/nuget", | ||
2257 | "ExternalRefType:other": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/other", | ||
2258 | "ExternalRefType:privacyAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/privacyAssessment", | ||
2259 | "ExternalRefType:productMetadata": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/productMetadata", | ||
2260 | "ExternalRefType:purchaseOrder": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/purchaseOrder", | ||
2261 | "ExternalRefType:qualityAssessmentReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/qualityAssessmentReport", | ||
2262 | "ExternalRefType:releaseHistory": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseHistory", | ||
2263 | "ExternalRefType:releaseNotes": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseNotes", | ||
2264 | "ExternalRefType:riskAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/riskAssessment", | ||
2265 | "ExternalRefType:runtimeAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/runtimeAnalysisReport", | ||
2266 | "ExternalRefType:secureSoftwareAttestation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/secureSoftwareAttestation", | ||
2267 | "ExternalRefType:securityAdversaryModel": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdversaryModel", | ||
2268 | "ExternalRefType:securityAdvisory": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdvisory", | ||
2269 | "ExternalRefType:securityFix": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityFix", | ||
2270 | "ExternalRefType:securityOther": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityOther", | ||
2271 | "ExternalRefType:securityPenTestReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPenTestReport", | ||
2272 | "ExternalRefType:securityPolicy": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPolicy", | ||
2273 | "ExternalRefType:securityThreatModel": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityThreatModel", | ||
2274 | "ExternalRefType:socialMedia": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/socialMedia", | ||
2275 | "ExternalRefType:sourceArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/sourceArtifact", | ||
2276 | "ExternalRefType:staticAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/staticAnalysisReport", | ||
2277 | "ExternalRefType:support": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/support", | ||
2278 | "ExternalRefType:vcs": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vcs", | ||
2279 | "ExternalRefType:vulnerabilityDisclosureReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityDisclosureReport", | ||
2280 | "ExternalRefType:vulnerabilityExploitabilityAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment", | ||
2281 | "HashAlgorithm:blake2b256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256", | ||
2282 | "HashAlgorithm:blake2b384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384", | ||
2283 | "HashAlgorithm:blake2b512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512", | ||
2284 | "HashAlgorithm:blake3": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3", | ||
2285 | "HashAlgorithm:crystalsDilithium": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium", | ||
2286 | "HashAlgorithm:crystalsKyber": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber", | ||
2287 | "HashAlgorithm:falcon": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon", | ||
2288 | "HashAlgorithm:md2": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2", | ||
2289 | "HashAlgorithm:md4": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4", | ||
2290 | "HashAlgorithm:md5": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5", | ||
2291 | "HashAlgorithm:md6": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6", | ||
2292 | "HashAlgorithm:other": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other", | ||
2293 | "HashAlgorithm:sha1": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1", | ||
2294 | "HashAlgorithm:sha224": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224", | ||
2295 | "HashAlgorithm:sha256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256", | ||
2296 | "HashAlgorithm:sha384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384", | ||
2297 | "HashAlgorithm:sha3_224": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224", | ||
2298 | "HashAlgorithm:sha3_256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256", | ||
2299 | "HashAlgorithm:sha3_384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384", | ||
2300 | "HashAlgorithm:sha3_512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512", | ||
2301 | "HashAlgorithm:sha512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512", | ||
2302 | "LifecycleScopeType:build": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/build", | ||
2303 | "LifecycleScopeType:design": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/design", | ||
2304 | "LifecycleScopeType:development": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/development", | ||
2305 | "LifecycleScopeType:other": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/other", | ||
2306 | "LifecycleScopeType:runtime": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/runtime", | ||
2307 | "LifecycleScopeType:test": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/test", | ||
2308 | "PresenceType:no": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no", | ||
2309 | "PresenceType:noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion", | ||
2310 | "PresenceType:yes": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes", | ||
2311 | "ProfileIdentifierType:ai": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/ai", | ||
2312 | "ProfileIdentifierType:build": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/build", | ||
2313 | "ProfileIdentifierType:core": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/core", | ||
2314 | "ProfileIdentifierType:dataset": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/dataset", | ||
2315 | "ProfileIdentifierType:expandedLicensing": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/expandedLicensing", | ||
2316 | "ProfileIdentifierType:extension": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/extension", | ||
2317 | "ProfileIdentifierType:lite": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/lite", | ||
2318 | "ProfileIdentifierType:security": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/security", | ||
2319 | "ProfileIdentifierType:simpleLicensing": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/simpleLicensing", | ||
2320 | "ProfileIdentifierType:software": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/software", | ||
2321 | "RelationshipCompleteness:complete": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/complete", | ||
2322 | "RelationshipCompleteness:incomplete": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/incomplete", | ||
2323 | "RelationshipCompleteness:noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/noAssertion", | ||
2324 | "RelationshipType:affects": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/affects", | ||
2325 | "RelationshipType:amendedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/amendedBy", | ||
2326 | "RelationshipType:ancestorOf": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/ancestorOf", | ||
2327 | "RelationshipType:availableFrom": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/availableFrom", | ||
2328 | "RelationshipType:configures": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/configures", | ||
2329 | "RelationshipType:contains": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/contains", | ||
2330 | "RelationshipType:coordinatedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/coordinatedBy", | ||
2331 | "RelationshipType:copiedTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/copiedTo", | ||
2332 | "RelationshipType:delegatedTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/delegatedTo", | ||
2333 | "RelationshipType:dependsOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/dependsOn", | ||
2334 | "RelationshipType:descendantOf": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/descendantOf", | ||
2335 | "RelationshipType:describes": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/describes", | ||
2336 | "RelationshipType:doesNotAffect": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/doesNotAffect", | ||
2337 | "RelationshipType:expandsTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/expandsTo", | ||
2338 | "RelationshipType:exploitCreatedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/exploitCreatedBy", | ||
2339 | "RelationshipType:fixedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedBy", | ||
2340 | "RelationshipType:fixedIn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedIn", | ||
2341 | "RelationshipType:foundBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/foundBy", | ||
2342 | "RelationshipType:generates": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/generates", | ||
2343 | "RelationshipType:hasAddedFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAddedFile", | ||
2344 | "RelationshipType:hasAssessmentFor": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssessmentFor", | ||
2345 | "RelationshipType:hasAssociatedVulnerability": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssociatedVulnerability", | ||
2346 | "RelationshipType:hasConcludedLicense": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasConcludedLicense", | ||
2347 | "RelationshipType:hasDataFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDataFile", | ||
2348 | "RelationshipType:hasDeclaredLicense": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeclaredLicense", | ||
2349 | "RelationshipType:hasDeletedFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeletedFile", | ||
2350 | "RelationshipType:hasDependencyManifest": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDependencyManifest", | ||
2351 | "RelationshipType:hasDistributionArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDistributionArtifact", | ||
2352 | "RelationshipType:hasDocumentation": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDocumentation", | ||
2353 | "RelationshipType:hasDynamicLink": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDynamicLink", | ||
2354 | "RelationshipType:hasEvidence": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasEvidence", | ||
2355 | "RelationshipType:hasExample": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasExample", | ||
2356 | "RelationshipType:hasHost": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasHost", | ||
2357 | "RelationshipType:hasInputs": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasInputs", | ||
2358 | "RelationshipType:hasMetadata": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasMetadata", | ||
2359 | "RelationshipType:hasOptionalComponent": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalComponent", | ||
2360 | "RelationshipType:hasOptionalDependency": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalDependency", | ||
2361 | "RelationshipType:hasOutputs": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOutputs", | ||
2362 | "RelationshipType:hasPrerequsite": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasPrerequsite", | ||
2363 | "RelationshipType:hasProvidedDependency": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasProvidedDependency", | ||
2364 | "RelationshipType:hasRequirement": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasRequirement", | ||
2365 | "RelationshipType:hasSpecification": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasSpecification", | ||
2366 | "RelationshipType:hasStaticLink": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasStaticLink", | ||
2367 | "RelationshipType:hasTest": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTest", | ||
2368 | "RelationshipType:hasTestCase": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTestCase", | ||
2369 | "RelationshipType:hasVariant": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasVariant", | ||
2370 | "RelationshipType:invokedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/invokedBy", | ||
2371 | "RelationshipType:modifiedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/modifiedBy", | ||
2372 | "RelationshipType:other": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/other", | ||
2373 | "RelationshipType:packagedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/packagedBy", | ||
2374 | "RelationshipType:patchedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/patchedBy", | ||
2375 | "RelationshipType:publishedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/publishedBy", | ||
2376 | "RelationshipType:reportedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/reportedBy", | ||
2377 | "RelationshipType:republishedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/republishedBy", | ||
2378 | "RelationshipType:serializedInArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/serializedInArtifact", | ||
2379 | "RelationshipType:testedOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/testedOn", | ||
2380 | "RelationshipType:trainedOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/trainedOn", | ||
2381 | "RelationshipType:underInvestigationFor": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/underInvestigationFor", | ||
2382 | "RelationshipType:usesTool": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/usesTool", | ||
2383 | "SupportType:deployed": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/deployed", | ||
2384 | "SupportType:development": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/development", | ||
2385 | "SupportType:endOfSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/endOfSupport", | ||
2386 | "SupportType:limitedSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/limitedSupport", | ||
2387 | "SupportType:noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noAssertion", | ||
2388 | "SupportType:noSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noSupport", | ||
2389 | "SupportType:support": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/support", | ||
2390 | "dataset_ConfidentialityLevelType:amber": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/amber", | ||
2391 | "dataset_ConfidentialityLevelType:clear": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/clear", | ||
2392 | "dataset_ConfidentialityLevelType:green": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/green", | ||
2393 | "dataset_ConfidentialityLevelType:red": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/red", | ||
2394 | "dataset_DatasetAvailabilityType:clickthrough": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/clickthrough", | ||
2395 | "dataset_DatasetAvailabilityType:directDownload": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/directDownload", | ||
2396 | "dataset_DatasetAvailabilityType:query": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/query", | ||
2397 | "dataset_DatasetAvailabilityType:registration": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/registration", | ||
2398 | "dataset_DatasetAvailabilityType:scrapingScript": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/scrapingScript", | ||
2399 | "dataset_DatasetType:audio": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/audio", | ||
2400 | "dataset_DatasetType:categorical": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/categorical", | ||
2401 | "dataset_DatasetType:graph": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/graph", | ||
2402 | "dataset_DatasetType:image": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/image", | ||
2403 | "dataset_DatasetType:noAssertion": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/noAssertion", | ||
2404 | "dataset_DatasetType:numeric": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/numeric", | ||
2405 | "dataset_DatasetType:other": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/other", | ||
2406 | "dataset_DatasetType:sensor": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/sensor", | ||
2407 | "dataset_DatasetType:structured": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/structured", | ||
2408 | "dataset_DatasetType:syntactic": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/syntactic", | ||
2409 | "dataset_DatasetType:text": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/text", | ||
2410 | "dataset_DatasetType:timeseries": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timeseries", | ||
2411 | "dataset_DatasetType:timestamp": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timestamp", | ||
2412 | "dataset_DatasetType:video": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/video", | ||
2413 | "security_CvssSeverityType:critical": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical", | ||
2414 | "security_CvssSeverityType:high": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high", | ||
2415 | "security_CvssSeverityType:low": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low", | ||
2416 | "security_CvssSeverityType:medium": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium", | ||
2417 | "security_CvssSeverityType:none": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none", | ||
2418 | "security_ExploitCatalogType:kev": "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/kev", | ||
2419 | "security_ExploitCatalogType:other": "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/other", | ||
2420 | "security_SsvcDecisionType:act": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/act", | ||
2421 | "security_SsvcDecisionType:attend": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/attend", | ||
2422 | "security_SsvcDecisionType:track": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/track", | ||
2423 | "security_SsvcDecisionType:trackStar": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/trackStar", | ||
2424 | "security_VexJustificationType:componentNotPresent": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/componentNotPresent", | ||
2425 | "security_VexJustificationType:inlineMitigationsAlreadyExist": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist", | ||
2426 | "security_VexJustificationType:vulnerableCodeCannotBeControlledByAdversary": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary", | ||
2427 | "security_VexJustificationType:vulnerableCodeNotInExecutePath": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath", | ||
2428 | "security_VexJustificationType:vulnerableCodeNotPresent": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotPresent", | ||
2429 | "software_ContentIdentifierType:gitoid": "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/gitoid", | ||
2430 | "software_ContentIdentifierType:swhid": "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/swhid", | ||
2431 | "software_FileKindType:directory": "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/directory", | ||
2432 | "software_FileKindType:file": "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/file", | ||
2433 | "software_SbomType:analyzed": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/analyzed", | ||
2434 | "software_SbomType:build": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/build", | ||
2435 | "software_SbomType:deployed": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/deployed", | ||
2436 | "software_SbomType:design": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/design", | ||
2437 | "software_SbomType:runtime": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/runtime", | ||
2438 | "software_SbomType:source": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/source", | ||
2439 | "software_SoftwarePurpose:application": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application", | ||
2440 | "software_SoftwarePurpose:archive": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive", | ||
2441 | "software_SoftwarePurpose:bom": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom", | ||
2442 | "software_SoftwarePurpose:configuration": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration", | ||
2443 | "software_SoftwarePurpose:container": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container", | ||
2444 | "software_SoftwarePurpose:data": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data", | ||
2445 | "software_SoftwarePurpose:device": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device", | ||
2446 | "software_SoftwarePurpose:deviceDriver": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver", | ||
2447 | "software_SoftwarePurpose:diskImage": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage", | ||
2448 | "software_SoftwarePurpose:documentation": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation", | ||
2449 | "software_SoftwarePurpose:evidence": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence", | ||
2450 | "software_SoftwarePurpose:executable": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable", | ||
2451 | "software_SoftwarePurpose:file": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file", | ||
2452 | "software_SoftwarePurpose:filesystemImage": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage", | ||
2453 | "software_SoftwarePurpose:firmware": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware", | ||
2454 | "software_SoftwarePurpose:framework": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework", | ||
2455 | "software_SoftwarePurpose:install": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install", | ||
2456 | "software_SoftwarePurpose:library": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library", | ||
2457 | "software_SoftwarePurpose:manifest": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest", | ||
2458 | "software_SoftwarePurpose:model": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model", | ||
2459 | "software_SoftwarePurpose:module": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module", | ||
2460 | "software_SoftwarePurpose:operatingSystem": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem", | ||
2461 | "software_SoftwarePurpose:other": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other", | ||
2462 | "software_SoftwarePurpose:patch": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch", | ||
2463 | "software_SoftwarePurpose:platform": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform", | ||
2464 | "software_SoftwarePurpose:requirement": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement", | ||
2465 | "software_SoftwarePurpose:source": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source", | ||
2466 | "software_SoftwarePurpose:specification": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification", | ||
2467 | "software_SoftwarePurpose:test": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test", | ||
2468 | "spdx:ExpandedLicensing/NoAssertionLicense": "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoAssertionLicense", | ||
2469 | "spdx:ExpandedLicensing/NoneLicense": "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoneLicense", | ||
2470 | } | ||
2471 | |||
2472 | 1963 | ||
2473 | # CLASSES | 1964 | # CLASSES |
2474 | # The class that contains properties to describe energy consumption incurred | 1965 | @register("http://spdx.invalid./AbstractClass", abstract=False) |
2475 | # by an AI model in different stages of its lifecycle. | 1966 | class http_spdx_invalid_AbstractClass(SHACLObject): |
2476 | @register("https://spdx.org/rdf/3.0.0/terms/AI/EnergyConsumption", compact_type="ai_EnergyConsumption", abstract=False) | ||
2477 | class ai_EnergyConsumption(SHACLObject): | ||
2478 | NODE_KIND = NodeKind.BlankNodeOrIRI | 1967 | NODE_KIND = NodeKind.BlankNodeOrIRI |
2479 | NAMED_INDIVIDUALS = { | 1968 | NAMED_INDIVIDUALS = { |
2480 | } | 1969 | } |
2481 | 1970 | ||
1971 | |||
1972 | # A class for describing the energy consumption incurred by an AI model in | ||
1973 | # different stages of its lifecycle. | ||
1974 | @register("https://spdx.org/rdf/3.0.1/terms/AI/EnergyConsumption", compact_type="ai_EnergyConsumption", abstract=False) | ||
1975 | class ai_EnergyConsumption(SHACLObject): | ||
1976 | NODE_KIND = NodeKind.BlankNode | ||
1977 | NAMED_INDIVIDUALS = { | ||
1978 | } | ||
1979 | |||
2482 | @classmethod | 1980 | @classmethod |
2483 | def _register_props(cls): | 1981 | def _register_props(cls): |
2484 | super()._register_props() | 1982 | super()._register_props() |
@@ -2487,7 +1985,7 @@ class ai_EnergyConsumption(SHACLObject): | |||
2487 | cls._add_property( | 1985 | cls._add_property( |
2488 | "ai_finetuningEnergyConsumption", | 1986 | "ai_finetuningEnergyConsumption", |
2489 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), | 1987 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), |
2490 | iri="https://spdx.org/rdf/3.0.0/terms/AI/finetuningEnergyConsumption", | 1988 | iri="https://spdx.org/rdf/3.0.1/terms/AI/finetuningEnergyConsumption", |
2491 | compact="ai_finetuningEnergyConsumption", | 1989 | compact="ai_finetuningEnergyConsumption", |
2492 | ) | 1990 | ) |
2493 | # Specifies the amount of energy consumed during inference time by an AI model | 1991 | # Specifies the amount of energy consumed during inference time by an AI model |
@@ -2495,7 +1993,7 @@ class ai_EnergyConsumption(SHACLObject): | |||
2495 | cls._add_property( | 1993 | cls._add_property( |
2496 | "ai_inferenceEnergyConsumption", | 1994 | "ai_inferenceEnergyConsumption", |
2497 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), | 1995 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), |
2498 | iri="https://spdx.org/rdf/3.0.0/terms/AI/inferenceEnergyConsumption", | 1996 | iri="https://spdx.org/rdf/3.0.1/terms/AI/inferenceEnergyConsumption", |
2499 | compact="ai_inferenceEnergyConsumption", | 1997 | compact="ai_inferenceEnergyConsumption", |
2500 | ) | 1998 | ) |
2501 | # Specifies the amount of energy consumed when training the AI model that is | 1999 | # Specifies the amount of energy consumed when training the AI model that is |
@@ -2503,16 +2001,16 @@ class ai_EnergyConsumption(SHACLObject): | |||
2503 | cls._add_property( | 2001 | cls._add_property( |
2504 | "ai_trainingEnergyConsumption", | 2002 | "ai_trainingEnergyConsumption", |
2505 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), | 2003 | ListProp(ObjectProp(ai_EnergyConsumptionDescription, False)), |
2506 | iri="https://spdx.org/rdf/3.0.0/terms/AI/trainingEnergyConsumption", | 2004 | iri="https://spdx.org/rdf/3.0.1/terms/AI/trainingEnergyConsumption", |
2507 | compact="ai_trainingEnergyConsumption", | 2005 | compact="ai_trainingEnergyConsumption", |
2508 | ) | 2006 | ) |
2509 | 2007 | ||
2510 | 2008 | ||
2511 | # The class that helps note down the quantity of energy consumption and the unit | 2009 | # The class that helps note down the quantity of energy consumption and the unit |
2512 | # used for measurement. | 2010 | # used for measurement. |
2513 | @register("https://spdx.org/rdf/3.0.0/terms/AI/EnergyConsumptionDescription", compact_type="ai_EnergyConsumptionDescription", abstract=False) | 2011 | @register("https://spdx.org/rdf/3.0.1/terms/AI/EnergyConsumptionDescription", compact_type="ai_EnergyConsumptionDescription", abstract=False) |
2514 | class ai_EnergyConsumptionDescription(SHACLObject): | 2012 | class ai_EnergyConsumptionDescription(SHACLObject): |
2515 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2013 | NODE_KIND = NodeKind.BlankNode |
2516 | NAMED_INDIVIDUALS = { | 2014 | NAMED_INDIVIDUALS = { |
2517 | } | 2015 | } |
2518 | 2016 | ||
@@ -2523,7 +2021,7 @@ class ai_EnergyConsumptionDescription(SHACLObject): | |||
2523 | cls._add_property( | 2021 | cls._add_property( |
2524 | "ai_energyQuantity", | 2022 | "ai_energyQuantity", |
2525 | FloatProp(), | 2023 | FloatProp(), |
2526 | iri="https://spdx.org/rdf/3.0.0/terms/AI/energyQuantity", | 2024 | iri="https://spdx.org/rdf/3.0.1/terms/AI/energyQuantity", |
2527 | min_count=1, | 2025 | min_count=1, |
2528 | compact="ai_energyQuantity", | 2026 | compact="ai_energyQuantity", |
2529 | ) | 2027 | ) |
@@ -2531,71 +2029,71 @@ class ai_EnergyConsumptionDescription(SHACLObject): | |||
2531 | cls._add_property( | 2029 | cls._add_property( |
2532 | "ai_energyUnit", | 2030 | "ai_energyUnit", |
2533 | EnumProp([ | 2031 | EnumProp([ |
2534 | ("https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/kilowattHour", "kilowattHour"), | 2032 | ("https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour", "kilowattHour"), |
2535 | ("https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/megajoule", "megajoule"), | 2033 | ("https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule", "megajoule"), |
2536 | ("https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/other", "other"), | 2034 | ("https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other", "other"), |
2537 | ]), | 2035 | ]), |
2538 | iri="https://spdx.org/rdf/3.0.0/terms/AI/energyUnit", | 2036 | iri="https://spdx.org/rdf/3.0.1/terms/AI/energyUnit", |
2539 | min_count=1, | 2037 | min_count=1, |
2540 | compact="ai_energyUnit", | 2038 | compact="ai_energyUnit", |
2541 | ) | 2039 | ) |
2542 | 2040 | ||
2543 | 2041 | ||
2544 | # Specifies the unit of energy consumption. | 2042 | # Specifies the unit of energy consumption. |
2545 | @register("https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType", compact_type="ai_EnergyUnitType", abstract=False) | 2043 | @register("https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType", compact_type="ai_EnergyUnitType", abstract=False) |
2546 | class ai_EnergyUnitType(SHACLObject): | 2044 | class ai_EnergyUnitType(SHACLObject): |
2547 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2045 | NODE_KIND = NodeKind.BlankNodeOrIRI |
2548 | NAMED_INDIVIDUALS = { | 2046 | NAMED_INDIVIDUALS = { |
2549 | "kilowattHour": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/kilowattHour", | 2047 | "kilowattHour": "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour", |
2550 | "megajoule": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/megajoule", | 2048 | "megajoule": "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule", |
2551 | "other": "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/other", | 2049 | "other": "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other", |
2552 | } | 2050 | } |
2553 | # Kilowatt-hour. | 2051 | # Kilowatt-hour. |
2554 | kilowattHour = "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/kilowattHour" | 2052 | kilowattHour = "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/kilowattHour" |
2555 | # Megajoule. | 2053 | # Megajoule. |
2556 | megajoule = "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/megajoule" | 2054 | megajoule = "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/megajoule" |
2557 | # Any other units of energy measurement. | 2055 | # Any other units of energy measurement. |
2558 | other = "https://spdx.org/rdf/3.0.0/terms/AI/EnergyUnitType/other" | 2056 | other = "https://spdx.org/rdf/3.0.1/terms/AI/EnergyUnitType/other" |
2559 | 2057 | ||
2560 | 2058 | ||
2561 | # Specifies the safety risk level. | 2059 | # Specifies the safety risk level. |
2562 | @register("https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType", compact_type="ai_SafetyRiskAssessmentType", abstract=False) | 2060 | @register("https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType", compact_type="ai_SafetyRiskAssessmentType", abstract=False) |
2563 | class ai_SafetyRiskAssessmentType(SHACLObject): | 2061 | class ai_SafetyRiskAssessmentType(SHACLObject): |
2564 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2062 | NODE_KIND = NodeKind.BlankNodeOrIRI |
2565 | NAMED_INDIVIDUALS = { | 2063 | NAMED_INDIVIDUALS = { |
2566 | "high": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/high", | 2064 | "high": "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/high", |
2567 | "low": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/low", | 2065 | "low": "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/low", |
2568 | "medium": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/medium", | 2066 | "medium": "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/medium", |
2569 | "serious": "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/serious", | 2067 | "serious": "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/serious", |
2570 | } | 2068 | } |
2571 | # The second-highest level of risk posed by an AI system. | 2069 | # The second-highest level of risk posed by an AI system. |
2572 | high = "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/high" | 2070 | high = "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/high" |
2573 | # Low/no risk is posed by an AI system. | 2071 | # Low/no risk is posed by an AI system. |
2574 | low = "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/low" | 2072 | low = "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/low" |
2575 | # The third-highest level of risk posed by an AI system. | 2073 | # The third-highest level of risk posed by an AI system. |
2576 | medium = "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/medium" | 2074 | medium = "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/medium" |
2577 | # The highest level of risk posed by an AI system. | 2075 | # The highest level of risk posed by an AI system. |
2578 | serious = "https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/serious" | 2076 | serious = "https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/serious" |
2579 | 2077 | ||
2580 | 2078 | ||
2581 | # Specifies the type of an annotation. | 2079 | # Specifies the type of an annotation. |
2582 | @register("https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType", compact_type="AnnotationType", abstract=False) | 2080 | @register("https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType", compact_type="AnnotationType", abstract=False) |
2583 | class AnnotationType(SHACLObject): | 2081 | class AnnotationType(SHACLObject): |
2584 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2082 | NODE_KIND = NodeKind.BlankNodeOrIRI |
2585 | NAMED_INDIVIDUALS = { | 2083 | NAMED_INDIVIDUALS = { |
2586 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/other", | 2084 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other", |
2587 | "review": "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/review", | 2085 | "review": "https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review", |
2588 | } | 2086 | } |
2589 | # Used to store extra information about an Element which is not part of a Review (e.g. extra information provided during the creation of the Element). | 2087 | # Used to store extra information about an Element which is not part of a review (e.g. extra information provided during the creation of the Element). |
2590 | other = "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/other" | 2088 | other = "https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other" |
2591 | # Used when someone reviews the Element. | 2089 | # Used when someone reviews the Element. |
2592 | review = "https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/review" | 2090 | review = "https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review" |
2593 | 2091 | ||
2594 | 2092 | ||
2595 | # Provides information about the creation of the Element. | 2093 | # Provides information about the creation of the Element. |
2596 | @register("https://spdx.org/rdf/3.0.0/terms/Core/CreationInfo", compact_type="CreationInfo", abstract=False) | 2094 | @register("https://spdx.org/rdf/3.0.1/terms/Core/CreationInfo", compact_type="CreationInfo", abstract=False) |
2597 | class CreationInfo(SHACLObject): | 2095 | class CreationInfo(SHACLObject): |
2598 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2096 | NODE_KIND = NodeKind.BlankNode |
2599 | NAMED_INDIVIDUALS = { | 2097 | NAMED_INDIVIDUALS = { |
2600 | } | 2098 | } |
2601 | 2099 | ||
@@ -2607,22 +2105,24 @@ class CreationInfo(SHACLObject): | |||
2607 | cls._add_property( | 2105 | cls._add_property( |
2608 | "comment", | 2106 | "comment", |
2609 | StringProp(), | 2107 | StringProp(), |
2610 | iri="https://spdx.org/rdf/3.0.0/terms/Core/comment", | 2108 | iri="https://spdx.org/rdf/3.0.1/terms/Core/comment", |
2611 | compact="comment", | 2109 | compact="comment", |
2612 | ) | 2110 | ) |
2613 | # Identifies when the Element was originally created. | 2111 | # Identifies when the Element was originally created. |
2614 | cls._add_property( | 2112 | cls._add_property( |
2615 | "created", | 2113 | "created", |
2616 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 2114 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
2617 | iri="https://spdx.org/rdf/3.0.0/terms/Core/created", | 2115 | iri="https://spdx.org/rdf/3.0.1/terms/Core/created", |
2618 | min_count=1, | 2116 | min_count=1, |
2619 | compact="created", | 2117 | compact="created", |
2620 | ) | 2118 | ) |
2621 | # Identifies who or what created the Element. | 2119 | # Identifies who or what created the Element. |
2622 | cls._add_property( | 2120 | cls._add_property( |
2623 | "createdBy", | 2121 | "createdBy", |
2624 | ListProp(ObjectProp(Agent, False)), | 2122 | ListProp(ObjectProp(Agent, False, context=[ |
2625 | iri="https://spdx.org/rdf/3.0.0/terms/Core/createdBy", | 2123 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), |
2124 | ],)), | ||
2125 | iri="https://spdx.org/rdf/3.0.1/terms/Core/createdBy", | ||
2626 | min_count=1, | 2126 | min_count=1, |
2627 | compact="createdBy", | 2127 | compact="createdBy", |
2628 | ) | 2128 | ) |
@@ -2630,23 +2130,24 @@ class CreationInfo(SHACLObject): | |||
2630 | cls._add_property( | 2130 | cls._add_property( |
2631 | "createdUsing", | 2131 | "createdUsing", |
2632 | ListProp(ObjectProp(Tool, False)), | 2132 | ListProp(ObjectProp(Tool, False)), |
2633 | iri="https://spdx.org/rdf/3.0.0/terms/Core/createdUsing", | 2133 | iri="https://spdx.org/rdf/3.0.1/terms/Core/createdUsing", |
2634 | compact="createdUsing", | 2134 | compact="createdUsing", |
2635 | ) | 2135 | ) |
2636 | # Provides a reference number that can be used to understand how to parse and interpret an Element. | 2136 | # Provides a reference number that can be used to understand how to parse and |
2137 | # interpret an Element. | ||
2637 | cls._add_property( | 2138 | cls._add_property( |
2638 | "specVersion", | 2139 | "specVersion", |
2639 | StringProp(pattern=r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$",), | 2140 | StringProp(pattern=r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$",), |
2640 | iri="https://spdx.org/rdf/3.0.0/terms/Core/specVersion", | 2141 | iri="https://spdx.org/rdf/3.0.1/terms/Core/specVersion", |
2641 | min_count=1, | 2142 | min_count=1, |
2642 | compact="specVersion", | 2143 | compact="specVersion", |
2643 | ) | 2144 | ) |
2644 | 2145 | ||
2645 | 2146 | ||
2646 | # A key with an associated value. | 2147 | # A key with an associated value. |
2647 | @register("https://spdx.org/rdf/3.0.0/terms/Core/DictionaryEntry", compact_type="DictionaryEntry", abstract=False) | 2148 | @register("https://spdx.org/rdf/3.0.1/terms/Core/DictionaryEntry", compact_type="DictionaryEntry", abstract=False) |
2648 | class DictionaryEntry(SHACLObject): | 2149 | class DictionaryEntry(SHACLObject): |
2649 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2150 | NODE_KIND = NodeKind.BlankNode |
2650 | NAMED_INDIVIDUALS = { | 2151 | NAMED_INDIVIDUALS = { |
2651 | } | 2152 | } |
2652 | 2153 | ||
@@ -2657,7 +2158,7 @@ class DictionaryEntry(SHACLObject): | |||
2657 | cls._add_property( | 2158 | cls._add_property( |
2658 | "key", | 2159 | "key", |
2659 | StringProp(), | 2160 | StringProp(), |
2660 | iri="https://spdx.org/rdf/3.0.0/terms/Core/key", | 2161 | iri="https://spdx.org/rdf/3.0.1/terms/Core/key", |
2661 | min_count=1, | 2162 | min_count=1, |
2662 | compact="key", | 2163 | compact="key", |
2663 | ) | 2164 | ) |
@@ -2665,26 +2166,26 @@ class DictionaryEntry(SHACLObject): | |||
2665 | cls._add_property( | 2166 | cls._add_property( |
2666 | "value", | 2167 | "value", |
2667 | StringProp(), | 2168 | StringProp(), |
2668 | iri="https://spdx.org/rdf/3.0.0/terms/Core/value", | 2169 | iri="https://spdx.org/rdf/3.0.1/terms/Core/value", |
2669 | compact="value", | 2170 | compact="value", |
2670 | ) | 2171 | ) |
2671 | 2172 | ||
2672 | 2173 | ||
2673 | # Base domain class from which all other SPDX-3.0 domain classes derive. | 2174 | # Base domain class from which all other SPDX-3.0 domain classes derive. |
2674 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Element", compact_type="Element", abstract=True) | 2175 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Element", compact_type="Element", abstract=True) |
2675 | class Element(SHACLObject): | 2176 | class Element(SHACLObject): |
2676 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2177 | NODE_KIND = NodeKind.IRI |
2677 | ID_ALIAS = "spdxId" | 2178 | ID_ALIAS = "spdxId" |
2678 | NAMED_INDIVIDUALS = { | 2179 | NAMED_INDIVIDUALS = { |
2679 | "NoAssertionElement": "https://spdx.org/rdf/3.0.0/terms/Core/NoAssertionElement", | 2180 | "NoAssertionElement": "https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", |
2680 | "NoneElement": "https://spdx.org/rdf/3.0.0/terms/Core/NoneElement", | 2181 | "NoneElement": "https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", |
2681 | } | 2182 | } |
2682 | # An Individual Value for Element representing a set of Elements of unknown | 2183 | # An Individual Value for Element representing a set of Elements of unknown |
2683 | # identify or cardinality (number). | 2184 | # identify or cardinality (number). |
2684 | NoAssertionElement = "https://spdx.org/rdf/3.0.0/terms/Core/NoAssertionElement" | 2185 | NoAssertionElement = "https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement" |
2685 | # An Individual Value for Element representing a set of Elements with | 2186 | # An Individual Value for Element representing a set of Elements with |
2686 | # cardinality (number/count) of zero. | 2187 | # cardinality (number/count) of zero. |
2687 | NoneElement = "https://spdx.org/rdf/3.0.0/terms/Core/NoneElement" | 2188 | NoneElement = "https://spdx.org/rdf/3.0.1/terms/Core/NoneElement" |
2688 | 2189 | ||
2689 | @classmethod | 2190 | @classmethod |
2690 | def _register_props(cls): | 2191 | def _register_props(cls): |
@@ -2694,14 +2195,14 @@ class Element(SHACLObject): | |||
2694 | cls._add_property( | 2195 | cls._add_property( |
2695 | "comment", | 2196 | "comment", |
2696 | StringProp(), | 2197 | StringProp(), |
2697 | iri="https://spdx.org/rdf/3.0.0/terms/Core/comment", | 2198 | iri="https://spdx.org/rdf/3.0.1/terms/Core/comment", |
2698 | compact="comment", | 2199 | compact="comment", |
2699 | ) | 2200 | ) |
2700 | # Provides information about the creation of the Element. | 2201 | # Provides information about the creation of the Element. |
2701 | cls._add_property( | 2202 | cls._add_property( |
2702 | "creationInfo", | 2203 | "creationInfo", |
2703 | ObjectProp(CreationInfo, True), | 2204 | ObjectProp(CreationInfo, True), |
2704 | iri="https://spdx.org/rdf/3.0.0/terms/Core/creationInfo", | 2205 | iri="https://spdx.org/rdf/3.0.1/terms/Core/creationInfo", |
2705 | min_count=1, | 2206 | min_count=1, |
2706 | compact="creationInfo", | 2207 | compact="creationInfo", |
2707 | ) | 2208 | ) |
@@ -2709,14 +2210,14 @@ class Element(SHACLObject): | |||
2709 | cls._add_property( | 2210 | cls._add_property( |
2710 | "description", | 2211 | "description", |
2711 | StringProp(), | 2212 | StringProp(), |
2712 | iri="https://spdx.org/rdf/3.0.0/terms/Core/description", | 2213 | iri="https://spdx.org/rdf/3.0.1/terms/Core/description", |
2713 | compact="description", | 2214 | compact="description", |
2714 | ) | 2215 | ) |
2715 | # Specifies an Extension characterization of some aspect of an Element. | 2216 | # Specifies an Extension characterization of some aspect of an Element. |
2716 | cls._add_property( | 2217 | cls._add_property( |
2717 | "extension", | 2218 | "extension", |
2718 | ListProp(ObjectProp(extension_Extension, False)), | 2219 | ListProp(ObjectProp(extension_Extension, False)), |
2719 | iri="https://spdx.org/rdf/3.0.0/terms/Core/extension", | 2220 | iri="https://spdx.org/rdf/3.0.1/terms/Core/extension", |
2720 | compact="extension", | 2221 | compact="extension", |
2721 | ) | 2222 | ) |
2722 | # Provides a reference to a resource outside the scope of SPDX-3.0 content | 2223 | # Provides a reference to a resource outside the scope of SPDX-3.0 content |
@@ -2724,7 +2225,7 @@ class Element(SHACLObject): | |||
2724 | cls._add_property( | 2225 | cls._add_property( |
2725 | "externalIdentifier", | 2226 | "externalIdentifier", |
2726 | ListProp(ObjectProp(ExternalIdentifier, False)), | 2227 | ListProp(ObjectProp(ExternalIdentifier, False)), |
2727 | iri="https://spdx.org/rdf/3.0.0/terms/Core/externalIdentifier", | 2228 | iri="https://spdx.org/rdf/3.0.1/terms/Core/externalIdentifier", |
2728 | compact="externalIdentifier", | 2229 | compact="externalIdentifier", |
2729 | ) | 2230 | ) |
2730 | # Points to a resource outside the scope of the SPDX-3.0 content | 2231 | # Points to a resource outside the scope of the SPDX-3.0 content |
@@ -2732,21 +2233,21 @@ class Element(SHACLObject): | |||
2732 | cls._add_property( | 2233 | cls._add_property( |
2733 | "externalRef", | 2234 | "externalRef", |
2734 | ListProp(ObjectProp(ExternalRef, False)), | 2235 | ListProp(ObjectProp(ExternalRef, False)), |
2735 | iri="https://spdx.org/rdf/3.0.0/terms/Core/externalRef", | 2236 | iri="https://spdx.org/rdf/3.0.1/terms/Core/externalRef", |
2736 | compact="externalRef", | 2237 | compact="externalRef", |
2737 | ) | 2238 | ) |
2738 | # Identifies the name of an Element as designated by the creator. | 2239 | # Identifies the name of an Element as designated by the creator. |
2739 | cls._add_property( | 2240 | cls._add_property( |
2740 | "name", | 2241 | "name", |
2741 | StringProp(), | 2242 | StringProp(), |
2742 | iri="https://spdx.org/rdf/3.0.0/terms/Core/name", | 2243 | iri="https://spdx.org/rdf/3.0.1/terms/Core/name", |
2743 | compact="name", | 2244 | compact="name", |
2744 | ) | 2245 | ) |
2745 | # A short description of an Element. | 2246 | # A short description of an Element. |
2746 | cls._add_property( | 2247 | cls._add_property( |
2747 | "summary", | 2248 | "summary", |
2748 | StringProp(), | 2249 | StringProp(), |
2749 | iri="https://spdx.org/rdf/3.0.0/terms/Core/summary", | 2250 | iri="https://spdx.org/rdf/3.0.1/terms/Core/summary", |
2750 | compact="summary", | 2251 | compact="summary", |
2751 | ) | 2252 | ) |
2752 | # Provides an IntegrityMethod with which the integrity of an Element can be | 2253 | # Provides an IntegrityMethod with which the integrity of an Element can be |
@@ -2754,15 +2255,15 @@ class Element(SHACLObject): | |||
2754 | cls._add_property( | 2255 | cls._add_property( |
2755 | "verifiedUsing", | 2256 | "verifiedUsing", |
2756 | ListProp(ObjectProp(IntegrityMethod, False)), | 2257 | ListProp(ObjectProp(IntegrityMethod, False)), |
2757 | iri="https://spdx.org/rdf/3.0.0/terms/Core/verifiedUsing", | 2258 | iri="https://spdx.org/rdf/3.0.1/terms/Core/verifiedUsing", |
2758 | compact="verifiedUsing", | 2259 | compact="verifiedUsing", |
2759 | ) | 2260 | ) |
2760 | 2261 | ||
2761 | 2262 | ||
2762 | # A collection of Elements, not necessarily with unifying context. | 2263 | # A collection of Elements, not necessarily with unifying context. |
2763 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ElementCollection", compact_type="ElementCollection", abstract=True) | 2264 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ElementCollection", compact_type="ElementCollection", abstract=True) |
2764 | class ElementCollection(Element): | 2265 | class ElementCollection(Element): |
2765 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2266 | NODE_KIND = NodeKind.IRI |
2766 | ID_ALIAS = "spdxId" | 2267 | ID_ALIAS = "spdxId" |
2767 | NAMED_INDIVIDUALS = { | 2268 | NAMED_INDIVIDUALS = { |
2768 | } | 2269 | } |
@@ -2773,8 +2274,14 @@ class ElementCollection(Element): | |||
2773 | # Refers to one or more Elements that are part of an ElementCollection. | 2274 | # Refers to one or more Elements that are part of an ElementCollection. |
2774 | cls._add_property( | 2275 | cls._add_property( |
2775 | "element", | 2276 | "element", |
2776 | ListProp(ObjectProp(Element, False)), | 2277 | ListProp(ObjectProp(Element, False, context=[ |
2777 | iri="https://spdx.org/rdf/3.0.0/terms/Core/element", | 2278 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
2279 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
2280 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
2281 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
2282 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
2283 | ],)), | ||
2284 | iri="https://spdx.org/rdf/3.0.1/terms/Core/element", | ||
2778 | compact="element", | 2285 | compact="element", |
2779 | ) | 2286 | ) |
2780 | # Describes one a profile which the creator of this ElementCollection intends to | 2287 | # Describes one a profile which the creator of this ElementCollection intends to |
@@ -2782,33 +2289,39 @@ class ElementCollection(Element): | |||
2782 | cls._add_property( | 2289 | cls._add_property( |
2783 | "profileConformance", | 2290 | "profileConformance", |
2784 | ListProp(EnumProp([ | 2291 | ListProp(EnumProp([ |
2785 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/ai", "ai"), | 2292 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/ai", "ai"), |
2786 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/build", "build"), | 2293 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/build", "build"), |
2787 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/core", "core"), | 2294 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/core", "core"), |
2788 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/dataset", "dataset"), | 2295 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/dataset", "dataset"), |
2789 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/expandedLicensing", "expandedLicensing"), | 2296 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/expandedLicensing", "expandedLicensing"), |
2790 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/extension", "extension"), | 2297 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/extension", "extension"), |
2791 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/lite", "lite"), | 2298 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/lite", "lite"), |
2792 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/security", "security"), | 2299 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/security", "security"), |
2793 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/simpleLicensing", "simpleLicensing"), | 2300 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/simpleLicensing", "simpleLicensing"), |
2794 | ("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/software", "software"), | 2301 | ("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/software", "software"), |
2795 | ])), | 2302 | ])), |
2796 | iri="https://spdx.org/rdf/3.0.0/terms/Core/profileConformance", | 2303 | iri="https://spdx.org/rdf/3.0.1/terms/Core/profileConformance", |
2797 | compact="profileConformance", | 2304 | compact="profileConformance", |
2798 | ) | 2305 | ) |
2799 | # This property is used to denote the root Element(s) of a tree of elements contained in a BOM. | 2306 | # This property is used to denote the root Element(s) of a tree of elements contained in a BOM. |
2800 | cls._add_property( | 2307 | cls._add_property( |
2801 | "rootElement", | 2308 | "rootElement", |
2802 | ListProp(ObjectProp(Element, False)), | 2309 | ListProp(ObjectProp(Element, False, context=[ |
2803 | iri="https://spdx.org/rdf/3.0.0/terms/Core/rootElement", | 2310 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
2311 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
2312 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
2313 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
2314 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
2315 | ],)), | ||
2316 | iri="https://spdx.org/rdf/3.0.1/terms/Core/rootElement", | ||
2804 | compact="rootElement", | 2317 | compact="rootElement", |
2805 | ) | 2318 | ) |
2806 | 2319 | ||
2807 | 2320 | ||
2808 | # A reference to a resource identifier defined outside the scope of SPDX-3.0 content that uniquely identifies an Element. | 2321 | # A reference to a resource identifier defined outside the scope of SPDX-3.0 content that uniquely identifies an Element. |
2809 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifier", compact_type="ExternalIdentifier", abstract=False) | 2322 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifier", compact_type="ExternalIdentifier", abstract=False) |
2810 | class ExternalIdentifier(SHACLObject): | 2323 | class ExternalIdentifier(SHACLObject): |
2811 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2324 | NODE_KIND = NodeKind.BlankNode |
2812 | NAMED_INDIVIDUALS = { | 2325 | NAMED_INDIVIDUALS = { |
2813 | } | 2326 | } |
2814 | 2327 | ||
@@ -2820,26 +2333,26 @@ class ExternalIdentifier(SHACLObject): | |||
2820 | cls._add_property( | 2333 | cls._add_property( |
2821 | "comment", | 2334 | "comment", |
2822 | StringProp(), | 2335 | StringProp(), |
2823 | iri="https://spdx.org/rdf/3.0.0/terms/Core/comment", | 2336 | iri="https://spdx.org/rdf/3.0.1/terms/Core/comment", |
2824 | compact="comment", | 2337 | compact="comment", |
2825 | ) | 2338 | ) |
2826 | # Specifies the type of the external identifier. | 2339 | # Specifies the type of the external identifier. |
2827 | cls._add_property( | 2340 | cls._add_property( |
2828 | "externalIdentifierType", | 2341 | "externalIdentifierType", |
2829 | EnumProp([ | 2342 | EnumProp([ |
2830 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe22", "cpe22"), | 2343 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22", "cpe22"), |
2831 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe23", "cpe23"), | 2344 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23", "cpe23"), |
2832 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cve", "cve"), | 2345 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve", "cve"), |
2833 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/email", "email"), | 2346 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email", "email"), |
2834 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/gitoid", "gitoid"), | 2347 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid", "gitoid"), |
2835 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/other", "other"), | 2348 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other", "other"), |
2836 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/packageUrl", "packageUrl"), | 2349 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl", "packageUrl"), |
2837 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/securityOther", "securityOther"), | 2350 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther", "securityOther"), |
2838 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swhid", "swhid"), | 2351 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid", "swhid"), |
2839 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swid", "swid"), | 2352 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid", "swid"), |
2840 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/urlScheme", "urlScheme"), | 2353 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme", "urlScheme"), |
2841 | ]), | 2354 | ]), |
2842 | iri="https://spdx.org/rdf/3.0.0/terms/Core/externalIdentifierType", | 2355 | iri="https://spdx.org/rdf/3.0.1/terms/Core/externalIdentifierType", |
2843 | min_count=1, | 2356 | min_count=1, |
2844 | compact="externalIdentifierType", | 2357 | compact="externalIdentifierType", |
2845 | ) | 2358 | ) |
@@ -2847,7 +2360,7 @@ class ExternalIdentifier(SHACLObject): | |||
2847 | cls._add_property( | 2360 | cls._add_property( |
2848 | "identifier", | 2361 | "identifier", |
2849 | StringProp(), | 2362 | StringProp(), |
2850 | iri="https://spdx.org/rdf/3.0.0/terms/Core/identifier", | 2363 | iri="https://spdx.org/rdf/3.0.1/terms/Core/identifier", |
2851 | min_count=1, | 2364 | min_count=1, |
2852 | compact="identifier", | 2365 | compact="identifier", |
2853 | ) | 2366 | ) |
@@ -2855,63 +2368,64 @@ class ExternalIdentifier(SHACLObject): | |||
2855 | cls._add_property( | 2368 | cls._add_property( |
2856 | "identifierLocator", | 2369 | "identifierLocator", |
2857 | ListProp(AnyURIProp()), | 2370 | ListProp(AnyURIProp()), |
2858 | iri="https://spdx.org/rdf/3.0.0/terms/Core/identifierLocator", | 2371 | iri="https://spdx.org/rdf/3.0.1/terms/Core/identifierLocator", |
2859 | compact="identifierLocator", | 2372 | compact="identifierLocator", |
2860 | ) | 2373 | ) |
2861 | # An entity that is authorized to issue identification credentials. | 2374 | # An entity that is authorized to issue identification credentials. |
2862 | cls._add_property( | 2375 | cls._add_property( |
2863 | "issuingAuthority", | 2376 | "issuingAuthority", |
2864 | StringProp(), | 2377 | StringProp(), |
2865 | iri="https://spdx.org/rdf/3.0.0/terms/Core/issuingAuthority", | 2378 | iri="https://spdx.org/rdf/3.0.1/terms/Core/issuingAuthority", |
2866 | compact="issuingAuthority", | 2379 | compact="issuingAuthority", |
2867 | ) | 2380 | ) |
2868 | 2381 | ||
2869 | 2382 | ||
2870 | # Specifies the type of an external identifier. | 2383 | # Specifies the type of an external identifier. |
2871 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType", compact_type="ExternalIdentifierType", abstract=False) | 2384 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType", compact_type="ExternalIdentifierType", abstract=False) |
2872 | class ExternalIdentifierType(SHACLObject): | 2385 | class ExternalIdentifierType(SHACLObject): |
2873 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2386 | NODE_KIND = NodeKind.BlankNodeOrIRI |
2874 | NAMED_INDIVIDUALS = { | 2387 | NAMED_INDIVIDUALS = { |
2875 | "cpe22": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe22", | 2388 | "cpe22": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22", |
2876 | "cpe23": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe23", | 2389 | "cpe23": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23", |
2877 | "cve": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cve", | 2390 | "cve": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve", |
2878 | "email": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/email", | 2391 | "email": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email", |
2879 | "gitoid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/gitoid", | 2392 | "gitoid": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid", |
2880 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/other", | 2393 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other", |
2881 | "packageUrl": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/packageUrl", | 2394 | "packageUrl": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl", |
2882 | "securityOther": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/securityOther", | 2395 | "securityOther": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther", |
2883 | "swhid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swhid", | 2396 | "swhid": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid", |
2884 | "swid": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swid", | 2397 | "swid": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid", |
2885 | "urlScheme": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/urlScheme", | 2398 | "urlScheme": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme", |
2886 | } | 2399 | } |
2887 | # https://cpe.mitre.org/files/cpe-specification_2.2.pdf | 2400 | # [Common Platform Enumeration Specification 2.2](https://cpe.mitre.org/files/cpe-specification_2.2.pdf) |
2888 | cpe22 = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe22" | 2401 | cpe22 = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22" |
2889 | # https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf | 2402 | # [Common Platform Enumeration: Naming Specification Version 2.3](https://csrc.nist.gov/publications/detail/nistir/7695/final) |
2890 | cpe23 = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cpe23" | 2403 | cpe23 = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23" |
2891 | # An identifier for a specific software flaw defined within the official CVE Dictionary and that conforms to the CVE specification as defined by https://csrc.nist.gov/glossary/term/cve_id. | 2404 | # Common Vulnerabilities and Exposures identifiers, an identifier for a specific software flaw defined within the official CVE Dictionary and that conforms to the [CVE specification](https://csrc.nist.gov/glossary/term/cve_id). |
2892 | cve = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/cve" | 2405 | cve = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve" |
2893 | # https://datatracker.ietf.org/doc/html/rfc3696#section-3 | 2406 | # Email address, as defined in [RFC 3696](https://datatracker.ietf.org/doc/rfc3986/) Section 3. |
2894 | email = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/email" | 2407 | email = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email" |
2895 | # https://www.iana.org/assignments/uri-schemes/prov/gitoid Gitoid stands for [Git Object ID](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects) and a gitoid of type blob is a unique hash of a binary artifact. A gitoid may represent the software [Artifact ID](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#artifact-id) or the [OmniBOR Identifier](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#omnibor-identifier) for the software artifact's associated [OmniBOR Document](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#omnibor-document); this ambiguity exists because the OmniBOR Document is itself an artifact, and the gitoid of that artifact is its valid identifier. Omnibor is a minimalistic schema to describe software [Artifact Dependency Graphs](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#artifact-dependency-graph-adg). Gitoids calculated on software artifacts (Snippet, File, or Package Elements) should be recorded in the SPDX 3.0 SoftwareArtifact's ContentIdentifier property. Gitoids calculated on the OmniBOR Document (OmniBOR Identifiers) should be recorded in the SPDX 3.0 Element's ExternalIdentifier property. | 2408 | # [Gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid), stands for [Git Object ID](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). A gitoid of type blob is a unique hash of a binary artifact. A gitoid may represent either an [Artifact Identifier](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-identifier-types) for the software artifact or an [Input Manifest Identifier](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#input-manifest-identifier) for the software artifact's associated [Artifact Input Manifest](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-input-manifest); this ambiguity exists because the Artifact Input Manifest is itself an artifact, and the gitoid of that artifact is its valid identifier. Gitoids calculated on software artifacts (Snippet, File, or Package Elements) should be recorded in the SPDX 3.0 SoftwareArtifact's contentIdentifier property. Gitoids calculated on the Artifact Input Manifest (Input Manifest Identifier) should be recorded in the SPDX 3.0 Element's externalIdentifier property. See [OmniBOR Specification](https://github.com/omnibor/spec/), a minimalistic specification for describing software [Artifact Dependency Graphs](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-dependency-graph-adg). |
2896 | gitoid = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/gitoid" | 2409 | gitoid = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid" |
2897 | # Used when the type doesn't match any of the other options. | 2410 | # Used when the type does not match any of the other options. |
2898 | other = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/other" | 2411 | other = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other" |
2899 | # https://github.com/package-url/purl-spec | 2412 | # Package URL, as defined in the corresponding [Annex](../../../annexes/pkg-url-specification.md) of this specification. |
2900 | packageUrl = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/packageUrl" | 2413 | packageUrl = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl" |
2901 | # Used when there is a security related identifier of unspecified type. | 2414 | # Used when there is a security related identifier of unspecified type. |
2902 | securityOther = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/securityOther" | 2415 | securityOther = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther" |
2903 | # SoftWare Hash IDentifier, persistent intrinsic identifiers for digital artifacts, such as files, trees (also known as directories or folders), commits, and other objects typically found in version control systems. The syntax of the identifiers is defined in the [SWHID specification](https://www.swhid.org/specification/v1.1/4.Syntax) and they typically look like `swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2`. | 2416 | # SoftWare Hash IDentifier, a persistent intrinsic identifier for digital artifacts, such as files, trees (also known as directories or folders), commits, and other objects typically found in version control systems. The format of the identifiers is defined in the [SWHID specification](https://www.swhid.org/specification/v1.1/4.Syntax) (ISO/IEC DIS 18670). They typically look like `swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2`. |
2904 | swhid = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swhid" | 2417 | swhid = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid" |
2905 | # https://www.ietf.org/archive/id/draft-ietf-sacm-coswid-21.html#section-2.3 | 2418 | # Concise Software Identification (CoSWID) tag, as defined in [RFC 9393](https://datatracker.ietf.org/doc/rfc9393/) Section 2.3. |
2906 | swid = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/swid" | 2419 | swid = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid" |
2907 | # the scheme used in order to locate a resource https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml | 2420 | # [Uniform Resource Identifier (URI) Schemes](https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml). The scheme used in order to locate a resource. |
2908 | urlScheme = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalIdentifierType/urlScheme" | 2421 | urlScheme = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme" |
2909 | 2422 | ||
2910 | 2423 | ||
2911 | # A map of Element identifiers that are used within a Document but defined external to that Document. | 2424 | # A map of Element identifiers that are used within an SpdxDocument but defined |
2912 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ExternalMap", compact_type="ExternalMap", abstract=False) | 2425 | # external to that SpdxDocument. |
2426 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ExternalMap", compact_type="ExternalMap", abstract=False) | ||
2913 | class ExternalMap(SHACLObject): | 2427 | class ExternalMap(SHACLObject): |
2914 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2428 | NODE_KIND = NodeKind.BlankNode |
2915 | NAMED_INDIVIDUALS = { | 2429 | NAMED_INDIVIDUALS = { |
2916 | } | 2430 | } |
2917 | 2431 | ||
@@ -2923,15 +2437,15 @@ class ExternalMap(SHACLObject): | |||
2923 | cls._add_property( | 2437 | cls._add_property( |
2924 | "definingArtifact", | 2438 | "definingArtifact", |
2925 | ObjectProp(Artifact, False), | 2439 | ObjectProp(Artifact, False), |
2926 | iri="https://spdx.org/rdf/3.0.0/terms/Core/definingArtifact", | 2440 | iri="https://spdx.org/rdf/3.0.1/terms/Core/definingArtifact", |
2927 | compact="definingArtifact", | 2441 | compact="definingArtifact", |
2928 | ) | 2442 | ) |
2929 | # Identifies an external Element used within a Document but defined external to | 2443 | # Identifies an external Element used within an SpdxDocument but defined |
2930 | # that Document. | 2444 | # external to that SpdxDocument. |
2931 | cls._add_property( | 2445 | cls._add_property( |
2932 | "externalSpdxId", | 2446 | "externalSpdxId", |
2933 | AnyURIProp(), | 2447 | AnyURIProp(), |
2934 | iri="https://spdx.org/rdf/3.0.0/terms/Core/externalSpdxId", | 2448 | iri="https://spdx.org/rdf/3.0.1/terms/Core/externalSpdxId", |
2935 | min_count=1, | 2449 | min_count=1, |
2936 | compact="externalSpdxId", | 2450 | compact="externalSpdxId", |
2937 | ) | 2451 | ) |
@@ -2939,7 +2453,7 @@ class ExternalMap(SHACLObject): | |||
2939 | cls._add_property( | 2453 | cls._add_property( |
2940 | "locationHint", | 2454 | "locationHint", |
2941 | AnyURIProp(), | 2455 | AnyURIProp(), |
2942 | iri="https://spdx.org/rdf/3.0.0/terms/Core/locationHint", | 2456 | iri="https://spdx.org/rdf/3.0.1/terms/Core/locationHint", |
2943 | compact="locationHint", | 2457 | compact="locationHint", |
2944 | ) | 2458 | ) |
2945 | # Provides an IntegrityMethod with which the integrity of an Element can be | 2459 | # Provides an IntegrityMethod with which the integrity of an Element can be |
@@ -2947,15 +2461,15 @@ class ExternalMap(SHACLObject): | |||
2947 | cls._add_property( | 2461 | cls._add_property( |
2948 | "verifiedUsing", | 2462 | "verifiedUsing", |
2949 | ListProp(ObjectProp(IntegrityMethod, False)), | 2463 | ListProp(ObjectProp(IntegrityMethod, False)), |
2950 | iri="https://spdx.org/rdf/3.0.0/terms/Core/verifiedUsing", | 2464 | iri="https://spdx.org/rdf/3.0.1/terms/Core/verifiedUsing", |
2951 | compact="verifiedUsing", | 2465 | compact="verifiedUsing", |
2952 | ) | 2466 | ) |
2953 | 2467 | ||
2954 | 2468 | ||
2955 | # A reference to a resource outside the scope of SPDX-3.0 content related to an Element. | 2469 | # A reference to a resource outside the scope of SPDX-3.0 content related to an Element. |
2956 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRef", compact_type="ExternalRef", abstract=False) | 2470 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRef", compact_type="ExternalRef", abstract=False) |
2957 | class ExternalRef(SHACLObject): | 2471 | class ExternalRef(SHACLObject): |
2958 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2472 | NODE_KIND = NodeKind.BlankNode |
2959 | NAMED_INDIVIDUALS = { | 2473 | NAMED_INDIVIDUALS = { |
2960 | } | 2474 | } |
2961 | 2475 | ||
@@ -2967,300 +2481,303 @@ class ExternalRef(SHACLObject): | |||
2967 | cls._add_property( | 2481 | cls._add_property( |
2968 | "comment", | 2482 | "comment", |
2969 | StringProp(), | 2483 | StringProp(), |
2970 | iri="https://spdx.org/rdf/3.0.0/terms/Core/comment", | 2484 | iri="https://spdx.org/rdf/3.0.1/terms/Core/comment", |
2971 | compact="comment", | 2485 | compact="comment", |
2972 | ) | 2486 | ) |
2973 | # Specifies the media type of an Element or Property. | 2487 | # Provides information about the content type of an Element or a Property. |
2974 | cls._add_property( | 2488 | cls._add_property( |
2975 | "contentType", | 2489 | "contentType", |
2976 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), | 2490 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), |
2977 | iri="https://spdx.org/rdf/3.0.0/terms/Core/contentType", | 2491 | iri="https://spdx.org/rdf/3.0.1/terms/Core/contentType", |
2978 | compact="contentType", | 2492 | compact="contentType", |
2979 | ) | 2493 | ) |
2980 | # Specifies the type of the external reference. | 2494 | # Specifies the type of the external reference. |
2981 | cls._add_property( | 2495 | cls._add_property( |
2982 | "externalRefType", | 2496 | "externalRefType", |
2983 | EnumProp([ | 2497 | EnumProp([ |
2984 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altDownloadLocation", "altDownloadLocation"), | 2498 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altDownloadLocation", "altDownloadLocation"), |
2985 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altWebPage", "altWebPage"), | 2499 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altWebPage", "altWebPage"), |
2986 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/binaryArtifact", "binaryArtifact"), | 2500 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/binaryArtifact", "binaryArtifact"), |
2987 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/bower", "bower"), | 2501 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/bower", "bower"), |
2988 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildMeta", "buildMeta"), | 2502 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildMeta", "buildMeta"), |
2989 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildSystem", "buildSystem"), | 2503 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildSystem", "buildSystem"), |
2990 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/certificationReport", "certificationReport"), | 2504 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/certificationReport", "certificationReport"), |
2991 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/chat", "chat"), | 2505 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/chat", "chat"), |
2992 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/componentAnalysisReport", "componentAnalysisReport"), | 2506 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/componentAnalysisReport", "componentAnalysisReport"), |
2993 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/cwe", "cwe"), | 2507 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/cwe", "cwe"), |
2994 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/documentation", "documentation"), | 2508 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/documentation", "documentation"), |
2995 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/dynamicAnalysisReport", "dynamicAnalysisReport"), | 2509 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/dynamicAnalysisReport", "dynamicAnalysisReport"), |
2996 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/eolNotice", "eolNotice"), | 2510 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/eolNotice", "eolNotice"), |
2997 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/exportControlAssessment", "exportControlAssessment"), | 2511 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/exportControlAssessment", "exportControlAssessment"), |
2998 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/funding", "funding"), | 2512 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/funding", "funding"), |
2999 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/issueTracker", "issueTracker"), | 2513 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/issueTracker", "issueTracker"), |
3000 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/license", "license"), | 2514 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/license", "license"), |
3001 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mailingList", "mailingList"), | 2515 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mailingList", "mailingList"), |
3002 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mavenCentral", "mavenCentral"), | 2516 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mavenCentral", "mavenCentral"), |
3003 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/metrics", "metrics"), | 2517 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/metrics", "metrics"), |
3004 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/npm", "npm"), | 2518 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/npm", "npm"), |
3005 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/nuget", "nuget"), | 2519 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/nuget", "nuget"), |
3006 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/other", "other"), | 2520 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/other", "other"), |
3007 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/privacyAssessment", "privacyAssessment"), | 2521 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/privacyAssessment", "privacyAssessment"), |
3008 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/productMetadata", "productMetadata"), | 2522 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/productMetadata", "productMetadata"), |
3009 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/purchaseOrder", "purchaseOrder"), | 2523 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/purchaseOrder", "purchaseOrder"), |
3010 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/qualityAssessmentReport", "qualityAssessmentReport"), | 2524 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/qualityAssessmentReport", "qualityAssessmentReport"), |
3011 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseHistory", "releaseHistory"), | 2525 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseHistory", "releaseHistory"), |
3012 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseNotes", "releaseNotes"), | 2526 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseNotes", "releaseNotes"), |
3013 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/riskAssessment", "riskAssessment"), | 2527 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/riskAssessment", "riskAssessment"), |
3014 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/runtimeAnalysisReport", "runtimeAnalysisReport"), | 2528 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/runtimeAnalysisReport", "runtimeAnalysisReport"), |
3015 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/secureSoftwareAttestation", "secureSoftwareAttestation"), | 2529 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/secureSoftwareAttestation", "secureSoftwareAttestation"), |
3016 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdversaryModel", "securityAdversaryModel"), | 2530 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdversaryModel", "securityAdversaryModel"), |
3017 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdvisory", "securityAdvisory"), | 2531 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdvisory", "securityAdvisory"), |
3018 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityFix", "securityFix"), | 2532 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityFix", "securityFix"), |
3019 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityOther", "securityOther"), | 2533 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityOther", "securityOther"), |
3020 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPenTestReport", "securityPenTestReport"), | 2534 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPenTestReport", "securityPenTestReport"), |
3021 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPolicy", "securityPolicy"), | 2535 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPolicy", "securityPolicy"), |
3022 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityThreatModel", "securityThreatModel"), | 2536 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityThreatModel", "securityThreatModel"), |
3023 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/socialMedia", "socialMedia"), | 2537 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/socialMedia", "socialMedia"), |
3024 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/sourceArtifact", "sourceArtifact"), | 2538 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/sourceArtifact", "sourceArtifact"), |
3025 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/staticAnalysisReport", "staticAnalysisReport"), | 2539 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/staticAnalysisReport", "staticAnalysisReport"), |
3026 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/support", "support"), | 2540 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/support", "support"), |
3027 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vcs", "vcs"), | 2541 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vcs", "vcs"), |
3028 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityDisclosureReport", "vulnerabilityDisclosureReport"), | 2542 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityDisclosureReport", "vulnerabilityDisclosureReport"), |
3029 | ("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment", "vulnerabilityExploitabilityAssessment"), | 2543 | ("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment", "vulnerabilityExploitabilityAssessment"), |
3030 | ]), | 2544 | ]), |
3031 | iri="https://spdx.org/rdf/3.0.0/terms/Core/externalRefType", | 2545 | iri="https://spdx.org/rdf/3.0.1/terms/Core/externalRefType", |
3032 | compact="externalRefType", | 2546 | compact="externalRefType", |
3033 | ) | 2547 | ) |
3034 | # Provides the location of an external reference. | 2548 | # Provides the location of an external reference. |
3035 | cls._add_property( | 2549 | cls._add_property( |
3036 | "locator", | 2550 | "locator", |
3037 | ListProp(StringProp()), | 2551 | ListProp(StringProp()), |
3038 | iri="https://spdx.org/rdf/3.0.0/terms/Core/locator", | 2552 | iri="https://spdx.org/rdf/3.0.1/terms/Core/locator", |
3039 | compact="locator", | 2553 | compact="locator", |
3040 | ) | 2554 | ) |
3041 | 2555 | ||
3042 | 2556 | ||
3043 | # Specifies the type of an external reference. | 2557 | # Specifies the type of an external reference. |
3044 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType", compact_type="ExternalRefType", abstract=False) | 2558 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType", compact_type="ExternalRefType", abstract=False) |
3045 | class ExternalRefType(SHACLObject): | 2559 | class ExternalRefType(SHACLObject): |
3046 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2560 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3047 | NAMED_INDIVIDUALS = { | 2561 | NAMED_INDIVIDUALS = { |
3048 | "altDownloadLocation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altDownloadLocation", | 2562 | "altDownloadLocation": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altDownloadLocation", |
3049 | "altWebPage": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altWebPage", | 2563 | "altWebPage": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altWebPage", |
3050 | "binaryArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/binaryArtifact", | 2564 | "binaryArtifact": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/binaryArtifact", |
3051 | "bower": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/bower", | 2565 | "bower": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/bower", |
3052 | "buildMeta": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildMeta", | 2566 | "buildMeta": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildMeta", |
3053 | "buildSystem": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildSystem", | 2567 | "buildSystem": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildSystem", |
3054 | "certificationReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/certificationReport", | 2568 | "certificationReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/certificationReport", |
3055 | "chat": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/chat", | 2569 | "chat": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/chat", |
3056 | "componentAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/componentAnalysisReport", | 2570 | "componentAnalysisReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/componentAnalysisReport", |
3057 | "cwe": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/cwe", | 2571 | "cwe": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/cwe", |
3058 | "documentation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/documentation", | 2572 | "documentation": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/documentation", |
3059 | "dynamicAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/dynamicAnalysisReport", | 2573 | "dynamicAnalysisReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/dynamicAnalysisReport", |
3060 | "eolNotice": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/eolNotice", | 2574 | "eolNotice": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/eolNotice", |
3061 | "exportControlAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/exportControlAssessment", | 2575 | "exportControlAssessment": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/exportControlAssessment", |
3062 | "funding": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/funding", | 2576 | "funding": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/funding", |
3063 | "issueTracker": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/issueTracker", | 2577 | "issueTracker": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/issueTracker", |
3064 | "license": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/license", | 2578 | "license": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/license", |
3065 | "mailingList": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mailingList", | 2579 | "mailingList": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mailingList", |
3066 | "mavenCentral": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mavenCentral", | 2580 | "mavenCentral": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mavenCentral", |
3067 | "metrics": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/metrics", | 2581 | "metrics": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/metrics", |
3068 | "npm": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/npm", | 2582 | "npm": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/npm", |
3069 | "nuget": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/nuget", | 2583 | "nuget": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/nuget", |
3070 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/other", | 2584 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/other", |
3071 | "privacyAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/privacyAssessment", | 2585 | "privacyAssessment": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/privacyAssessment", |
3072 | "productMetadata": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/productMetadata", | 2586 | "productMetadata": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/productMetadata", |
3073 | "purchaseOrder": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/purchaseOrder", | 2587 | "purchaseOrder": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/purchaseOrder", |
3074 | "qualityAssessmentReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/qualityAssessmentReport", | 2588 | "qualityAssessmentReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/qualityAssessmentReport", |
3075 | "releaseHistory": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseHistory", | 2589 | "releaseHistory": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseHistory", |
3076 | "releaseNotes": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseNotes", | 2590 | "releaseNotes": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseNotes", |
3077 | "riskAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/riskAssessment", | 2591 | "riskAssessment": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/riskAssessment", |
3078 | "runtimeAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/runtimeAnalysisReport", | 2592 | "runtimeAnalysisReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/runtimeAnalysisReport", |
3079 | "secureSoftwareAttestation": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/secureSoftwareAttestation", | 2593 | "secureSoftwareAttestation": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/secureSoftwareAttestation", |
3080 | "securityAdversaryModel": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdversaryModel", | 2594 | "securityAdversaryModel": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdversaryModel", |
3081 | "securityAdvisory": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdvisory", | 2595 | "securityAdvisory": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdvisory", |
3082 | "securityFix": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityFix", | 2596 | "securityFix": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityFix", |
3083 | "securityOther": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityOther", | 2597 | "securityOther": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityOther", |
3084 | "securityPenTestReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPenTestReport", | 2598 | "securityPenTestReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPenTestReport", |
3085 | "securityPolicy": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPolicy", | 2599 | "securityPolicy": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPolicy", |
3086 | "securityThreatModel": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityThreatModel", | 2600 | "securityThreatModel": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityThreatModel", |
3087 | "socialMedia": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/socialMedia", | 2601 | "socialMedia": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/socialMedia", |
3088 | "sourceArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/sourceArtifact", | 2602 | "sourceArtifact": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/sourceArtifact", |
3089 | "staticAnalysisReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/staticAnalysisReport", | 2603 | "staticAnalysisReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/staticAnalysisReport", |
3090 | "support": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/support", | 2604 | "support": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/support", |
3091 | "vcs": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vcs", | 2605 | "vcs": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vcs", |
3092 | "vulnerabilityDisclosureReport": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityDisclosureReport", | 2606 | "vulnerabilityDisclosureReport": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityDisclosureReport", |
3093 | "vulnerabilityExploitabilityAssessment": "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment", | 2607 | "vulnerabilityExploitabilityAssessment": "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment", |
3094 | } | 2608 | } |
3095 | # A reference to an alternative download location. | 2609 | # A reference to an alternative download location. |
3096 | altDownloadLocation = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altDownloadLocation" | 2610 | altDownloadLocation = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altDownloadLocation" |
3097 | # A reference to an alternative web page. | 2611 | # A reference to an alternative web page. |
3098 | altWebPage = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/altWebPage" | 2612 | altWebPage = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/altWebPage" |
3099 | # A reference to binary artifacts related to a package. | 2613 | # A reference to binary artifacts related to a package. |
3100 | binaryArtifact = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/binaryArtifact" | 2614 | binaryArtifact = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/binaryArtifact" |
3101 | # A reference to a bower package. | 2615 | # A reference to a Bower package. The package locator format, looks like `package#version`, is defined in the "install" section of [Bower API documentation](https://bower.io/docs/api/#install). |
3102 | bower = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/bower" | 2616 | bower = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/bower" |
3103 | # A reference build metadata related to a published package. | 2617 | # A reference build metadata related to a published package. |
3104 | buildMeta = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildMeta" | 2618 | buildMeta = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildMeta" |
3105 | # A reference build system used to create or publish the package. | 2619 | # A reference build system used to create or publish the package. |
3106 | buildSystem = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/buildSystem" | 2620 | buildSystem = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/buildSystem" |
3107 | # A reference to a certification report for a package from an accredited/independent body. | 2621 | # A reference to a certification report for a package from an accredited/independent body. |
3108 | certificationReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/certificationReport" | 2622 | certificationReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/certificationReport" |
3109 | # A reference to the instant messaging system used by the maintainer for a package. | 2623 | # A reference to the instant messaging system used by the maintainer for a package. |
3110 | chat = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/chat" | 2624 | chat = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/chat" |
3111 | # A reference to a Software Composition Analysis (SCA) report. | 2625 | # A reference to a Software Composition Analysis (SCA) report. |
3112 | componentAnalysisReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/componentAnalysisReport" | 2626 | componentAnalysisReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/componentAnalysisReport" |
3113 | # A reference to a source of software flaw defined within the official CWE Dictionary that conforms to the CWE specification as defined by https://csrc.nist.gov/glossary/term/common_weakness_enumeration. | 2627 | # [Common Weakness Enumeration](https://csrc.nist.gov/glossary/term/common_weakness_enumeration). A reference to a source of software flaw defined within the official [CWE List](https://cwe.mitre.org/data/) that conforms to the [CWE specification](https://cwe.mitre.org/). |
3114 | cwe = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/cwe" | 2628 | cwe = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/cwe" |
3115 | # A reference to the documentation for a package. | 2629 | # A reference to the documentation for a package. |
3116 | documentation = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/documentation" | 2630 | documentation = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/documentation" |
3117 | # A reference to a dynamic analysis report for a package. | 2631 | # A reference to a dynamic analysis report for a package. |
3118 | dynamicAnalysisReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/dynamicAnalysisReport" | 2632 | dynamicAnalysisReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/dynamicAnalysisReport" |
3119 | # A reference to the End Of Sale (EOS) and/or End Of Life (EOL) information related to a package. | 2633 | # A reference to the End Of Sale (EOS) and/or End Of Life (EOL) information related to a package. |
3120 | eolNotice = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/eolNotice" | 2634 | eolNotice = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/eolNotice" |
3121 | # A reference to a export control assessment for a package. | 2635 | # A reference to a export control assessment for a package. |
3122 | exportControlAssessment = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/exportControlAssessment" | 2636 | exportControlAssessment = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/exportControlAssessment" |
3123 | # A reference to funding information related to a package. | 2637 | # A reference to funding information related to a package. |
3124 | funding = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/funding" | 2638 | funding = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/funding" |
3125 | # A reference to the issue tracker for a package. | 2639 | # A reference to the issue tracker for a package. |
3126 | issueTracker = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/issueTracker" | 2640 | issueTracker = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/issueTracker" |
3127 | # A reference to additional license information related to an artifact. | 2641 | # A reference to additional license information related to an artifact. |
3128 | license = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/license" | 2642 | license = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/license" |
3129 | # A reference to the mailing list used by the maintainer for a package. | 2643 | # A reference to the mailing list used by the maintainer for a package. |
3130 | mailingList = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mailingList" | 2644 | mailingList = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mailingList" |
3131 | # A reference to a maven repository artifact. | 2645 | # A reference to a Maven repository artifact. The artifact locator format is defined in the [Maven documentation](https://maven.apache.org/guides/mini/guide-naming-conventions.html) and looks like `groupId:artifactId[:version]`. |
3132 | mavenCentral = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/mavenCentral" | 2646 | mavenCentral = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/mavenCentral" |
3133 | # A reference to metrics related to package such as OpenSSF scorecards. | 2647 | # A reference to metrics related to package such as OpenSSF scorecards. |
3134 | metrics = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/metrics" | 2648 | metrics = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/metrics" |
3135 | # A reference to an npm package. | 2649 | # A reference to an npm package. The package locator format is defined in the [npm documentation](https://docs.npmjs.com/cli/v10/configuring-npm/package-json) and looks like `package@version`. |
3136 | npm = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/npm" | 2650 | npm = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/npm" |
3137 | # A reference to a nuget package. | 2651 | # A reference to a NuGet package. The package locator format is defined in the [NuGet documentation](https://docs.nuget.org) and looks like `package/version`. |
3138 | nuget = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/nuget" | 2652 | nuget = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/nuget" |
3139 | # Used when the type doesn't match any of the other options. | 2653 | # Used when the type does not match any of the other options. |
3140 | other = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/other" | 2654 | other = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/other" |
3141 | # A reference to a privacy assessment for a package. | 2655 | # A reference to a privacy assessment for a package. |
3142 | privacyAssessment = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/privacyAssessment" | 2656 | privacyAssessment = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/privacyAssessment" |
3143 | # A reference to additional product metadata such as reference within organization's product catalog. | 2657 | # A reference to additional product metadata such as reference within organization's product catalog. |
3144 | productMetadata = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/productMetadata" | 2658 | productMetadata = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/productMetadata" |
3145 | # A reference to a purchase order for a package. | 2659 | # A reference to a purchase order for a package. |
3146 | purchaseOrder = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/purchaseOrder" | 2660 | purchaseOrder = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/purchaseOrder" |
3147 | # A reference to a quality assessment for a package. | 2661 | # A reference to a quality assessment for a package. |
3148 | qualityAssessmentReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/qualityAssessmentReport" | 2662 | qualityAssessmentReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/qualityAssessmentReport" |
3149 | # A reference to a published list of releases for a package. | 2663 | # A reference to a published list of releases for a package. |
3150 | releaseHistory = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseHistory" | 2664 | releaseHistory = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseHistory" |
3151 | # A reference to the release notes for a package. | 2665 | # A reference to the release notes for a package. |
3152 | releaseNotes = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/releaseNotes" | 2666 | releaseNotes = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/releaseNotes" |
3153 | # A reference to a risk assessment for a package. | 2667 | # A reference to a risk assessment for a package. |
3154 | riskAssessment = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/riskAssessment" | 2668 | riskAssessment = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/riskAssessment" |
3155 | # A reference to a runtime analysis report for a package. | 2669 | # A reference to a runtime analysis report for a package. |
3156 | runtimeAnalysisReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/runtimeAnalysisReport" | 2670 | runtimeAnalysisReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/runtimeAnalysisReport" |
3157 | # A reference to information assuring that the software is developed using security practices as defined by [NIST SP 800-218 Secure Software Development Framework (SSDF) Version 1.1](https://csrc.nist.gov/pubs/sp/800/218/final) or [CISA Secure Software Development Attestation Form](https://www.cisa.gov/resources-tools/resources/secure-software-development-attestation-form). | 2671 | # A reference to information assuring that the software is developed using security practices as defined by [NIST SP 800-218 Secure Software Development Framework (SSDF) Version 1.1](https://csrc.nist.gov/pubs/sp/800/218/final) or [CISA Secure Software Development Attestation Form](https://www.cisa.gov/resources-tools/resources/secure-software-development-attestation-form). |
3158 | secureSoftwareAttestation = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/secureSoftwareAttestation" | 2672 | secureSoftwareAttestation = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/secureSoftwareAttestation" |
3159 | # A reference to the security adversary model for a package. | 2673 | # A reference to the security adversary model for a package. |
3160 | securityAdversaryModel = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdversaryModel" | 2674 | securityAdversaryModel = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdversaryModel" |
3161 | # A reference to a published security advisory (where advisory as defined per ISO 29147:2018) that may affect one or more elements, e.g., vendor advisories or specific NVD entries. | 2675 | # A reference to a published security advisory (where advisory as defined per [ISO 29147:2018](https://www.iso.org/standard/72311.html)) that may affect one or more elements, e.g., vendor advisories or specific NVD entries. |
3162 | securityAdvisory = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityAdvisory" | 2676 | securityAdvisory = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityAdvisory" |
3163 | # A reference to the patch or source code that fixes a vulnerability. | 2677 | # A reference to the patch or source code that fixes a vulnerability. |
3164 | securityFix = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityFix" | 2678 | securityFix = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityFix" |
3165 | # A reference to related security information of unspecified type. | 2679 | # A reference to related security information of unspecified type. |
3166 | securityOther = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityOther" | 2680 | securityOther = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityOther" |
3167 | # A reference to a [penetration test](https://en.wikipedia.org/wiki/Penetration_test) report for a package. | 2681 | # A reference to a [penetration test](https://en.wikipedia.org/wiki/Penetration_test) report for a package. |
3168 | securityPenTestReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPenTestReport" | 2682 | securityPenTestReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPenTestReport" |
3169 | # A reference to instructions for reporting newly discovered security vulnerabilities for a package. | 2683 | # A reference to instructions for reporting newly discovered security vulnerabilities for a package. |
3170 | securityPolicy = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityPolicy" | 2684 | securityPolicy = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityPolicy" |
3171 | # A reference the [security threat model](https://en.wikipedia.org/wiki/Threat_model) for a package. | 2685 | # A reference the [security threat model](https://en.wikipedia.org/wiki/Threat_model) for a package. |
3172 | securityThreatModel = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/securityThreatModel" | 2686 | securityThreatModel = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/securityThreatModel" |
3173 | # A reference to a social media channel for a package. | 2687 | # A reference to a social media channel for a package. |
3174 | socialMedia = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/socialMedia" | 2688 | socialMedia = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/socialMedia" |
3175 | # A reference to an artifact containing the sources for a package. | 2689 | # A reference to an artifact containing the sources for a package. |
3176 | sourceArtifact = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/sourceArtifact" | 2690 | sourceArtifact = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/sourceArtifact" |
3177 | # A reference to a static analysis report for a package. | 2691 | # A reference to a static analysis report for a package. |
3178 | staticAnalysisReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/staticAnalysisReport" | 2692 | staticAnalysisReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/staticAnalysisReport" |
3179 | # A reference to the software support channel or other support information for a package. | 2693 | # A reference to the software support channel or other support information for a package. |
3180 | support = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/support" | 2694 | support = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/support" |
3181 | # A reference to a version control system related to a software artifact. | 2695 | # A reference to a version control system related to a software artifact. |
3182 | vcs = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vcs" | 2696 | vcs = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vcs" |
3183 | # A reference to a Vulnerability Disclosure Report (VDR) which provides the software supplier's analysis and findings describing the impact (or lack of impact) that reported vulnerabilities have on packages or products in the supplier's SBOM as defined in [NIST SP 800-161](https://csrc.nist.gov/pubs/sp/800/161/r1/final). | 2697 | # A reference to a Vulnerability Disclosure Report (VDR) which provides the software supplier's analysis and findings describing the impact (or lack of impact) that reported vulnerabilities have on packages or products in the supplier's SBOM as defined in [NIST SP 800-161 Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations](https://csrc.nist.gov/pubs/sp/800/161/r1/final). |
3184 | vulnerabilityDisclosureReport = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityDisclosureReport" | 2698 | vulnerabilityDisclosureReport = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityDisclosureReport" |
3185 | # A reference to a Vulnerability Exploitability eXchange (VEX) statement which provides information on whether a product is impacted by a specific vulnerability in an included package and, if affected, whether there are actions recommended to remediate. See also [NTIA VEX one-page summary](https://ntia.gov/files/ntia/publications/vex_one-page_summary.pdf). | 2699 | # A reference to a Vulnerability Exploitability eXchange (VEX) statement which provides information on whether a product is impacted by a specific vulnerability in an included package and, if affected, whether there are actions recommended to remediate. See also [NTIA VEX one-page summary](https://ntia.gov/files/ntia/publications/vex_one-page_summary.pdf). |
3186 | vulnerabilityExploitabilityAssessment = "https://spdx.org/rdf/3.0.0/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment" | 2700 | vulnerabilityExploitabilityAssessment = "https://spdx.org/rdf/3.0.1/terms/Core/ExternalRefType/vulnerabilityExploitabilityAssessment" |
3187 | 2701 | ||
3188 | 2702 | ||
3189 | # A mathematical algorithm that maps data of arbitrary size to a bit string. | 2703 | # A mathematical algorithm that maps data of arbitrary size to a bit string. |
3190 | @register("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm", compact_type="HashAlgorithm", abstract=False) | 2704 | @register("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm", compact_type="HashAlgorithm", abstract=False) |
3191 | class HashAlgorithm(SHACLObject): | 2705 | class HashAlgorithm(SHACLObject): |
3192 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2706 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3193 | NAMED_INDIVIDUALS = { | 2707 | NAMED_INDIVIDUALS = { |
3194 | "blake2b256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256", | 2708 | "adler32": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32", |
3195 | "blake2b384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384", | 2709 | "blake2b256": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256", |
3196 | "blake2b512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512", | 2710 | "blake2b384": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384", |
3197 | "blake3": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3", | 2711 | "blake2b512": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512", |
3198 | "crystalsDilithium": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium", | 2712 | "blake3": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3", |
3199 | "crystalsKyber": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber", | 2713 | "crystalsDilithium": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium", |
3200 | "falcon": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon", | 2714 | "crystalsKyber": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber", |
3201 | "md2": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2", | 2715 | "falcon": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon", |
3202 | "md4": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4", | 2716 | "md2": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2", |
3203 | "md5": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5", | 2717 | "md4": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4", |
3204 | "md6": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6", | 2718 | "md5": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5", |
3205 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other", | 2719 | "md6": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6", |
3206 | "sha1": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1", | 2720 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other", |
3207 | "sha224": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224", | 2721 | "sha1": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1", |
3208 | "sha256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256", | 2722 | "sha224": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224", |
3209 | "sha384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384", | 2723 | "sha256": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256", |
3210 | "sha3_224": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224", | 2724 | "sha384": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384", |
3211 | "sha3_256": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256", | 2725 | "sha3_224": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224", |
3212 | "sha3_384": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384", | 2726 | "sha3_256": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256", |
3213 | "sha3_512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512", | 2727 | "sha3_384": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384", |
3214 | "sha512": "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512", | 2728 | "sha3_512": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512", |
2729 | "sha512": "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512", | ||
3215 | } | 2730 | } |
3216 | # blake2b algorithm with a digest size of 256 https://datatracker.ietf.org/doc/html/rfc7693#section-4 | 2731 | # Adler-32 checksum is part of the widely used zlib compression library as defined in [RFC 1950](https://datatracker.ietf.org/doc/rfc1950/) Section 2.3. |
3217 | blake2b256 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256" | 2732 | adler32 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32" |
3218 | # blake2b algorithm with a digest size of 384 https://datatracker.ietf.org/doc/html/rfc7693#section-4 | 2733 | # BLAKE2b algorithm with a digest size of 256, as defined in [RFC 7693](https://datatracker.ietf.org/doc/rfc7693/) Section 4. |
3219 | blake2b384 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384" | 2734 | blake2b256 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256" |
3220 | # blake2b algorithm with a digest size of 512 https://datatracker.ietf.org/doc/html/rfc7693#section-4 | 2735 | # BLAKE2b algorithm with a digest size of 384, as defined in [RFC 7693](https://datatracker.ietf.org/doc/rfc7693/) Section 4. |
3221 | blake2b512 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512" | 2736 | blake2b384 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384" |
3222 | # https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf | 2737 | # BLAKE2b algorithm with a digest size of 512, as defined in [RFC 7693](https://datatracker.ietf.org/doc/rfc7693/) Section 4. |
3223 | blake3 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3" | 2738 | blake2b512 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512" |
3224 | # https://pq-crystals.org/dilithium/index.shtml | 2739 | # [BLAKE3](https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf) |
3225 | crystalsDilithium = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium" | 2740 | blake3 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3" |
3226 | # https://pq-crystals.org/kyber/index.shtml | 2741 | # [Dilithium](https://pq-crystals.org/dilithium/) |
3227 | crystalsKyber = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber" | 2742 | crystalsDilithium = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium" |
3228 | # https://falcon-sign.info/falcon.pdf | 2743 | # [Kyber](https://pq-crystals.org/kyber/) |
3229 | falcon = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon" | 2744 | crystalsKyber = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber" |
3230 | # https://datatracker.ietf.org/doc/rfc1319/ | 2745 | # [FALCON](https://falcon-sign.info/falcon.pdf) |
3231 | md2 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2" | 2746 | falcon = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon" |
3232 | # https://datatracker.ietf.org/doc/html/rfc1186 | 2747 | # MD2 message-digest algorithm, as defined in [RFC 1319](https://datatracker.ietf.org/doc/rfc1319/). |
3233 | md4 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4" | 2748 | md2 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2" |
3234 | # https://datatracker.ietf.org/doc/html/rfc1321 | 2749 | # MD4 message-digest algorithm, as defined in [RFC 1186](https://datatracker.ietf.org/doc/rfc1186/). |
3235 | md5 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5" | 2750 | md4 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4" |
3236 | # https://people.csail.mit.edu/rivest/pubs/RABCx08.pdf | 2751 | # MD5 message-digest algorithm, as defined in [RFC 1321](https://datatracker.ietf.org/doc/rfc1321/). |
3237 | md6 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6" | 2752 | md5 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5" |
2753 | # [MD6 hash function](https://people.csail.mit.edu/rivest/pubs/RABCx08.pdf) | ||
2754 | md6 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6" | ||
3238 | # any hashing algorithm that does not exist in this list of entries | 2755 | # any hashing algorithm that does not exist in this list of entries |
3239 | other = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other" | 2756 | other = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other" |
3240 | # https://datatracker.ietf.org/doc/html/rfc3174 | 2757 | # SHA-1, a secure hashing algorithm, as defined in [RFC 3174](https://datatracker.ietf.org/doc/rfc3174/). |
3241 | sha1 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1" | 2758 | sha1 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1" |
3242 | # secure hashing algorithm with a digest length of 224 https://datatracker.ietf.org/doc/html/draft-ietf-pkix-sha224-01 | 2759 | # SHA-2 with a digest length of 224, as defined in [RFC 3874](https://datatracker.ietf.org/doc/rfc3874/). |
3243 | sha224 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224" | 2760 | sha224 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224" |
3244 | # secure hashing algorithm with a digest length of 256 https://www.rfc-editor.org/rfc/rfc4634 | 2761 | # SHA-2 with a digest length of 256, as defined in [RFC 6234](https://datatracker.ietf.org/doc/rfc6234/). |
3245 | sha256 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256" | 2762 | sha256 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256" |
3246 | # secure hashing algorithm with a digest length of 384 https://www.rfc-editor.org/rfc/rfc4634 | 2763 | # SHA-2 with a digest length of 384, as defined in [RFC 6234](https://datatracker.ietf.org/doc/rfc6234/). |
3247 | sha384 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384" | 2764 | sha384 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384" |
3248 | # sha3 with a digest length of 224 https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf | 2765 | # SHA-3 with a digest length of 224, as defined in [FIPS 202](https://csrc.nist.gov/pubs/fips/202/final). |
3249 | sha3_224 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224" | 2766 | sha3_224 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224" |
3250 | # sha3 with a digest length of 256 https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf | 2767 | # SHA-3 with a digest length of 256, as defined in [FIPS 202](https://csrc.nist.gov/pubs/fips/202/final). |
3251 | sha3_256 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256" | 2768 | sha3_256 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256" |
3252 | # sha3 with a digest length of 384 https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf | 2769 | # SHA-3 with a digest length of 384, as defined in [FIPS 202](https://csrc.nist.gov/pubs/fips/202/final). |
3253 | sha3_384 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384" | 2770 | sha3_384 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384" |
3254 | # sha3 with a digest length of 512 https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf | 2771 | # SHA-3 with a digest length of 512, as defined in [FIPS 202](https://csrc.nist.gov/pubs/fips/202/final). |
3255 | sha3_512 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512" | 2772 | sha3_512 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512" |
3256 | # secure hashing algorithm with a digest length of 512 https://www.rfc-editor.org/rfc/rfc4634 | 2773 | # SHA-2 with a digest length of 512, as defined in [RFC 6234](https://datatracker.ietf.org/doc/rfc6234/). |
3257 | sha512 = "https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512" | 2774 | sha512 = "https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512" |
3258 | 2775 | ||
3259 | 2776 | ||
3260 | # Provides an independently reproducible mechanism that permits verification of a specific Element. | 2777 | # Provides an independently reproducible mechanism that permits verification of a specific Element. |
3261 | @register("https://spdx.org/rdf/3.0.0/terms/Core/IntegrityMethod", compact_type="IntegrityMethod", abstract=True) | 2778 | @register("https://spdx.org/rdf/3.0.1/terms/Core/IntegrityMethod", compact_type="IntegrityMethod", abstract=True) |
3262 | class IntegrityMethod(SHACLObject): | 2779 | class IntegrityMethod(SHACLObject): |
3263 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2780 | NODE_KIND = NodeKind.BlankNode |
3264 | NAMED_INDIVIDUALS = { | 2781 | NAMED_INDIVIDUALS = { |
3265 | } | 2782 | } |
3266 | 2783 | ||
@@ -3272,41 +2789,41 @@ class IntegrityMethod(SHACLObject): | |||
3272 | cls._add_property( | 2789 | cls._add_property( |
3273 | "comment", | 2790 | "comment", |
3274 | StringProp(), | 2791 | StringProp(), |
3275 | iri="https://spdx.org/rdf/3.0.0/terms/Core/comment", | 2792 | iri="https://spdx.org/rdf/3.0.1/terms/Core/comment", |
3276 | compact="comment", | 2793 | compact="comment", |
3277 | ) | 2794 | ) |
3278 | 2795 | ||
3279 | 2796 | ||
3280 | # Provide an enumerated set of lifecycle phases that can provide context to relationships. | 2797 | # Provide an enumerated set of lifecycle phases that can provide context to relationships. |
3281 | @register("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType", compact_type="LifecycleScopeType", abstract=False) | 2798 | @register("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType", compact_type="LifecycleScopeType", abstract=False) |
3282 | class LifecycleScopeType(SHACLObject): | 2799 | class LifecycleScopeType(SHACLObject): |
3283 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2800 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3284 | NAMED_INDIVIDUALS = { | 2801 | NAMED_INDIVIDUALS = { |
3285 | "build": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/build", | 2802 | "build": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/build", |
3286 | "design": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/design", | 2803 | "design": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/design", |
3287 | "development": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/development", | 2804 | "development": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/development", |
3288 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/other", | 2805 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/other", |
3289 | "runtime": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/runtime", | 2806 | "runtime": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/runtime", |
3290 | "test": "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/test", | 2807 | "test": "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/test", |
3291 | } | 2808 | } |
3292 | # A relationship has specific context implications during an element's build phase, during development. | 2809 | # A relationship has specific context implications during an element's build phase, during development. |
3293 | build = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/build" | 2810 | build = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/build" |
3294 | # A relationship has specific context implications during an element's design. | 2811 | # A relationship has specific context implications during an element's design. |
3295 | design = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/design" | 2812 | design = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/design" |
3296 | # A relationship has specific context implications during development phase of an element. | 2813 | # A relationship has specific context implications during development phase of an element. |
3297 | development = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/development" | 2814 | development = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/development" |
3298 | # A relationship has other specific context information necessary to capture that the above set of enumerations does not handle. | 2815 | # A relationship has other specific context information necessary to capture that the above set of enumerations does not handle. |
3299 | other = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/other" | 2816 | other = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/other" |
3300 | # A relationship has specific context implications during the execution phase of an element. | 2817 | # A relationship has specific context implications during the execution phase of an element. |
3301 | runtime = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/runtime" | 2818 | runtime = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/runtime" |
3302 | # A relationship has specific context implications during an element's testing phase, during development. | 2819 | # A relationship has specific context implications during an element's testing phase, during development. |
3303 | test = "https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/test" | 2820 | test = "https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/test" |
3304 | 2821 | ||
3305 | 2822 | ||
3306 | # A mapping between prefixes and namespace partial URIs. | 2823 | # A mapping between prefixes and namespace partial URIs. |
3307 | @register("https://spdx.org/rdf/3.0.0/terms/Core/NamespaceMap", compact_type="NamespaceMap", abstract=False) | 2824 | @register("https://spdx.org/rdf/3.0.1/terms/Core/NamespaceMap", compact_type="NamespaceMap", abstract=False) |
3308 | class NamespaceMap(SHACLObject): | 2825 | class NamespaceMap(SHACLObject): |
3309 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2826 | NODE_KIND = NodeKind.BlankNode |
3310 | NAMED_INDIVIDUALS = { | 2827 | NAMED_INDIVIDUALS = { |
3311 | } | 2828 | } |
3312 | 2829 | ||
@@ -3314,11 +2831,11 @@ class NamespaceMap(SHACLObject): | |||
3314 | def _register_props(cls): | 2831 | def _register_props(cls): |
3315 | super()._register_props() | 2832 | super()._register_props() |
3316 | # Provides an unambiguous mechanism for conveying a URI fragment portion of an | 2833 | # Provides an unambiguous mechanism for conveying a URI fragment portion of an |
3317 | # ElementID. | 2834 | # Element ID. |
3318 | cls._add_property( | 2835 | cls._add_property( |
3319 | "namespace", | 2836 | "namespace", |
3320 | AnyURIProp(), | 2837 | AnyURIProp(), |
3321 | iri="https://spdx.org/rdf/3.0.0/terms/Core/namespace", | 2838 | iri="https://spdx.org/rdf/3.0.1/terms/Core/namespace", |
3322 | min_count=1, | 2839 | min_count=1, |
3323 | compact="namespace", | 2840 | compact="namespace", |
3324 | ) | 2841 | ) |
@@ -3326,16 +2843,16 @@ class NamespaceMap(SHACLObject): | |||
3326 | cls._add_property( | 2843 | cls._add_property( |
3327 | "prefix", | 2844 | "prefix", |
3328 | StringProp(), | 2845 | StringProp(), |
3329 | iri="https://spdx.org/rdf/3.0.0/terms/Core/prefix", | 2846 | iri="https://spdx.org/rdf/3.0.1/terms/Core/prefix", |
3330 | min_count=1, | 2847 | min_count=1, |
3331 | compact="prefix", | 2848 | compact="prefix", |
3332 | ) | 2849 | ) |
3333 | 2850 | ||
3334 | 2851 | ||
3335 | # An SPDX version 2.X compatible verification method for software packages. | 2852 | # An SPDX version 2.X compatible verification method for software packages. |
3336 | @register("https://spdx.org/rdf/3.0.0/terms/Core/PackageVerificationCode", compact_type="PackageVerificationCode", abstract=False) | 2853 | @register("https://spdx.org/rdf/3.0.1/terms/Core/PackageVerificationCode", compact_type="PackageVerificationCode", abstract=False) |
3337 | class PackageVerificationCode(IntegrityMethod): | 2854 | class PackageVerificationCode(IntegrityMethod): |
3338 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2855 | NODE_KIND = NodeKind.BlankNode |
3339 | NAMED_INDIVIDUALS = { | 2856 | NAMED_INDIVIDUALS = { |
3340 | } | 2857 | } |
3341 | 2858 | ||
@@ -3346,29 +2863,30 @@ class PackageVerificationCode(IntegrityMethod): | |||
3346 | cls._add_property( | 2863 | cls._add_property( |
3347 | "algorithm", | 2864 | "algorithm", |
3348 | EnumProp([ | 2865 | EnumProp([ |
3349 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256", "blake2b256"), | 2866 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32", "adler32"), |
3350 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384", "blake2b384"), | 2867 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256", "blake2b256"), |
3351 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512", "blake2b512"), | 2868 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384", "blake2b384"), |
3352 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3", "blake3"), | 2869 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512", "blake2b512"), |
3353 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium", "crystalsDilithium"), | 2870 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3", "blake3"), |
3354 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber", "crystalsKyber"), | 2871 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium", "crystalsDilithium"), |
3355 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon", "falcon"), | 2872 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber", "crystalsKyber"), |
3356 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2", "md2"), | 2873 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon", "falcon"), |
3357 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4", "md4"), | 2874 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2", "md2"), |
3358 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5", "md5"), | 2875 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4", "md4"), |
3359 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6", "md6"), | 2876 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5", "md5"), |
3360 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other", "other"), | 2877 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6", "md6"), |
3361 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1", "sha1"), | 2878 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other", "other"), |
3362 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224", "sha224"), | 2879 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1", "sha1"), |
3363 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256", "sha256"), | 2880 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224", "sha224"), |
3364 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384", "sha384"), | 2881 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256", "sha256"), |
3365 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224", "sha3_224"), | 2882 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384", "sha384"), |
3366 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256", "sha3_256"), | 2883 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224", "sha3_224"), |
3367 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384", "sha3_384"), | 2884 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256", "sha3_256"), |
3368 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512", "sha3_512"), | 2885 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384", "sha3_384"), |
3369 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512", "sha512"), | 2886 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512", "sha3_512"), |
2887 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512", "sha512"), | ||
3370 | ]), | 2888 | ]), |
3371 | iri="https://spdx.org/rdf/3.0.0/terms/Core/algorithm", | 2889 | iri="https://spdx.org/rdf/3.0.1/terms/Core/algorithm", |
3372 | min_count=1, | 2890 | min_count=1, |
3373 | compact="algorithm", | 2891 | compact="algorithm", |
3374 | ) | 2892 | ) |
@@ -3376,7 +2894,7 @@ class PackageVerificationCode(IntegrityMethod): | |||
3376 | cls._add_property( | 2894 | cls._add_property( |
3377 | "hashValue", | 2895 | "hashValue", |
3378 | StringProp(), | 2896 | StringProp(), |
3379 | iri="https://spdx.org/rdf/3.0.0/terms/Core/hashValue", | 2897 | iri="https://spdx.org/rdf/3.0.1/terms/Core/hashValue", |
3380 | min_count=1, | 2898 | min_count=1, |
3381 | compact="hashValue", | 2899 | compact="hashValue", |
3382 | ) | 2900 | ) |
@@ -3385,15 +2903,15 @@ class PackageVerificationCode(IntegrityMethod): | |||
3385 | cls._add_property( | 2903 | cls._add_property( |
3386 | "packageVerificationCodeExcludedFile", | 2904 | "packageVerificationCodeExcludedFile", |
3387 | ListProp(StringProp()), | 2905 | ListProp(StringProp()), |
3388 | iri="https://spdx.org/rdf/3.0.0/terms/Core/packageVerificationCodeExcludedFile", | 2906 | iri="https://spdx.org/rdf/3.0.1/terms/Core/packageVerificationCodeExcludedFile", |
3389 | compact="packageVerificationCodeExcludedFile", | 2907 | compact="packageVerificationCodeExcludedFile", |
3390 | ) | 2908 | ) |
3391 | 2909 | ||
3392 | 2910 | ||
3393 | # A tuple of two positive integers that define a range. | 2911 | # A tuple of two positive integers that define a range. |
3394 | @register("https://spdx.org/rdf/3.0.0/terms/Core/PositiveIntegerRange", compact_type="PositiveIntegerRange", abstract=False) | 2912 | @register("https://spdx.org/rdf/3.0.1/terms/Core/PositiveIntegerRange", compact_type="PositiveIntegerRange", abstract=False) |
3395 | class PositiveIntegerRange(SHACLObject): | 2913 | class PositiveIntegerRange(SHACLObject): |
3396 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2914 | NODE_KIND = NodeKind.BlankNode |
3397 | NAMED_INDIVIDUALS = { | 2915 | NAMED_INDIVIDUALS = { |
3398 | } | 2916 | } |
3399 | 2917 | ||
@@ -3404,7 +2922,7 @@ class PositiveIntegerRange(SHACLObject): | |||
3404 | cls._add_property( | 2922 | cls._add_property( |
3405 | "beginIntegerRange", | 2923 | "beginIntegerRange", |
3406 | PositiveIntegerProp(), | 2924 | PositiveIntegerProp(), |
3407 | iri="https://spdx.org/rdf/3.0.0/terms/Core/beginIntegerRange", | 2925 | iri="https://spdx.org/rdf/3.0.1/terms/Core/beginIntegerRange", |
3408 | min_count=1, | 2926 | min_count=1, |
3409 | compact="beginIntegerRange", | 2927 | compact="beginIntegerRange", |
3410 | ) | 2928 | ) |
@@ -3412,71 +2930,71 @@ class PositiveIntegerRange(SHACLObject): | |||
3412 | cls._add_property( | 2930 | cls._add_property( |
3413 | "endIntegerRange", | 2931 | "endIntegerRange", |
3414 | PositiveIntegerProp(), | 2932 | PositiveIntegerProp(), |
3415 | iri="https://spdx.org/rdf/3.0.0/terms/Core/endIntegerRange", | 2933 | iri="https://spdx.org/rdf/3.0.1/terms/Core/endIntegerRange", |
3416 | min_count=1, | 2934 | min_count=1, |
3417 | compact="endIntegerRange", | 2935 | compact="endIntegerRange", |
3418 | ) | 2936 | ) |
3419 | 2937 | ||
3420 | 2938 | ||
3421 | # Categories of presence or absence. | 2939 | # Categories of presence or absence. |
3422 | @register("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType", compact_type="PresenceType", abstract=False) | 2940 | @register("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType", compact_type="PresenceType", abstract=False) |
3423 | class PresenceType(SHACLObject): | 2941 | class PresenceType(SHACLObject): |
3424 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2942 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3425 | NAMED_INDIVIDUALS = { | 2943 | NAMED_INDIVIDUALS = { |
3426 | "no": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no", | 2944 | "no": "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no", |
3427 | "noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion", | 2945 | "noAssertion": "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion", |
3428 | "yes": "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes", | 2946 | "yes": "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes", |
3429 | } | 2947 | } |
3430 | # Indicates absence of the field. | 2948 | # Indicates absence of the field. |
3431 | no = "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no" | 2949 | no = "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no" |
3432 | # Makes no assertion about the field. | 2950 | # Makes no assertion about the field. |
3433 | noAssertion = "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion" | 2951 | noAssertion = "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion" |
3434 | # Indicates presence of the field. | 2952 | # Indicates presence of the field. |
3435 | yes = "https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes" | 2953 | yes = "https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes" |
3436 | 2954 | ||
3437 | 2955 | ||
3438 | # Enumeration of the valid profiles. | 2956 | # Enumeration of the valid profiles. |
3439 | @register("https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType", compact_type="ProfileIdentifierType", abstract=False) | 2957 | @register("https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType", compact_type="ProfileIdentifierType", abstract=False) |
3440 | class ProfileIdentifierType(SHACLObject): | 2958 | class ProfileIdentifierType(SHACLObject): |
3441 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2959 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3442 | NAMED_INDIVIDUALS = { | 2960 | NAMED_INDIVIDUALS = { |
3443 | "ai": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/ai", | 2961 | "ai": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/ai", |
3444 | "build": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/build", | 2962 | "build": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/build", |
3445 | "core": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/core", | 2963 | "core": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/core", |
3446 | "dataset": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/dataset", | 2964 | "dataset": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/dataset", |
3447 | "expandedLicensing": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/expandedLicensing", | 2965 | "expandedLicensing": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/expandedLicensing", |
3448 | "extension": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/extension", | 2966 | "extension": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/extension", |
3449 | "lite": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/lite", | 2967 | "lite": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/lite", |
3450 | "security": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/security", | 2968 | "security": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/security", |
3451 | "simpleLicensing": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/simpleLicensing", | 2969 | "simpleLicensing": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/simpleLicensing", |
3452 | "software": "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/software", | 2970 | "software": "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/software", |
3453 | } | 2971 | } |
3454 | # the element follows the AI profile specification | 2972 | # the element follows the AI profile specification |
3455 | ai = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/ai" | 2973 | ai = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/ai" |
3456 | # the element follows the Build profile specification | 2974 | # the element follows the Build profile specification |
3457 | build = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/build" | 2975 | build = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/build" |
3458 | # the element follows the Core profile specification | 2976 | # the element follows the Core profile specification |
3459 | core = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/core" | 2977 | core = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/core" |
3460 | # the element follows the Dataset profile specification | 2978 | # the element follows the Dataset profile specification |
3461 | dataset = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/dataset" | 2979 | dataset = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/dataset" |
3462 | # the element follows the expanded Licensing profile | 2980 | # the element follows the expanded Licensing profile specification |
3463 | expandedLicensing = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/expandedLicensing" | 2981 | expandedLicensing = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/expandedLicensing" |
3464 | # the element follows the Extension profile specification | 2982 | # the element follows the Extension profile specification |
3465 | extension = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/extension" | 2983 | extension = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/extension" |
3466 | # the element follows the Lite profile specification | 2984 | # the element follows the Lite profile specification |
3467 | lite = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/lite" | 2985 | lite = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/lite" |
3468 | # the element follows the Security profile specification | 2986 | # the element follows the Security profile specification |
3469 | security = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/security" | 2987 | security = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/security" |
3470 | # the element follows the simple Licensing profile | 2988 | # the element follows the simple Licensing profile specification |
3471 | simpleLicensing = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/simpleLicensing" | 2989 | simpleLicensing = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/simpleLicensing" |
3472 | # the element follows the Software profile specification | 2990 | # the element follows the Software profile specification |
3473 | software = "https://spdx.org/rdf/3.0.0/terms/Core/ProfileIdentifierType/software" | 2991 | software = "https://spdx.org/rdf/3.0.1/terms/Core/ProfileIdentifierType/software" |
3474 | 2992 | ||
3475 | 2993 | ||
3476 | # Describes a relationship between one or more elements. | 2994 | # Describes a relationship between one or more elements. |
3477 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Relationship", compact_type="Relationship", abstract=False) | 2995 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Relationship", compact_type="Relationship", abstract=False) |
3478 | class Relationship(Element): | 2996 | class Relationship(Element): |
3479 | NODE_KIND = NodeKind.BlankNodeOrIRI | 2997 | NODE_KIND = NodeKind.IRI |
3480 | ID_ALIAS = "spdxId" | 2998 | ID_ALIAS = "spdxId" |
3481 | NAMED_INDIVIDUALS = { | 2999 | NAMED_INDIVIDUALS = { |
3482 | } | 3000 | } |
@@ -3488,25 +3006,31 @@ class Relationship(Element): | |||
3488 | cls._add_property( | 3006 | cls._add_property( |
3489 | "completeness", | 3007 | "completeness", |
3490 | EnumProp([ | 3008 | EnumProp([ |
3491 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/complete", "complete"), | 3009 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete", "complete"), |
3492 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/incomplete", "incomplete"), | 3010 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete", "incomplete"), |
3493 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/noAssertion", "noAssertion"), | 3011 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion", "noAssertion"), |
3494 | ]), | 3012 | ]), |
3495 | iri="https://spdx.org/rdf/3.0.0/terms/Core/completeness", | 3013 | iri="https://spdx.org/rdf/3.0.1/terms/Core/completeness", |
3496 | compact="completeness", | 3014 | compact="completeness", |
3497 | ) | 3015 | ) |
3498 | # Specifies the time from which an element is no longer applicable / valid. | 3016 | # Specifies the time from which an element is no longer applicable / valid. |
3499 | cls._add_property( | 3017 | cls._add_property( |
3500 | "endTime", | 3018 | "endTime", |
3501 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 3019 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
3502 | iri="https://spdx.org/rdf/3.0.0/terms/Core/endTime", | 3020 | iri="https://spdx.org/rdf/3.0.1/terms/Core/endTime", |
3503 | compact="endTime", | 3021 | compact="endTime", |
3504 | ) | 3022 | ) |
3505 | # References the Element on the left-hand side of a relationship. | 3023 | # References the Element on the left-hand side of a relationship. |
3506 | cls._add_property( | 3024 | cls._add_property( |
3507 | "from_", | 3025 | "from_", |
3508 | ObjectProp(Element, True), | 3026 | ObjectProp(Element, True, context=[ |
3509 | iri="https://spdx.org/rdf/3.0.0/terms/Core/from", | 3027 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
3028 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
3029 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
3030 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
3031 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
3032 | ],), | ||
3033 | iri="https://spdx.org/rdf/3.0.1/terms/Core/from", | ||
3510 | min_count=1, | 3034 | min_count=1, |
3511 | compact="from", | 3035 | compact="from", |
3512 | ) | 3036 | ) |
@@ -3514,67 +3038,67 @@ class Relationship(Element): | |||
3514 | cls._add_property( | 3038 | cls._add_property( |
3515 | "relationshipType", | 3039 | "relationshipType", |
3516 | EnumProp([ | 3040 | EnumProp([ |
3517 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/affects", "affects"), | 3041 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects", "affects"), |
3518 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/amendedBy", "amendedBy"), | 3042 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy", "amendedBy"), |
3519 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/ancestorOf", "ancestorOf"), | 3043 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf", "ancestorOf"), |
3520 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/availableFrom", "availableFrom"), | 3044 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom", "availableFrom"), |
3521 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/configures", "configures"), | 3045 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures", "configures"), |
3522 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/contains", "contains"), | 3046 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains", "contains"), |
3523 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/coordinatedBy", "coordinatedBy"), | 3047 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy", "coordinatedBy"), |
3524 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/copiedTo", "copiedTo"), | 3048 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo", "copiedTo"), |
3525 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/delegatedTo", "delegatedTo"), | 3049 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo", "delegatedTo"), |
3526 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/dependsOn", "dependsOn"), | 3050 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn", "dependsOn"), |
3527 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/descendantOf", "descendantOf"), | 3051 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf", "descendantOf"), |
3528 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/describes", "describes"), | 3052 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes", "describes"), |
3529 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/doesNotAffect", "doesNotAffect"), | 3053 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect", "doesNotAffect"), |
3530 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/expandsTo", "expandsTo"), | 3054 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo", "expandsTo"), |
3531 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/exploitCreatedBy", "exploitCreatedBy"), | 3055 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy", "exploitCreatedBy"), |
3532 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedBy", "fixedBy"), | 3056 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy", "fixedBy"), |
3533 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedIn", "fixedIn"), | 3057 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn", "fixedIn"), |
3534 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/foundBy", "foundBy"), | 3058 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy", "foundBy"), |
3535 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/generates", "generates"), | 3059 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates", "generates"), |
3536 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAddedFile", "hasAddedFile"), | 3060 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile", "hasAddedFile"), |
3537 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssessmentFor", "hasAssessmentFor"), | 3061 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor", "hasAssessmentFor"), |
3538 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssociatedVulnerability", "hasAssociatedVulnerability"), | 3062 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability", "hasAssociatedVulnerability"), |
3539 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasConcludedLicense", "hasConcludedLicense"), | 3063 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense", "hasConcludedLicense"), |
3540 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDataFile", "hasDataFile"), | 3064 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile", "hasDataFile"), |
3541 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeclaredLicense", "hasDeclaredLicense"), | 3065 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense", "hasDeclaredLicense"), |
3542 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeletedFile", "hasDeletedFile"), | 3066 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile", "hasDeletedFile"), |
3543 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDependencyManifest", "hasDependencyManifest"), | 3067 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest", "hasDependencyManifest"), |
3544 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDistributionArtifact", "hasDistributionArtifact"), | 3068 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact", "hasDistributionArtifact"), |
3545 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDocumentation", "hasDocumentation"), | 3069 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation", "hasDocumentation"), |
3546 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDynamicLink", "hasDynamicLink"), | 3070 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDynamicLink", "hasDynamicLink"), |
3547 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasEvidence", "hasEvidence"), | 3071 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence", "hasEvidence"), |
3548 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasExample", "hasExample"), | 3072 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample", "hasExample"), |
3549 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasHost", "hasHost"), | 3073 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost", "hasHost"), |
3550 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasInputs", "hasInputs"), | 3074 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput", "hasInput"), |
3551 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasMetadata", "hasMetadata"), | 3075 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata", "hasMetadata"), |
3552 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalComponent", "hasOptionalComponent"), | 3076 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent", "hasOptionalComponent"), |
3553 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalDependency", "hasOptionalDependency"), | 3077 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency", "hasOptionalDependency"), |
3554 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOutputs", "hasOutputs"), | 3078 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput", "hasOutput"), |
3555 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasPrerequsite", "hasPrerequsite"), | 3079 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite", "hasPrerequisite"), |
3556 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasProvidedDependency", "hasProvidedDependency"), | 3080 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency", "hasProvidedDependency"), |
3557 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasRequirement", "hasRequirement"), | 3081 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement", "hasRequirement"), |
3558 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasSpecification", "hasSpecification"), | 3082 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification", "hasSpecification"), |
3559 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasStaticLink", "hasStaticLink"), | 3083 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasStaticLink", "hasStaticLink"), |
3560 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTest", "hasTest"), | 3084 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest", "hasTest"), |
3561 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTestCase", "hasTestCase"), | 3085 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase", "hasTestCase"), |
3562 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasVariant", "hasVariant"), | 3086 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant", "hasVariant"), |
3563 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/invokedBy", "invokedBy"), | 3087 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy", "invokedBy"), |
3564 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/modifiedBy", "modifiedBy"), | 3088 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy", "modifiedBy"), |
3565 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/other", "other"), | 3089 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other", "other"), |
3566 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/packagedBy", "packagedBy"), | 3090 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy", "packagedBy"), |
3567 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/patchedBy", "patchedBy"), | 3091 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy", "patchedBy"), |
3568 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/publishedBy", "publishedBy"), | 3092 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy", "publishedBy"), |
3569 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/reportedBy", "reportedBy"), | 3093 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy", "reportedBy"), |
3570 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/republishedBy", "republishedBy"), | 3094 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy", "republishedBy"), |
3571 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/serializedInArtifact", "serializedInArtifact"), | 3095 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact", "serializedInArtifact"), |
3572 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/testedOn", "testedOn"), | 3096 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn", "testedOn"), |
3573 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/trainedOn", "trainedOn"), | 3097 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn", "trainedOn"), |
3574 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/underInvestigationFor", "underInvestigationFor"), | 3098 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor", "underInvestigationFor"), |
3575 | ("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/usesTool", "usesTool"), | 3099 | ("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool", "usesTool"), |
3576 | ]), | 3100 | ]), |
3577 | iri="https://spdx.org/rdf/3.0.0/terms/Core/relationshipType", | 3101 | iri="https://spdx.org/rdf/3.0.1/terms/Core/relationshipType", |
3578 | min_count=1, | 3102 | min_count=1, |
3579 | compact="relationshipType", | 3103 | compact="relationshipType", |
3580 | ) | 3104 | ) |
@@ -3582,225 +3106,231 @@ class Relationship(Element): | |||
3582 | cls._add_property( | 3106 | cls._add_property( |
3583 | "startTime", | 3107 | "startTime", |
3584 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 3108 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
3585 | iri="https://spdx.org/rdf/3.0.0/terms/Core/startTime", | 3109 | iri="https://spdx.org/rdf/3.0.1/terms/Core/startTime", |
3586 | compact="startTime", | 3110 | compact="startTime", |
3587 | ) | 3111 | ) |
3588 | # References an Element on the right-hand side of a relationship. | 3112 | # References an Element on the right-hand side of a relationship. |
3589 | cls._add_property( | 3113 | cls._add_property( |
3590 | "to", | 3114 | "to", |
3591 | ListProp(ObjectProp(Element, False)), | 3115 | ListProp(ObjectProp(Element, False, context=[ |
3592 | iri="https://spdx.org/rdf/3.0.0/terms/Core/to", | 3116 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
3117 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
3118 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
3119 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
3120 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
3121 | ],)), | ||
3122 | iri="https://spdx.org/rdf/3.0.1/terms/Core/to", | ||
3593 | min_count=1, | 3123 | min_count=1, |
3594 | compact="to", | 3124 | compact="to", |
3595 | ) | 3125 | ) |
3596 | 3126 | ||
3597 | 3127 | ||
3598 | # Indicates whether a relationship is known to be complete, incomplete, or if no assertion is made with respect to relationship completeness. | 3128 | # Indicates whether a relationship is known to be complete, incomplete, or if no assertion is made with respect to relationship completeness. |
3599 | @register("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness", compact_type="RelationshipCompleteness", abstract=False) | 3129 | @register("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness", compact_type="RelationshipCompleteness", abstract=False) |
3600 | class RelationshipCompleteness(SHACLObject): | 3130 | class RelationshipCompleteness(SHACLObject): |
3601 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3131 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3602 | NAMED_INDIVIDUALS = { | 3132 | NAMED_INDIVIDUALS = { |
3603 | "complete": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/complete", | 3133 | "complete": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete", |
3604 | "incomplete": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/incomplete", | 3134 | "incomplete": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete", |
3605 | "noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/noAssertion", | 3135 | "noAssertion": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion", |
3606 | } | 3136 | } |
3607 | # The relationship is known to be exhaustive. | 3137 | # The relationship is known to be exhaustive. |
3608 | complete = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/complete" | 3138 | complete = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete" |
3609 | # The relationship is known not to be exhaustive. | 3139 | # The relationship is known not to be exhaustive. |
3610 | incomplete = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/incomplete" | 3140 | incomplete = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete" |
3611 | # No assertion can be made about the completeness of the relationship. | 3141 | # No assertion can be made about the completeness of the relationship. |
3612 | noAssertion = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipCompleteness/noAssertion" | 3142 | noAssertion = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion" |
3613 | 3143 | ||
3614 | 3144 | ||
3615 | # Information about the relationship between two Elements. | 3145 | # Information about the relationship between two Elements. |
3616 | @register("https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType", compact_type="RelationshipType", abstract=False) | 3146 | @register("https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType", compact_type="RelationshipType", abstract=False) |
3617 | class RelationshipType(SHACLObject): | 3147 | class RelationshipType(SHACLObject): |
3618 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3148 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3619 | NAMED_INDIVIDUALS = { | 3149 | NAMED_INDIVIDUALS = { |
3620 | "affects": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/affects", | 3150 | "affects": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects", |
3621 | "amendedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/amendedBy", | 3151 | "amendedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy", |
3622 | "ancestorOf": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/ancestorOf", | 3152 | "ancestorOf": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf", |
3623 | "availableFrom": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/availableFrom", | 3153 | "availableFrom": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom", |
3624 | "configures": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/configures", | 3154 | "configures": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures", |
3625 | "contains": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/contains", | 3155 | "contains": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains", |
3626 | "coordinatedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/coordinatedBy", | 3156 | "coordinatedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy", |
3627 | "copiedTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/copiedTo", | 3157 | "copiedTo": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo", |
3628 | "delegatedTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/delegatedTo", | 3158 | "delegatedTo": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo", |
3629 | "dependsOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/dependsOn", | 3159 | "dependsOn": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn", |
3630 | "descendantOf": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/descendantOf", | 3160 | "descendantOf": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf", |
3631 | "describes": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/describes", | 3161 | "describes": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes", |
3632 | "doesNotAffect": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/doesNotAffect", | 3162 | "doesNotAffect": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect", |
3633 | "expandsTo": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/expandsTo", | 3163 | "expandsTo": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo", |
3634 | "exploitCreatedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/exploitCreatedBy", | 3164 | "exploitCreatedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy", |
3635 | "fixedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedBy", | 3165 | "fixedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy", |
3636 | "fixedIn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedIn", | 3166 | "fixedIn": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn", |
3637 | "foundBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/foundBy", | 3167 | "foundBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy", |
3638 | "generates": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/generates", | 3168 | "generates": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates", |
3639 | "hasAddedFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAddedFile", | 3169 | "hasAddedFile": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile", |
3640 | "hasAssessmentFor": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssessmentFor", | 3170 | "hasAssessmentFor": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor", |
3641 | "hasAssociatedVulnerability": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssociatedVulnerability", | 3171 | "hasAssociatedVulnerability": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability", |
3642 | "hasConcludedLicense": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasConcludedLicense", | 3172 | "hasConcludedLicense": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense", |
3643 | "hasDataFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDataFile", | 3173 | "hasDataFile": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile", |
3644 | "hasDeclaredLicense": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeclaredLicense", | 3174 | "hasDeclaredLicense": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense", |
3645 | "hasDeletedFile": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeletedFile", | 3175 | "hasDeletedFile": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile", |
3646 | "hasDependencyManifest": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDependencyManifest", | 3176 | "hasDependencyManifest": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest", |
3647 | "hasDistributionArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDistributionArtifact", | 3177 | "hasDistributionArtifact": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact", |
3648 | "hasDocumentation": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDocumentation", | 3178 | "hasDocumentation": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation", |
3649 | "hasDynamicLink": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDynamicLink", | 3179 | "hasDynamicLink": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDynamicLink", |
3650 | "hasEvidence": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasEvidence", | 3180 | "hasEvidence": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence", |
3651 | "hasExample": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasExample", | 3181 | "hasExample": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample", |
3652 | "hasHost": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasHost", | 3182 | "hasHost": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost", |
3653 | "hasInputs": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasInputs", | 3183 | "hasInput": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput", |
3654 | "hasMetadata": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasMetadata", | 3184 | "hasMetadata": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata", |
3655 | "hasOptionalComponent": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalComponent", | 3185 | "hasOptionalComponent": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent", |
3656 | "hasOptionalDependency": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalDependency", | 3186 | "hasOptionalDependency": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency", |
3657 | "hasOutputs": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOutputs", | 3187 | "hasOutput": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput", |
3658 | "hasPrerequsite": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasPrerequsite", | 3188 | "hasPrerequisite": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite", |
3659 | "hasProvidedDependency": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasProvidedDependency", | 3189 | "hasProvidedDependency": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency", |
3660 | "hasRequirement": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasRequirement", | 3190 | "hasRequirement": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement", |
3661 | "hasSpecification": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasSpecification", | 3191 | "hasSpecification": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification", |
3662 | "hasStaticLink": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasStaticLink", | 3192 | "hasStaticLink": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasStaticLink", |
3663 | "hasTest": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTest", | 3193 | "hasTest": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest", |
3664 | "hasTestCase": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTestCase", | 3194 | "hasTestCase": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase", |
3665 | "hasVariant": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasVariant", | 3195 | "hasVariant": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant", |
3666 | "invokedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/invokedBy", | 3196 | "invokedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy", |
3667 | "modifiedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/modifiedBy", | 3197 | "modifiedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy", |
3668 | "other": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/other", | 3198 | "other": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other", |
3669 | "packagedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/packagedBy", | 3199 | "packagedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy", |
3670 | "patchedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/patchedBy", | 3200 | "patchedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy", |
3671 | "publishedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/publishedBy", | 3201 | "publishedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy", |
3672 | "reportedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/reportedBy", | 3202 | "reportedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy", |
3673 | "republishedBy": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/republishedBy", | 3203 | "republishedBy": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy", |
3674 | "serializedInArtifact": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/serializedInArtifact", | 3204 | "serializedInArtifact": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact", |
3675 | "testedOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/testedOn", | 3205 | "testedOn": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn", |
3676 | "trainedOn": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/trainedOn", | 3206 | "trainedOn": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn", |
3677 | "underInvestigationFor": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/underInvestigationFor", | 3207 | "underInvestigationFor": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor", |
3678 | "usesTool": "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/usesTool", | 3208 | "usesTool": "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool", |
3679 | } | 3209 | } |
3680 | # (Security/VEX) The `from` vulnerability affect each `to` Element | 3210 | # The `from` Vulnerability affects each `to` Element. The use of the `affects` type is constrained to `VexAffectedVulnAssessmentRelationship` classed relationships. |
3681 | affects = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/affects" | 3211 | affects = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects" |
3682 | # The `from` Element is amended by each `to` Element | 3212 | # The `from` Element is amended by each `to` Element. |
3683 | amendedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/amendedBy" | 3213 | amendedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy" |
3684 | # The `from` Element is an ancestor of each `to` Element | 3214 | # The `from` Element is an ancestor of each `to` Element. |
3685 | ancestorOf = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/ancestorOf" | 3215 | ancestorOf = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf" |
3686 | # The `from` Element is available from the additional supplier described by each `to` Element | 3216 | # The `from` Element is available from the additional supplier described by each `to` Element. |
3687 | availableFrom = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/availableFrom" | 3217 | availableFrom = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom" |
3688 | # The `from` Element is a configuration applied to each `to` Element during a LifecycleScopeType period | 3218 | # The `from` Element is a configuration applied to each `to` Element, during a LifecycleScopeType period. |
3689 | configures = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/configures" | 3219 | configures = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures" |
3690 | # The `from` Element contains each `to` Element | 3220 | # The `from` Element contains each `to` Element. |
3691 | contains = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/contains" | 3221 | contains = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains" |
3692 | # (Security) The `from` Vulnerability is coordinatedBy the `to` Agent(s) (vendor, researcher, or consumer agent) | 3222 | # The `from` Vulnerability is coordinatedBy the `to` Agent(s) (vendor, researcher, or consumer agent). |
3693 | coordinatedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/coordinatedBy" | 3223 | coordinatedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy" |
3694 | # The `from` Element has been copied to each `to` Element | 3224 | # The `from` Element has been copied to each `to` Element. |
3695 | copiedTo = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/copiedTo" | 3225 | copiedTo = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo" |
3696 | # The `from` Agent is delegating an action to the Agent of the `to` Relationship (which must be of type invokedBy) during a LifecycleScopeType. (e.g. the `to` invokedBy Relationship is being done on behalf of `from`) | 3226 | # The `from` Agent is delegating an action to the Agent of the `to` Relationship (which must be of type invokedBy), during a LifecycleScopeType (e.g. the `to` invokedBy Relationship is being done on behalf of `from`). |
3697 | delegatedTo = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/delegatedTo" | 3227 | delegatedTo = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo" |
3698 | # The `from` Element depends on each `to` Element during a LifecycleScopeType period. | 3228 | # The `from` Element depends on each `to` Element, during a LifecycleScopeType period. |
3699 | dependsOn = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/dependsOn" | 3229 | dependsOn = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn" |
3700 | # The `from` Element is a descendant of each `to` Element | 3230 | # The `from` Element is a descendant of each `to` Element. |
3701 | descendantOf = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/descendantOf" | 3231 | descendantOf = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf" |
3702 | # The `from` Element describes each `to` Element. To denote the root(s) of a tree of elements in a collection, the rootElement property should be used. | 3232 | # The `from` Element describes each `to` Element. To denote the root(s) of a tree of elements in a collection, the rootElement property should be used. |
3703 | describes = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/describes" | 3233 | describes = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes" |
3704 | # (Security/VEX) The `from` Vulnerability has no impact on each `to` Element | 3234 | # The `from` Vulnerability has no impact on each `to` Element. The use of the `doesNotAffect` is constrained to `VexNotAffectedVulnAssessmentRelationship` classed relationships. |
3705 | doesNotAffect = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/doesNotAffect" | 3235 | doesNotAffect = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect" |
3706 | # The `from` archive expands out as an artifact described by each `to` Element | 3236 | # The `from` archive expands out as an artifact described by each `to` Element. |
3707 | expandsTo = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/expandsTo" | 3237 | expandsTo = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo" |
3708 | # (Security) The `from` Vulnerability has had an exploit created against it by each `to` Agent | 3238 | # The `from` Vulnerability has had an exploit created against it by each `to` Agent. |
3709 | exploitCreatedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/exploitCreatedBy" | 3239 | exploitCreatedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy" |
3710 | # (Security) Designates a `from` Vulnerability has been fixed by the `to` Agent(s) | 3240 | # Designates a `from` Vulnerability has been fixed by the `to` Agent(s). |
3711 | fixedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedBy" | 3241 | fixedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy" |
3712 | # (Security/VEX) A `from` Vulnerability has been fixed in each of the `to` Element(s) | 3242 | # A `from` Vulnerability has been fixed in each `to` Element. The use of the `fixedIn` type is constrained to `VexFixedVulnAssessmentRelationship` classed relationships. |
3713 | fixedIn = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/fixedIn" | 3243 | fixedIn = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn" |
3714 | # (Security) Designates a `from` Vulnerability was originally discovered by the `to` Agent(s) | 3244 | # Designates a `from` Vulnerability was originally discovered by the `to` Agent(s). |
3715 | foundBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/foundBy" | 3245 | foundBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy" |
3716 | # The `from` Element generates each `to` Element | 3246 | # The `from` Element generates each `to` Element. |
3717 | generates = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/generates" | 3247 | generates = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates" |
3718 | # Every `to` Element is is a file added to the `from` Element (`from` hasAddedFile `to`) | 3248 | # Every `to` Element is a file added to the `from` Element (`from` hasAddedFile `to`). |
3719 | hasAddedFile = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAddedFile" | 3249 | hasAddedFile = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile" |
3720 | # (Security) Relates a `from` Vulnerability and each `to` Element(s) with a security assessment. To be used with `VulnAssessmentRelationship` types | 3250 | # Relates a `from` Vulnerability and each `to` Element with a security assessment. To be used with `VulnAssessmentRelationship` types. |
3721 | hasAssessmentFor = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssessmentFor" | 3251 | hasAssessmentFor = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor" |
3722 | # (Security) Used to associate a `from` Artifact with each `to` Vulnerability | 3252 | # Used to associate a `from` Artifact with each `to` Vulnerability. |
3723 | hasAssociatedVulnerability = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasAssociatedVulnerability" | 3253 | hasAssociatedVulnerability = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability" |
3724 | # The `from` Software Artifact is concluded by the SPDX data creator to be governed by each `to` license | 3254 | # The `from` SoftwareArtifact is concluded by the SPDX data creator to be governed by each `to` license. |
3725 | hasConcludedLicense = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasConcludedLicense" | 3255 | hasConcludedLicense = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense" |
3726 | # The `from` Element treats each `to` Element as a data file | 3256 | # The `from` Element treats each `to` Element as a data file. A data file is an artifact that stores data required or optional for the `from` Element's functionality. A data file can be a database file, an index file, a log file, an AI model file, a calibration data file, a temporary file, a backup file, and more. For AI training dataset, test dataset, test artifact, configuration data, build input data, and build output data, please consider using the more specific relationship types: `trainedOn`, `testedOn`, `hasTest`, `configures`, `hasInput`, and `hasOutput`, respectively. This relationship does not imply dependency. |
3727 | hasDataFile = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDataFile" | 3257 | hasDataFile = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile" |
3728 | # The `from` Software Artifact was discovered to actually contain each `to` license, for example as detected by use of automated tooling. | 3258 | # The `from` SoftwareArtifact was discovered to actually contain each `to` license, for example as detected by use of automated tooling. |
3729 | hasDeclaredLicense = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeclaredLicense" | 3259 | hasDeclaredLicense = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense" |
3730 | # Every `to` Element is a file deleted from the `from` Element (`from` hasDeletedFile `to`) | 3260 | # Every `to` Element is a file deleted from the `from` Element (`from` hasDeletedFile `to`). |
3731 | hasDeletedFile = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDeletedFile" | 3261 | hasDeletedFile = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile" |
3732 | # The `from` Element has manifest files that contain dependency information in each `to` Element | 3262 | # The `from` Element has manifest files that contain dependency information in each `to` Element. |
3733 | hasDependencyManifest = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDependencyManifest" | 3263 | hasDependencyManifest = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest" |
3734 | # The `from` Element is distributed as an artifact in each Element `to`, (e.g. an RPM or archive file) | 3264 | # The `from` Element is distributed as an artifact in each `to` Element (e.g. an RPM or archive file). |
3735 | hasDistributionArtifact = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDistributionArtifact" | 3265 | hasDistributionArtifact = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact" |
3736 | # The `from` Element is documented by each `to` Element | 3266 | # The `from` Element is documented by each `to` Element. |
3737 | hasDocumentation = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDocumentation" | 3267 | hasDocumentation = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation" |
3738 | # The `from` Element dynamically links in each `to` Element, during a LifecycleScopeType period. | 3268 | # The `from` Element dynamically links in each `to` Element, during a LifecycleScopeType period. |
3739 | hasDynamicLink = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasDynamicLink" | 3269 | hasDynamicLink = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDynamicLink" |
3740 | # (Dataset) Every `to` Element is considered as evidence for the `from` Element (`from` hasEvidence `to`) | 3270 | # Every `to` Element is considered as evidence for the `from` Element (`from` hasEvidence `to`). |
3741 | hasEvidence = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasEvidence" | 3271 | hasEvidence = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence" |
3742 | # Every `to` Element is an example for the `from` Element (`from` hasExample `to`) | 3272 | # Every `to` Element is an example for the `from` Element (`from` hasExample `to`). |
3743 | hasExample = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasExample" | 3273 | hasExample = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample" |
3744 | # The `from` Build was run on the `to` Element during a LifecycleScopeType period (e.g. The host that the build runs on) | 3274 | # The `from` Build was run on the `to` Element during a LifecycleScopeType period (e.g. the host that the build runs on). |
3745 | hasHost = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasHost" | 3275 | hasHost = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost" |
3746 | # The `from` Build has each `to` Elements as an input during a LifecycleScopeType period. | 3276 | # The `from` Build has each `to` Element as an input, during a LifecycleScopeType period. |
3747 | hasInputs = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasInputs" | 3277 | hasInput = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput" |
3748 | # Every `to` Element is metadata about the `from` Element (`from` hasMetadata `to`) | 3278 | # Every `to` Element is metadata about the `from` Element (`from` hasMetadata `to`). |
3749 | hasMetadata = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasMetadata" | 3279 | hasMetadata = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata" |
3750 | # Every `to` Element is an optional component of the `from` Element (`from` hasOptionalComponent `to`) | 3280 | # Every `to` Element is an optional component of the `from` Element (`from` hasOptionalComponent `to`). |
3751 | hasOptionalComponent = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalComponent" | 3281 | hasOptionalComponent = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent" |
3752 | # The `from` Element optionally depends on each `to` Element during a LifecycleScopeType period | 3282 | # The `from` Element optionally depends on each `to` Element, during a LifecycleScopeType period. |
3753 | hasOptionalDependency = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOptionalDependency" | 3283 | hasOptionalDependency = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency" |
3754 | # The `from` Build element generates each `to` Element as an output during a LifecycleScopeType period. | 3284 | # The `from` Build element generates each `to` Element as an output, during a LifecycleScopeType period. |
3755 | hasOutputs = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasOutputs" | 3285 | hasOutput = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput" |
3756 | # The `from` Element has a prerequsite on each `to` Element, during a LifecycleScopeType period | 3286 | # The `from` Element has a prerequisite on each `to` Element, during a LifecycleScopeType period. |
3757 | hasPrerequsite = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasPrerequsite" | 3287 | hasPrerequisite = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite" |
3758 | # The `from` Element has a dependency on each `to` Element, but dependency is not in the distributed artifact, but assumed to be provided, during a LifecycleScopeType period | 3288 | # The `from` Element has a dependency on each `to` Element, dependency is not in the distributed artifact, but assumed to be provided, during a LifecycleScopeType period. |
3759 | hasProvidedDependency = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasProvidedDependency" | 3289 | hasProvidedDependency = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency" |
3760 | # The `from` Element has a requirement on each `to` Element, during a LifecycleScopeType period | 3290 | # The `from` Element has a requirement on each `to` Element, during a LifecycleScopeType period. |
3761 | hasRequirement = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasRequirement" | 3291 | hasRequirement = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement" |
3762 | # Every `to` Element is a specification for the `from` Element (`from` hasSpecification `to`), during a LifecycleScopeType period | 3292 | # Every `to` Element is a specification for the `from` Element (`from` hasSpecification `to`), during a LifecycleScopeType period. |
3763 | hasSpecification = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasSpecification" | 3293 | hasSpecification = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification" |
3764 | # The `from` Element statically links in each `to` Element, during a LifecycleScopeType period | 3294 | # The `from` Element statically links in each `to` Element, during a LifecycleScopeType period. |
3765 | hasStaticLink = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasStaticLink" | 3295 | hasStaticLink = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasStaticLink" |
3766 | # Every `to` Element is a test artifact for the `from` Element (`from` hasTest `to`), during a LifecycleScopeType period | 3296 | # Every `to` Element is a test artifact for the `from` Element (`from` hasTest `to`), during a LifecycleScopeType period. |
3767 | hasTest = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTest" | 3297 | hasTest = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest" |
3768 | # Every `to` Element is a test case for the `from` Element (`from` hasTestCase `to`) | 3298 | # Every `to` Element is a test case for the `from` Element (`from` hasTestCase `to`). |
3769 | hasTestCase = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasTestCase" | 3299 | hasTestCase = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase" |
3770 | # Every `to` Element is a variant the `from` Element (`from` hasVariant `to`) | 3300 | # Every `to` Element is a variant the `from` Element (`from` hasVariant `to`). |
3771 | hasVariant = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/hasVariant" | 3301 | hasVariant = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant" |
3772 | # The `from` Element was invoked by the `to` Agent during a LifecycleScopeType period (for example, a Build element that describes a build step) | 3302 | # The `from` Element was invoked by the `to` Agent, during a LifecycleScopeType period (for example, a Build element that describes a build step). |
3773 | invokedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/invokedBy" | 3303 | invokedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy" |
3774 | # The `from` Element is modified by each `to` Element | 3304 | # The `from` Element is modified by each `to` Element. |
3775 | modifiedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/modifiedBy" | 3305 | modifiedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy" |
3776 | # Every `to` Element is related to the `from` Element where the relationship type is not described by any of the SPDX relationhip types (this relationship is directionless) | 3306 | # Every `to` Element is related to the `from` Element where the relationship type is not described by any of the SPDX relationship types (this relationship is directionless). |
3777 | other = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/other" | 3307 | other = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other" |
3778 | # Every `to` Element is a packaged instance of the `from` Element (`from` packagedBy `to`) | 3308 | # Every `to` Element is a packaged instance of the `from` Element (`from` packagedBy `to`). |
3779 | packagedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/packagedBy" | 3309 | packagedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy" |
3780 | # Every `to` Element is a patch for the `from` Element (`from` patchedBy `to`) | 3310 | # Every `to` Element is a patch for the `from` Element (`from` patchedBy `to`). |
3781 | patchedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/patchedBy" | 3311 | patchedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy" |
3782 | # (Security) Designates a `from` Vulnerability was made available for public use or reference by each `to` Agent | 3312 | # Designates a `from` Vulnerability was made available for public use or reference by each `to` Agent. |
3783 | publishedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/publishedBy" | 3313 | publishedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy" |
3784 | # (Security) Designates a `from` Vulnerability was first reported to a project, vendor, or tracking database for formal identification by each `to` Agent | 3314 | # Designates a `from` Vulnerability was first reported to a project, vendor, or tracking database for formal identification by each `to` Agent. |
3785 | reportedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/reportedBy" | 3315 | reportedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy" |
3786 | # (Security) Designates a `from` Vulnerability's details were tracked, aggregated, and/or enriched to improve context (i.e. NVD) by a `to` Agent(s) | 3316 | # Designates a `from` Vulnerability's details were tracked, aggregated, and/or enriched to improve context (i.e. NVD) by each `to` Agent. |
3787 | republishedBy = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/republishedBy" | 3317 | republishedBy = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy" |
3788 | # The `from` SPDXDocument can be found in a serialized form in each `to` Artifact | 3318 | # The `from` SpdxDocument can be found in a serialized form in each `to` Artifact. |
3789 | serializedInArtifact = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/serializedInArtifact" | 3319 | serializedInArtifact = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact" |
3790 | # (AI, Dataset) The `from` Element has been tested on the `to` Element | 3320 | # The `from` Element has been tested on the `to` Element(s). |
3791 | testedOn = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/testedOn" | 3321 | testedOn = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn" |
3792 | # (AI, Dataset) The `from` Element has been trained by the `to` Element(s) | 3322 | # The `from` Element has been trained on the `to` Element(s). |
3793 | trainedOn = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/trainedOn" | 3323 | trainedOn = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn" |
3794 | # (Security/VEX) The `from` Vulnerability impact is being investigated for each `to` Element | 3324 | # The `from` Vulnerability impact is being investigated for each `to` Element. The use of the `underInvestigationFor` type is constrained to `VexUnderInvestigationVulnAssessmentRelationship` classed relationships. |
3795 | underInvestigationFor = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/underInvestigationFor" | 3325 | underInvestigationFor = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor" |
3796 | # The `from` Element uses each `to` Element as a tool during a LifecycleScopeType period. | 3326 | # The `from` Element uses each `to` Element as a tool, during a LifecycleScopeType period. |
3797 | usesTool = "https://spdx.org/rdf/3.0.0/terms/Core/RelationshipType/usesTool" | 3327 | usesTool = "https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool" |
3798 | 3328 | ||
3799 | 3329 | ||
3800 | # A collection of SPDX Elements that could potentially be serialized. | 3330 | # A collection of SPDX Elements that could potentially be serialized. |
3801 | @register("https://spdx.org/rdf/3.0.0/terms/Core/SpdxDocument", compact_type="SpdxDocument", abstract=False) | 3331 | @register("https://spdx.org/rdf/3.0.1/terms/Core/SpdxDocument", compact_type="SpdxDocument", abstract=False) |
3802 | class SpdxDocument(ElementCollection): | 3332 | class SpdxDocument(ElementCollection): |
3803 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3333 | NODE_KIND = NodeKind.IRI |
3804 | ID_ALIAS = "spdxId" | 3334 | ID_ALIAS = "spdxId" |
3805 | NAMED_INDIVIDUALS = { | 3335 | NAMED_INDIVIDUALS = { |
3806 | } | 3336 | } |
@@ -3812,162 +3342,165 @@ class SpdxDocument(ElementCollection): | |||
3812 | # used. | 3342 | # used. |
3813 | cls._add_property( | 3343 | cls._add_property( |
3814 | "dataLicense", | 3344 | "dataLicense", |
3815 | ObjectProp(simplelicensing_AnyLicenseInfo, False), | 3345 | ObjectProp(simplelicensing_AnyLicenseInfo, False, context=[ |
3816 | iri="https://spdx.org/rdf/3.0.0/terms/Core/dataLicense", | 3346 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), |
3347 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
3348 | ],), | ||
3349 | iri="https://spdx.org/rdf/3.0.1/terms/Core/dataLicense", | ||
3817 | compact="dataLicense", | 3350 | compact="dataLicense", |
3818 | ) | 3351 | ) |
3819 | # Provides an ExternalMap of Element identifiers. | 3352 | # Provides an ExternalMap of Element identifiers. |
3820 | cls._add_property( | 3353 | cls._add_property( |
3821 | "imports", | 3354 | "import_", |
3822 | ListProp(ObjectProp(ExternalMap, False)), | 3355 | ListProp(ObjectProp(ExternalMap, False)), |
3823 | iri="https://spdx.org/rdf/3.0.0/terms/Core/imports", | 3356 | iri="https://spdx.org/rdf/3.0.1/terms/Core/import", |
3824 | compact="imports", | 3357 | compact="import", |
3825 | ) | 3358 | ) |
3826 | # Provides a NamespaceMap of prefixes and associated namespace partial URIs applicable to an SpdxDocument and independent of any specific serialization format or instance. | 3359 | # Provides a NamespaceMap of prefixes and associated namespace partial URIs applicable to an SpdxDocument and independent of any specific serialization format or instance. |
3827 | cls._add_property( | 3360 | cls._add_property( |
3828 | "namespaceMap", | 3361 | "namespaceMap", |
3829 | ListProp(ObjectProp(NamespaceMap, False)), | 3362 | ListProp(ObjectProp(NamespaceMap, False)), |
3830 | iri="https://spdx.org/rdf/3.0.0/terms/Core/namespaceMap", | 3363 | iri="https://spdx.org/rdf/3.0.1/terms/Core/namespaceMap", |
3831 | compact="namespaceMap", | 3364 | compact="namespaceMap", |
3832 | ) | 3365 | ) |
3833 | 3366 | ||
3834 | 3367 | ||
3835 | # Indicates the type of support that is associated with an artifact. | 3368 | # Indicates the type of support that is associated with an artifact. |
3836 | @register("https://spdx.org/rdf/3.0.0/terms/Core/SupportType", compact_type="SupportType", abstract=False) | 3369 | @register("https://spdx.org/rdf/3.0.1/terms/Core/SupportType", compact_type="SupportType", abstract=False) |
3837 | class SupportType(SHACLObject): | 3370 | class SupportType(SHACLObject): |
3838 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3371 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3839 | NAMED_INDIVIDUALS = { | 3372 | NAMED_INDIVIDUALS = { |
3840 | "deployed": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/deployed", | 3373 | "deployed": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/deployed", |
3841 | "development": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/development", | 3374 | "development": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/development", |
3842 | "endOfSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/endOfSupport", | 3375 | "endOfSupport": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/endOfSupport", |
3843 | "limitedSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/limitedSupport", | 3376 | "limitedSupport": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/limitedSupport", |
3844 | "noAssertion": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noAssertion", | 3377 | "noAssertion": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noAssertion", |
3845 | "noSupport": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noSupport", | 3378 | "noSupport": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noSupport", |
3846 | "support": "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/support", | 3379 | "support": "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/support", |
3847 | } | 3380 | } |
3848 | # in addition to being supported by the supplier, the software is known to have been deployed and is in use. For a software as a service provider, this implies the software is now available as a service. | 3381 | # in addition to being supported by the supplier, the software is known to have been deployed and is in use. For a software as a service provider, this implies the software is now available as a service. |
3849 | deployed = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/deployed" | 3382 | deployed = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/deployed" |
3850 | # the artifact is in active development and is not considered ready for formal support from the supplier. | 3383 | # the artifact is in active development and is not considered ready for formal support from the supplier. |
3851 | development = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/development" | 3384 | development = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/development" |
3852 | # there is a defined end of support for the artifact from the supplier. This may also be referred to as end of life. There is a validUntilDate that can be used to signal when support ends for the artifact. | 3385 | # there is a defined end of support for the artifact from the supplier. This may also be referred to as end of life. There is a validUntilDate that can be used to signal when support ends for the artifact. |
3853 | endOfSupport = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/endOfSupport" | 3386 | endOfSupport = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/endOfSupport" |
3854 | # the artifact has been released, and there is limited support available from the supplier. There is a validUntilDate that can provide additional information about the duration of support. | 3387 | # the artifact has been released, and there is limited support available from the supplier. There is a validUntilDate that can provide additional information about the duration of support. |
3855 | limitedSupport = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/limitedSupport" | 3388 | limitedSupport = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/limitedSupport" |
3856 | # no assertion about the type of support is made. This is considered the default if no other support type is used. | 3389 | # no assertion about the type of support is made. This is considered the default if no other support type is used. |
3857 | noAssertion = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noAssertion" | 3390 | noAssertion = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noAssertion" |
3858 | # there is no support for the artifact from the supplier, consumer assumes any support obligations. | 3391 | # there is no support for the artifact from the supplier, consumer assumes any support obligations. |
3859 | noSupport = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noSupport" | 3392 | noSupport = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noSupport" |
3860 | # the artifact has been released, and is supported from the supplier. There is a validUntilDate that can provide additional information about the duration of support. | 3393 | # the artifact has been released, and is supported from the supplier. There is a validUntilDate that can provide additional information about the duration of support. |
3861 | support = "https://spdx.org/rdf/3.0.0/terms/Core/SupportType/support" | 3394 | support = "https://spdx.org/rdf/3.0.1/terms/Core/SupportType/support" |
3862 | 3395 | ||
3863 | 3396 | ||
3864 | # An element of hardware and/or software utilized to carry out a particular function. | 3397 | # An element of hardware and/or software utilized to carry out a particular function. |
3865 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Tool", compact_type="Tool", abstract=False) | 3398 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Tool", compact_type="Tool", abstract=False) |
3866 | class Tool(Element): | 3399 | class Tool(Element): |
3867 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3400 | NODE_KIND = NodeKind.IRI |
3868 | ID_ALIAS = "spdxId" | 3401 | ID_ALIAS = "spdxId" |
3869 | NAMED_INDIVIDUALS = { | 3402 | NAMED_INDIVIDUALS = { |
3870 | } | 3403 | } |
3871 | 3404 | ||
3872 | 3405 | ||
3873 | # Categories of confidentiality level. | 3406 | # Categories of confidentiality level. |
3874 | @register("https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType", compact_type="dataset_ConfidentialityLevelType", abstract=False) | 3407 | @register("https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType", compact_type="dataset_ConfidentialityLevelType", abstract=False) |
3875 | class dataset_ConfidentialityLevelType(SHACLObject): | 3408 | class dataset_ConfidentialityLevelType(SHACLObject): |
3876 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3409 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3877 | NAMED_INDIVIDUALS = { | 3410 | NAMED_INDIVIDUALS = { |
3878 | "amber": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/amber", | 3411 | "amber": "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/amber", |
3879 | "clear": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/clear", | 3412 | "clear": "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/clear", |
3880 | "green": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/green", | 3413 | "green": "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/green", |
3881 | "red": "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/red", | 3414 | "red": "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/red", |
3882 | } | 3415 | } |
3883 | # Data points in the dataset can be shared only with specific | 3416 | # Data points in the dataset can be shared only with specific organizations and their clients on a need to know basis. |
3884 | amber = "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/amber" | 3417 | amber = "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/amber" |
3885 | # Dataset may be distributed freely, without restriction. | 3418 | # Dataset may be distributed freely, without restriction. |
3886 | clear = "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/clear" | 3419 | clear = "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/clear" |
3887 | # Dataset can be shared within a community of peers and partners. | 3420 | # Dataset can be shared within a community of peers and partners. |
3888 | green = "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/green" | 3421 | green = "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/green" |
3889 | # Data points in the dataset are highly confidential and can only be shared | 3422 | # Data points in the dataset are highly confidential and can only be shared with named recipients. |
3890 | red = "https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/red" | 3423 | red = "https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/red" |
3891 | 3424 | ||
3892 | 3425 | ||
3893 | # Availability of dataset. | 3426 | # Availability of dataset. |
3894 | @register("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType", compact_type="dataset_DatasetAvailabilityType", abstract=False) | 3427 | @register("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType", compact_type="dataset_DatasetAvailabilityType", abstract=False) |
3895 | class dataset_DatasetAvailabilityType(SHACLObject): | 3428 | class dataset_DatasetAvailabilityType(SHACLObject): |
3896 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3429 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3897 | NAMED_INDIVIDUALS = { | 3430 | NAMED_INDIVIDUALS = { |
3898 | "clickthrough": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/clickthrough", | 3431 | "clickthrough": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/clickthrough", |
3899 | "directDownload": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/directDownload", | 3432 | "directDownload": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/directDownload", |
3900 | "query": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/query", | 3433 | "query": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/query", |
3901 | "registration": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/registration", | 3434 | "registration": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/registration", |
3902 | "scrapingScript": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/scrapingScript", | 3435 | "scrapingScript": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/scrapingScript", |
3903 | } | 3436 | } |
3904 | # the dataset is not publicly available and can only be accessed | 3437 | # the dataset is not publicly available and can only be accessed after affirmatively accepting terms on a clickthrough webpage. |
3905 | clickthrough = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/clickthrough" | 3438 | clickthrough = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/clickthrough" |
3906 | # the dataset is publicly available and can be downloaded | 3439 | # the dataset is publicly available and can be downloaded directly. |
3907 | directDownload = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/directDownload" | 3440 | directDownload = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/directDownload" |
3908 | # the dataset is publicly available, but not all at once, and can only | 3441 | # the dataset is publicly available, but not all at once, and can only be accessed through queries which return parts of the dataset. |
3909 | query = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/query" | 3442 | query = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/query" |
3910 | # the dataset is not publicly available and an email registration | 3443 | # the dataset is not publicly available and an email registration is required before accessing the dataset, although without an affirmative acceptance of terms. |
3911 | registration = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/registration" | 3444 | registration = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/registration" |
3912 | # the dataset provider is not making available the underlying | 3445 | # the dataset provider is not making available the underlying data and the dataset must be reassembled, typically using the provided script for scraping the data. |
3913 | scrapingScript = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/scrapingScript" | 3446 | scrapingScript = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/scrapingScript" |
3914 | 3447 | ||
3915 | 3448 | ||
3916 | # Enumeration of dataset types. | 3449 | # Enumeration of dataset types. |
3917 | @register("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType", compact_type="dataset_DatasetType", abstract=False) | 3450 | @register("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType", compact_type="dataset_DatasetType", abstract=False) |
3918 | class dataset_DatasetType(SHACLObject): | 3451 | class dataset_DatasetType(SHACLObject): |
3919 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3452 | NODE_KIND = NodeKind.BlankNodeOrIRI |
3920 | NAMED_INDIVIDUALS = { | 3453 | NAMED_INDIVIDUALS = { |
3921 | "audio": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/audio", | 3454 | "audio": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/audio", |
3922 | "categorical": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/categorical", | 3455 | "categorical": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/categorical", |
3923 | "graph": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/graph", | 3456 | "graph": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/graph", |
3924 | "image": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/image", | 3457 | "image": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/image", |
3925 | "noAssertion": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/noAssertion", | 3458 | "noAssertion": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/noAssertion", |
3926 | "numeric": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/numeric", | 3459 | "numeric": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/numeric", |
3927 | "other": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/other", | 3460 | "other": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/other", |
3928 | "sensor": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/sensor", | 3461 | "sensor": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/sensor", |
3929 | "structured": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/structured", | 3462 | "structured": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/structured", |
3930 | "syntactic": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/syntactic", | 3463 | "syntactic": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/syntactic", |
3931 | "text": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/text", | 3464 | "text": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/text", |
3932 | "timeseries": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timeseries", | 3465 | "timeseries": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timeseries", |
3933 | "timestamp": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timestamp", | 3466 | "timestamp": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timestamp", |
3934 | "video": "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/video", | 3467 | "video": "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/video", |
3935 | } | 3468 | } |
3936 | # data is audio based, such as a collection of music from the 80s. | 3469 | # data is audio based, such as a collection of music from the 80s. |
3937 | audio = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/audio" | 3470 | audio = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/audio" |
3938 | # data that is classified into a discrete number of categories, | 3471 | # data that is classified into a discrete number of categories, such as the eye color of a population of people. |
3939 | categorical = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/categorical" | 3472 | categorical = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/categorical" |
3940 | # data is in the form of a graph where entries are somehow related to | 3473 | # data is in the form of a graph where entries are somehow related to each other through edges, such a social network of friends. |
3941 | graph = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/graph" | 3474 | graph = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/graph" |
3942 | # data is a collection of images such as pictures of animals. | 3475 | # data is a collection of images such as pictures of animals. |
3943 | image = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/image" | 3476 | image = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/image" |
3944 | # data type is not known. | 3477 | # data type is not known. |
3945 | noAssertion = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/noAssertion" | 3478 | noAssertion = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/noAssertion" |
3946 | # data consists only of numeric entries. | 3479 | # data consists only of numeric entries. |
3947 | numeric = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/numeric" | 3480 | numeric = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/numeric" |
3948 | # data is of a type not included in this list. | 3481 | # data is of a type not included in this list. |
3949 | other = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/other" | 3482 | other = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/other" |
3950 | # data is recorded from a physical sensor, such as a thermometer | 3483 | # data is recorded from a physical sensor, such as a thermometer reading or biometric device. |
3951 | sensor = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/sensor" | 3484 | sensor = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/sensor" |
3952 | # data is stored in tabular format or retrieved from a relational | 3485 | # data is stored in tabular format or retrieved from a relational database. |
3953 | structured = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/structured" | 3486 | structured = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/structured" |
3954 | # data describes the syntax or semantics of a language or text, such | 3487 | # data describes the syntax or semantics of a language or text, such as a parse tree used for natural language processing. |
3955 | syntactic = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/syntactic" | 3488 | syntactic = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/syntactic" |
3956 | # data consists of unstructured text, such as a book, Wikipedia article | 3489 | # data consists of unstructured text, such as a book, Wikipedia article (without images), or transcript. |
3957 | text = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/text" | 3490 | text = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/text" |
3958 | # data is recorded in an ordered sequence of timestamped entries, | 3491 | # data is recorded in an ordered sequence of timestamped entries, such as the price of a stock over the course of a day. |
3959 | timeseries = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timeseries" | 3492 | timeseries = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timeseries" |
3960 | # data is recorded with a timestamp for each entry, but not | 3493 | # data is recorded with a timestamp for each entry, but not necessarily ordered or at specific intervals, such as when a taxi ride starts and ends. |
3961 | timestamp = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timestamp" | 3494 | timestamp = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timestamp" |
3962 | # data is video based, such as a collection of movie clips featuring Tom | 3495 | # data is video based, such as a collection of movie clips featuring Tom Hanks. |
3963 | video = "https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/video" | 3496 | video = "https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/video" |
3964 | 3497 | ||
3965 | 3498 | ||
3966 | # Abstract class for additional text intended to be added to a License, but | 3499 | # Abstract class for additional text intended to be added to a License, but |
3967 | # which is not itself a standalone License. | 3500 | # which is not itself a standalone License. |
3968 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/LicenseAddition", compact_type="expandedlicensing_LicenseAddition", abstract=True) | 3501 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/LicenseAddition", compact_type="expandedlicensing_LicenseAddition", abstract=True) |
3969 | class expandedlicensing_LicenseAddition(Element): | 3502 | class expandedlicensing_LicenseAddition(Element): |
3970 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3503 | NODE_KIND = NodeKind.IRI |
3971 | ID_ALIAS = "spdxId" | 3504 | ID_ALIAS = "spdxId" |
3972 | NAMED_INDIVIDUALS = { | 3505 | NAMED_INDIVIDUALS = { |
3973 | } | 3506 | } |
@@ -3979,7 +3512,7 @@ class expandedlicensing_LicenseAddition(Element): | |||
3979 | cls._add_property( | 3512 | cls._add_property( |
3980 | "expandedlicensing_additionText", | 3513 | "expandedlicensing_additionText", |
3981 | StringProp(), | 3514 | StringProp(), |
3982 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/additionText", | 3515 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/additionText", |
3983 | min_count=1, | 3516 | min_count=1, |
3984 | compact="expandedlicensing_additionText", | 3517 | compact="expandedlicensing_additionText", |
3985 | ) | 3518 | ) |
@@ -3987,7 +3520,7 @@ class expandedlicensing_LicenseAddition(Element): | |||
3987 | cls._add_property( | 3520 | cls._add_property( |
3988 | "expandedlicensing_isDeprecatedAdditionId", | 3521 | "expandedlicensing_isDeprecatedAdditionId", |
3989 | BooleanProp(), | 3522 | BooleanProp(), |
3990 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/isDeprecatedAdditionId", | 3523 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/isDeprecatedAdditionId", |
3991 | compact="expandedlicensing_isDeprecatedAdditionId", | 3524 | compact="expandedlicensing_isDeprecatedAdditionId", |
3992 | ) | 3525 | ) |
3993 | # Identifies all the text and metadata associated with a license in the license | 3526 | # Identifies all the text and metadata associated with a license in the license |
@@ -3995,7 +3528,7 @@ class expandedlicensing_LicenseAddition(Element): | |||
3995 | cls._add_property( | 3528 | cls._add_property( |
3996 | "expandedlicensing_licenseXml", | 3529 | "expandedlicensing_licenseXml", |
3997 | StringProp(), | 3530 | StringProp(), |
3998 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/licenseXml", | 3531 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/licenseXml", |
3999 | compact="expandedlicensing_licenseXml", | 3532 | compact="expandedlicensing_licenseXml", |
4000 | ) | 3533 | ) |
4001 | # Specifies the licenseId that is preferred to be used in place of a deprecated | 3534 | # Specifies the licenseId that is preferred to be used in place of a deprecated |
@@ -4003,29 +3536,29 @@ class expandedlicensing_LicenseAddition(Element): | |||
4003 | cls._add_property( | 3536 | cls._add_property( |
4004 | "expandedlicensing_obsoletedBy", | 3537 | "expandedlicensing_obsoletedBy", |
4005 | StringProp(), | 3538 | StringProp(), |
4006 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/obsoletedBy", | 3539 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/obsoletedBy", |
4007 | compact="expandedlicensing_obsoletedBy", | 3540 | compact="expandedlicensing_obsoletedBy", |
4008 | ) | 3541 | ) |
4009 | # Contains a URL where the License or LicenseAddition can be found in use. | 3542 | # Contains a URL where the License or LicenseAddition can be found in use. |
4010 | cls._add_property( | 3543 | cls._add_property( |
4011 | "expandedlicensing_seeAlso", | 3544 | "expandedlicensing_seeAlso", |
4012 | ListProp(AnyURIProp()), | 3545 | ListProp(AnyURIProp()), |
4013 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/seeAlso", | 3546 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/seeAlso", |
4014 | compact="expandedlicensing_seeAlso", | 3547 | compact="expandedlicensing_seeAlso", |
4015 | ) | 3548 | ) |
4016 | # Identifies the full text of a LicenseAddition, in SPDX templating format. | 3549 | # Identifies the full text of a LicenseAddition, in SPDX templating format. |
4017 | cls._add_property( | 3550 | cls._add_property( |
4018 | "expandedlicensing_standardAdditionTemplate", | 3551 | "expandedlicensing_standardAdditionTemplate", |
4019 | StringProp(), | 3552 | StringProp(), |
4020 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/standardAdditionTemplate", | 3553 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/standardAdditionTemplate", |
4021 | compact="expandedlicensing_standardAdditionTemplate", | 3554 | compact="expandedlicensing_standardAdditionTemplate", |
4022 | ) | 3555 | ) |
4023 | 3556 | ||
4024 | 3557 | ||
4025 | # A license exception that is listed on the SPDX Exceptions list. | 3558 | # A license exception that is listed on the SPDX Exceptions list. |
4026 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/ListedLicenseException", compact_type="expandedlicensing_ListedLicenseException", abstract=False) | 3559 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ListedLicenseException", compact_type="expandedlicensing_ListedLicenseException", abstract=False) |
4027 | class expandedlicensing_ListedLicenseException(expandedlicensing_LicenseAddition): | 3560 | class expandedlicensing_ListedLicenseException(expandedlicensing_LicenseAddition): |
4028 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3561 | NODE_KIND = NodeKind.IRI |
4029 | ID_ALIAS = "spdxId" | 3562 | ID_ALIAS = "spdxId" |
4030 | NAMED_INDIVIDUALS = { | 3563 | NAMED_INDIVIDUALS = { |
4031 | } | 3564 | } |
@@ -4038,7 +3571,7 @@ class expandedlicensing_ListedLicenseException(expandedlicensing_LicenseAddition | |||
4038 | cls._add_property( | 3571 | cls._add_property( |
4039 | "expandedlicensing_deprecatedVersion", | 3572 | "expandedlicensing_deprecatedVersion", |
4040 | StringProp(), | 3573 | StringProp(), |
4041 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/deprecatedVersion", | 3574 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/deprecatedVersion", |
4042 | compact="expandedlicensing_deprecatedVersion", | 3575 | compact="expandedlicensing_deprecatedVersion", |
4043 | ) | 3576 | ) |
4044 | # Specifies the SPDX License List version in which this ListedLicense or | 3577 | # Specifies the SPDX License List version in which this ListedLicense or |
@@ -4046,130 +3579,130 @@ class expandedlicensing_ListedLicenseException(expandedlicensing_LicenseAddition | |||
4046 | cls._add_property( | 3579 | cls._add_property( |
4047 | "expandedlicensing_listVersionAdded", | 3580 | "expandedlicensing_listVersionAdded", |
4048 | StringProp(), | 3581 | StringProp(), |
4049 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/listVersionAdded", | 3582 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/listVersionAdded", |
4050 | compact="expandedlicensing_listVersionAdded", | 3583 | compact="expandedlicensing_listVersionAdded", |
4051 | ) | 3584 | ) |
4052 | 3585 | ||
4053 | 3586 | ||
4054 | # A property name with an associated value. | 3587 | # A property name with an associated value. |
4055 | @register("https://spdx.org/rdf/3.0.0/terms/Extension/CdxPropertyEntry", compact_type="extension_CdxPropertyEntry", abstract=False) | 3588 | @register("https://spdx.org/rdf/3.0.1/terms/Extension/CdxPropertyEntry", compact_type="extension_CdxPropertyEntry", abstract=False) |
4056 | class extension_CdxPropertyEntry(SHACLObject): | 3589 | class extension_CdxPropertyEntry(SHACLObject): |
4057 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3590 | NODE_KIND = NodeKind.BlankNode |
4058 | NAMED_INDIVIDUALS = { | 3591 | NAMED_INDIVIDUALS = { |
4059 | } | 3592 | } |
4060 | 3593 | ||
4061 | @classmethod | 3594 | @classmethod |
4062 | def _register_props(cls): | 3595 | def _register_props(cls): |
4063 | super()._register_props() | 3596 | super()._register_props() |
4064 | # A name used in a CdxExtension name-value pair. | 3597 | # A name used in a CdxPropertyEntry name-value pair. |
4065 | cls._add_property( | 3598 | cls._add_property( |
4066 | "extension_cdxPropName", | 3599 | "extension_cdxPropName", |
4067 | StringProp(), | 3600 | StringProp(), |
4068 | iri="https://spdx.org/rdf/3.0.0/terms/Extension/cdxPropName", | 3601 | iri="https://spdx.org/rdf/3.0.1/terms/Extension/cdxPropName", |
4069 | min_count=1, | 3602 | min_count=1, |
4070 | compact="extension_cdxPropName", | 3603 | compact="extension_cdxPropName", |
4071 | ) | 3604 | ) |
4072 | # A value used in a CdxExtension name-value pair. | 3605 | # A value used in a CdxPropertyEntry name-value pair. |
4073 | cls._add_property( | 3606 | cls._add_property( |
4074 | "extension_cdxPropValue", | 3607 | "extension_cdxPropValue", |
4075 | StringProp(), | 3608 | StringProp(), |
4076 | iri="https://spdx.org/rdf/3.0.0/terms/Extension/cdxPropValue", | 3609 | iri="https://spdx.org/rdf/3.0.1/terms/Extension/cdxPropValue", |
4077 | compact="extension_cdxPropValue", | 3610 | compact="extension_cdxPropValue", |
4078 | ) | 3611 | ) |
4079 | 3612 | ||
4080 | 3613 | ||
4081 | # A characterization of some aspect of an Element that is associated with the Element in a generalized fashion. | 3614 | # A characterization of some aspect of an Element that is associated with the Element in a generalized fashion. |
4082 | @register("https://spdx.org/rdf/3.0.0/terms/Extension/Extension", compact_type="extension_Extension", abstract=True) | 3615 | @register("https://spdx.org/rdf/3.0.1/terms/Extension/Extension", compact_type="extension_Extension", abstract=True) |
4083 | class extension_Extension(SHACLExtensibleObject, SHACLObject): | 3616 | class extension_Extension(SHACLExtensibleObject, SHACLObject): |
4084 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3617 | NODE_KIND = NodeKind.BlankNode |
4085 | NAMED_INDIVIDUALS = { | 3618 | NAMED_INDIVIDUALS = { |
4086 | } | 3619 | } |
4087 | 3620 | ||
4088 | 3621 | ||
4089 | # Specifies the CVSS base, temporal, threat, or environmental severity type. | 3622 | # Specifies the CVSS base, temporal, threat, or environmental severity type. |
4090 | @register("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType", compact_type="security_CvssSeverityType", abstract=False) | 3623 | @register("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType", compact_type="security_CvssSeverityType", abstract=False) |
4091 | class security_CvssSeverityType(SHACLObject): | 3624 | class security_CvssSeverityType(SHACLObject): |
4092 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3625 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4093 | NAMED_INDIVIDUALS = { | 3626 | NAMED_INDIVIDUALS = { |
4094 | "critical": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical", | 3627 | "critical": "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical", |
4095 | "high": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high", | 3628 | "high": "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high", |
4096 | "low": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low", | 3629 | "low": "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low", |
4097 | "medium": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium", | 3630 | "medium": "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium", |
4098 | "none": "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none", | 3631 | "none": "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none", |
4099 | } | 3632 | } |
4100 | # When a CVSS score is between 9.0 - 10.0 | 3633 | # When a CVSS score is between 9.0 - 10.0 |
4101 | critical = "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical" | 3634 | critical = "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical" |
4102 | # When a CVSS score is between 7.0 - 8.9 | 3635 | # When a CVSS score is between 7.0 - 8.9 |
4103 | high = "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high" | 3636 | high = "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high" |
4104 | # When a CVSS score is between 0 - 3.9 | 3637 | # When a CVSS score is between 0.1 - 3.9 |
4105 | low = "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low" | 3638 | low = "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low" |
4106 | # When a CVSS score is between 4 - 6.9 | 3639 | # When a CVSS score is between 4.0 - 6.9 |
4107 | medium = "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium" | 3640 | medium = "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium" |
4108 | # When a CVSS score is 0 | 3641 | # When a CVSS score is 0.0 |
4109 | none = "https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none" | 3642 | none = "https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none" |
4110 | 3643 | ||
4111 | 3644 | ||
4112 | # Specifies the exploit catalog type. | 3645 | # Specifies the exploit catalog type. |
4113 | @register("https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType", compact_type="security_ExploitCatalogType", abstract=False) | 3646 | @register("https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType", compact_type="security_ExploitCatalogType", abstract=False) |
4114 | class security_ExploitCatalogType(SHACLObject): | 3647 | class security_ExploitCatalogType(SHACLObject): |
4115 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3648 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4116 | NAMED_INDIVIDUALS = { | 3649 | NAMED_INDIVIDUALS = { |
4117 | "kev": "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/kev", | 3650 | "kev": "https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/kev", |
4118 | "other": "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/other", | 3651 | "other": "https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/other", |
4119 | } | 3652 | } |
4120 | # CISA's Known Exploited Vulnerability (KEV) Catalog | 3653 | # CISA's Known Exploited Vulnerability (KEV) Catalog |
4121 | kev = "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/kev" | 3654 | kev = "https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/kev" |
4122 | # Other exploit catalogs | 3655 | # Other exploit catalogs |
4123 | other = "https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/other" | 3656 | other = "https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/other" |
4124 | 3657 | ||
4125 | 3658 | ||
4126 | # Specifies the SSVC decision type. | 3659 | # Specifies the SSVC decision type. |
4127 | @register("https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType", compact_type="security_SsvcDecisionType", abstract=False) | 3660 | @register("https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType", compact_type="security_SsvcDecisionType", abstract=False) |
4128 | class security_SsvcDecisionType(SHACLObject): | 3661 | class security_SsvcDecisionType(SHACLObject): |
4129 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3662 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4130 | NAMED_INDIVIDUALS = { | 3663 | NAMED_INDIVIDUALS = { |
4131 | "act": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/act", | 3664 | "act": "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/act", |
4132 | "attend": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/attend", | 3665 | "attend": "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/attend", |
4133 | "track": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/track", | 3666 | "track": "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/track", |
4134 | "trackStar": "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/trackStar", | 3667 | "trackStar": "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/trackStar", |
4135 | } | 3668 | } |
4136 | # The vulnerability requires attention from the organization's internal, supervisory-level and leadership-level individuals. Necessary actions include requesting assistance or information about the vulnerability, as well as publishing a notification either internally and/or externally. Typically, internal groups would meet to determine the overall response and then execute agreed upon actions. CISA recommends remediating Act vulnerabilities as soon as possible. | 3669 | # The vulnerability requires attention from the organization's internal, supervisory-level and leadership-level individuals. Necessary actions include requesting assistance or information about the vulnerability, as well as publishing a notification either internally and/or externally. Typically, internal groups would meet to determine the overall response and then execute agreed upon actions. CISA recommends remediating Act vulnerabilities as soon as possible. |
4137 | act = "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/act" | 3670 | act = "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/act" |
4138 | # The vulnerability requires attention from the organization's internal, supervisory-level individuals. Necessary actions include requesting assistance or information about the vulnerability, and may involve publishing a notification either internally and/or externally. CISA recommends remediating Attend vulnerabilities sooner than standard update timelines. | 3671 | # The vulnerability requires attention from the organization's internal, supervisory-level individuals. Necessary actions include requesting assistance or information about the vulnerability, and may involve publishing a notification either internally and/or externally. CISA recommends remediating Attend vulnerabilities sooner than standard update timelines. |
4139 | attend = "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/attend" | 3672 | attend = "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/attend" |
4140 | # The vulnerability does not require action at this time. The organization would continue to track the vulnerability and reassess it if new information becomes available. CISA recommends remediating Track vulnerabilities within standard update timelines. | 3673 | # The vulnerability does not require action at this time. The organization would continue to track the vulnerability and reassess it if new information becomes available. CISA recommends remediating Track vulnerabilities within standard update timelines. |
4141 | track = "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/track" | 3674 | track = "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/track" |
4142 | # ("Track*" in the SSVC spec) The vulnerability contains specific characteristics that may require closer monitoring for changes. CISA recommends remediating Track* vulnerabilities within standard update timelines. | 3675 | # ("Track\*" in the SSVC spec) The vulnerability contains specific characteristics that may require closer monitoring for changes. CISA recommends remediating Track\* vulnerabilities within standard update timelines. |
4143 | trackStar = "https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/trackStar" | 3676 | trackStar = "https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/trackStar" |
4144 | 3677 | ||
4145 | 3678 | ||
4146 | # Specifies the VEX justification type. | 3679 | # Specifies the VEX justification type. |
4147 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType", compact_type="security_VexJustificationType", abstract=False) | 3680 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType", compact_type="security_VexJustificationType", abstract=False) |
4148 | class security_VexJustificationType(SHACLObject): | 3681 | class security_VexJustificationType(SHACLObject): |
4149 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3682 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4150 | NAMED_INDIVIDUALS = { | 3683 | NAMED_INDIVIDUALS = { |
4151 | "componentNotPresent": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/componentNotPresent", | 3684 | "componentNotPresent": "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/componentNotPresent", |
4152 | "inlineMitigationsAlreadyExist": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist", | 3685 | "inlineMitigationsAlreadyExist": "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist", |
4153 | "vulnerableCodeCannotBeControlledByAdversary": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary", | 3686 | "vulnerableCodeCannotBeControlledByAdversary": "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary", |
4154 | "vulnerableCodeNotInExecutePath": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath", | 3687 | "vulnerableCodeNotInExecutePath": "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath", |
4155 | "vulnerableCodeNotPresent": "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotPresent", | 3688 | "vulnerableCodeNotPresent": "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotPresent", |
4156 | } | 3689 | } |
4157 | # The software is not affected because the vulnerable component is not in the product. | 3690 | # The software is not affected because the vulnerable component is not in the product. |
4158 | componentNotPresent = "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/componentNotPresent" | 3691 | componentNotPresent = "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/componentNotPresent" |
4159 | # Built-in inline controls or mitigations prevent an adversary from leveraging the vulnerability. | 3692 | # Built-in inline controls or mitigations prevent an adversary from leveraging the vulnerability. |
4160 | inlineMitigationsAlreadyExist = "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist" | 3693 | inlineMitigationsAlreadyExist = "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist" |
4161 | # The vulnerable component is present, and the component contains the vulnerable code. However, vulnerable code is used in such a way that an attacker cannot mount any anticipated attack. | 3694 | # The vulnerable component is present, and the component contains the vulnerable code. However, vulnerable code is used in such a way that an attacker cannot mount any anticipated attack. |
4162 | vulnerableCodeCannotBeControlledByAdversary = "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary" | 3695 | vulnerableCodeCannotBeControlledByAdversary = "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary" |
4163 | # The affected code is not reachable through the execution of the code, including non-anticipated states of the product. | 3696 | # The affected code is not reachable through the execution of the code, including non-anticipated states of the product. |
4164 | vulnerableCodeNotInExecutePath = "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath" | 3697 | vulnerableCodeNotInExecutePath = "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath" |
4165 | # The product is not affected because the code underlying the vulnerability is not present in the product. | 3698 | # The product is not affected because the code underlying the vulnerability is not present in the product. |
4166 | vulnerableCodeNotPresent = "https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotPresent" | 3699 | vulnerableCodeNotPresent = "https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotPresent" |
4167 | 3700 | ||
4168 | 3701 | ||
4169 | # Abstract ancestor class for all vulnerability assessments | 3702 | # Abstract ancestor class for all vulnerability assessments |
4170 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VulnAssessmentRelationship", compact_type="security_VulnAssessmentRelationship", abstract=True) | 3703 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VulnAssessmentRelationship", compact_type="security_VulnAssessmentRelationship", abstract=True) |
4171 | class security_VulnAssessmentRelationship(Relationship): | 3704 | class security_VulnAssessmentRelationship(Relationship): |
4172 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3705 | NODE_KIND = NodeKind.IRI |
4173 | ID_ALIAS = "spdxId" | 3706 | ID_ALIAS = "spdxId" |
4174 | NAMED_INDIVIDUALS = { | 3707 | NAMED_INDIVIDUALS = { |
4175 | } | 3708 | } |
@@ -4181,56 +3714,62 @@ class security_VulnAssessmentRelationship(Relationship): | |||
4181 | # referenced by the Element. | 3714 | # referenced by the Element. |
4182 | cls._add_property( | 3715 | cls._add_property( |
4183 | "suppliedBy", | 3716 | "suppliedBy", |
4184 | ObjectProp(Agent, False), | 3717 | ObjectProp(Agent, False, context=[ |
4185 | iri="https://spdx.org/rdf/3.0.0/terms/Core/suppliedBy", | 3718 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), |
3719 | ],), | ||
3720 | iri="https://spdx.org/rdf/3.0.1/terms/Core/suppliedBy", | ||
4186 | compact="suppliedBy", | 3721 | compact="suppliedBy", |
4187 | ) | 3722 | ) |
4188 | # Specifies an Element contained in a piece of software where a vulnerability was | 3723 | # Specifies an Element contained in a piece of software where a vulnerability was |
4189 | # found. | 3724 | # found. |
4190 | cls._add_property( | 3725 | cls._add_property( |
4191 | "security_assessedElement", | 3726 | "security_assessedElement", |
4192 | ObjectProp(Element, False), | 3727 | ObjectProp(Element, False, context=[ |
4193 | iri="https://spdx.org/rdf/3.0.0/terms/Security/assessedElement", | 3728 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
3729 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
3730 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
3731 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
3732 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
3733 | ],), | ||
3734 | iri="https://spdx.org/rdf/3.0.1/terms/Security/assessedElement", | ||
4194 | compact="security_assessedElement", | 3735 | compact="security_assessedElement", |
4195 | ) | 3736 | ) |
4196 | # Specifies a time when a vulnerability assessment was modified | 3737 | # Specifies a time when a vulnerability assessment was modified |
4197 | cls._add_property( | 3738 | cls._add_property( |
4198 | "security_modifiedTime", | 3739 | "security_modifiedTime", |
4199 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 3740 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4200 | iri="https://spdx.org/rdf/3.0.0/terms/Security/modifiedTime", | 3741 | iri="https://spdx.org/rdf/3.0.1/terms/Security/modifiedTime", |
4201 | compact="security_modifiedTime", | 3742 | compact="security_modifiedTime", |
4202 | ) | 3743 | ) |
4203 | # Specifies the time when a vulnerability was published. | 3744 | # Specifies the time when a vulnerability was published. |
4204 | cls._add_property( | 3745 | cls._add_property( |
4205 | "security_publishedTime", | 3746 | "security_publishedTime", |
4206 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 3747 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4207 | iri="https://spdx.org/rdf/3.0.0/terms/Security/publishedTime", | 3748 | iri="https://spdx.org/rdf/3.0.1/terms/Security/publishedTime", |
4208 | compact="security_publishedTime", | 3749 | compact="security_publishedTime", |
4209 | ) | 3750 | ) |
4210 | # Specified the time and date when a vulnerability was withdrawn. | 3751 | # Specified the time and date when a vulnerability was withdrawn. |
4211 | cls._add_property( | 3752 | cls._add_property( |
4212 | "security_withdrawnTime", | 3753 | "security_withdrawnTime", |
4213 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 3754 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4214 | iri="https://spdx.org/rdf/3.0.0/terms/Security/withdrawnTime", | 3755 | iri="https://spdx.org/rdf/3.0.1/terms/Security/withdrawnTime", |
4215 | compact="security_withdrawnTime", | 3756 | compact="security_withdrawnTime", |
4216 | ) | 3757 | ) |
4217 | 3758 | ||
4218 | 3759 | ||
4219 | # Abstract class representing a license combination consisting of one or more | 3760 | # Abstract class representing a license combination consisting of one or more licenses. |
4220 | # licenses (optionally including additional text), which may be combined | 3761 | @register("https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/AnyLicenseInfo", compact_type="simplelicensing_AnyLicenseInfo", abstract=True) |
4221 | # according to the SPDX license expression syntax. | ||
4222 | @register("https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/AnyLicenseInfo", compact_type="simplelicensing_AnyLicenseInfo", abstract=True) | ||
4223 | class simplelicensing_AnyLicenseInfo(Element): | 3762 | class simplelicensing_AnyLicenseInfo(Element): |
4224 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3763 | NODE_KIND = NodeKind.IRI |
4225 | ID_ALIAS = "spdxId" | 3764 | ID_ALIAS = "spdxId" |
4226 | NAMED_INDIVIDUALS = { | 3765 | NAMED_INDIVIDUALS = { |
4227 | } | 3766 | } |
4228 | 3767 | ||
4229 | 3768 | ||
4230 | # An SPDX Element containing an SPDX license expression string. | 3769 | # An SPDX Element containing an SPDX license expression string. |
4231 | @register("https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/LicenseExpression", compact_type="simplelicensing_LicenseExpression", abstract=False) | 3770 | @register("https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/LicenseExpression", compact_type="simplelicensing_LicenseExpression", abstract=False) |
4232 | class simplelicensing_LicenseExpression(simplelicensing_AnyLicenseInfo): | 3771 | class simplelicensing_LicenseExpression(simplelicensing_AnyLicenseInfo): |
4233 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3772 | NODE_KIND = NodeKind.IRI |
4234 | ID_ALIAS = "spdxId" | 3773 | ID_ALIAS = "spdxId" |
4235 | NAMED_INDIVIDUALS = { | 3774 | NAMED_INDIVIDUALS = { |
4236 | } | 3775 | } |
@@ -4243,14 +3782,14 @@ class simplelicensing_LicenseExpression(simplelicensing_AnyLicenseInfo): | |||
4243 | cls._add_property( | 3782 | cls._add_property( |
4244 | "simplelicensing_customIdToUri", | 3783 | "simplelicensing_customIdToUri", |
4245 | ListProp(ObjectProp(DictionaryEntry, False)), | 3784 | ListProp(ObjectProp(DictionaryEntry, False)), |
4246 | iri="https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/customIdToUri", | 3785 | iri="https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/customIdToUri", |
4247 | compact="simplelicensing_customIdToUri", | 3786 | compact="simplelicensing_customIdToUri", |
4248 | ) | 3787 | ) |
4249 | # A string in the license expression format. | 3788 | # A string in the license expression format. |
4250 | cls._add_property( | 3789 | cls._add_property( |
4251 | "simplelicensing_licenseExpression", | 3790 | "simplelicensing_licenseExpression", |
4252 | StringProp(), | 3791 | StringProp(), |
4253 | iri="https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/licenseExpression", | 3792 | iri="https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/licenseExpression", |
4254 | min_count=1, | 3793 | min_count=1, |
4255 | compact="simplelicensing_licenseExpression", | 3794 | compact="simplelicensing_licenseExpression", |
4256 | ) | 3795 | ) |
@@ -4258,15 +3797,15 @@ class simplelicensing_LicenseExpression(simplelicensing_AnyLicenseInfo): | |||
4258 | cls._add_property( | 3797 | cls._add_property( |
4259 | "simplelicensing_licenseListVersion", | 3798 | "simplelicensing_licenseListVersion", |
4260 | StringProp(pattern=r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$",), | 3799 | StringProp(pattern=r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$",), |
4261 | iri="https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/licenseListVersion", | 3800 | iri="https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/licenseListVersion", |
4262 | compact="simplelicensing_licenseListVersion", | 3801 | compact="simplelicensing_licenseListVersion", |
4263 | ) | 3802 | ) |
4264 | 3803 | ||
4265 | 3804 | ||
4266 | # A license or addition that is not listed on the SPDX License List. | 3805 | # A license or addition that is not listed on the SPDX License List. |
4267 | @register("https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/SimpleLicensingText", compact_type="simplelicensing_SimpleLicensingText", abstract=False) | 3806 | @register("https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/SimpleLicensingText", compact_type="simplelicensing_SimpleLicensingText", abstract=False) |
4268 | class simplelicensing_SimpleLicensingText(Element): | 3807 | class simplelicensing_SimpleLicensingText(Element): |
4269 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3808 | NODE_KIND = NodeKind.IRI |
4270 | ID_ALIAS = "spdxId" | 3809 | ID_ALIAS = "spdxId" |
4271 | NAMED_INDIVIDUALS = { | 3810 | NAMED_INDIVIDUALS = { |
4272 | } | 3811 | } |
@@ -4278,16 +3817,16 @@ class simplelicensing_SimpleLicensingText(Element): | |||
4278 | cls._add_property( | 3817 | cls._add_property( |
4279 | "simplelicensing_licenseText", | 3818 | "simplelicensing_licenseText", |
4280 | StringProp(), | 3819 | StringProp(), |
4281 | iri="https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/licenseText", | 3820 | iri="https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/licenseText", |
4282 | min_count=1, | 3821 | min_count=1, |
4283 | compact="simplelicensing_licenseText", | 3822 | compact="simplelicensing_licenseText", |
4284 | ) | 3823 | ) |
4285 | 3824 | ||
4286 | 3825 | ||
4287 | # A canonical, unique, immutable identifier | 3826 | # A canonical, unique, immutable identifier |
4288 | @register("https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifier", compact_type="software_ContentIdentifier", abstract=False) | 3827 | @register("https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifier", compact_type="software_ContentIdentifier", abstract=False) |
4289 | class software_ContentIdentifier(IntegrityMethod): | 3828 | class software_ContentIdentifier(IntegrityMethod): |
4290 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3829 | NODE_KIND = NodeKind.BlankNode |
4291 | NAMED_INDIVIDUALS = { | 3830 | NAMED_INDIVIDUALS = { |
4292 | } | 3831 | } |
4293 | 3832 | ||
@@ -4298,10 +3837,10 @@ class software_ContentIdentifier(IntegrityMethod): | |||
4298 | cls._add_property( | 3837 | cls._add_property( |
4299 | "software_contentIdentifierType", | 3838 | "software_contentIdentifierType", |
4300 | EnumProp([ | 3839 | EnumProp([ |
4301 | ("https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/gitoid", "gitoid"), | 3840 | ("https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid", "gitoid"), |
4302 | ("https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/swhid", "swhid"), | 3841 | ("https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid", "swhid"), |
4303 | ]), | 3842 | ]), |
4304 | iri="https://spdx.org/rdf/3.0.0/terms/Software/contentIdentifierType", | 3843 | iri="https://spdx.org/rdf/3.0.1/terms/Software/contentIdentifierType", |
4305 | min_count=1, | 3844 | min_count=1, |
4306 | compact="software_contentIdentifierType", | 3845 | compact="software_contentIdentifierType", |
4307 | ) | 3846 | ) |
@@ -4309,166 +3848,166 @@ class software_ContentIdentifier(IntegrityMethod): | |||
4309 | cls._add_property( | 3848 | cls._add_property( |
4310 | "software_contentIdentifierValue", | 3849 | "software_contentIdentifierValue", |
4311 | AnyURIProp(), | 3850 | AnyURIProp(), |
4312 | iri="https://spdx.org/rdf/3.0.0/terms/Software/contentIdentifierValue", | 3851 | iri="https://spdx.org/rdf/3.0.1/terms/Software/contentIdentifierValue", |
4313 | min_count=1, | 3852 | min_count=1, |
4314 | compact="software_contentIdentifierValue", | 3853 | compact="software_contentIdentifierValue", |
4315 | ) | 3854 | ) |
4316 | 3855 | ||
4317 | 3856 | ||
4318 | # Specifies the type of a content identifier. | 3857 | # Specifies the type of a content identifier. |
4319 | @register("https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType", compact_type="software_ContentIdentifierType", abstract=False) | 3858 | @register("https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType", compact_type="software_ContentIdentifierType", abstract=False) |
4320 | class software_ContentIdentifierType(SHACLObject): | 3859 | class software_ContentIdentifierType(SHACLObject): |
4321 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3860 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4322 | NAMED_INDIVIDUALS = { | 3861 | NAMED_INDIVIDUALS = { |
4323 | "gitoid": "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/gitoid", | 3862 | "gitoid": "https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid", |
4324 | "swhid": "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/swhid", | 3863 | "swhid": "https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid", |
4325 | } | 3864 | } |
4326 | # Gitoid stands for [Git Object ID](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects) and a gitoid of type blob is a unique hash of a binary artifact. A gitoid may represent the software [Artifact ID](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#artifact-id) or the [OmniBOR Identifier](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#omnibor-identifier) for the software artifact's associated [OmniBOR Document](https://github.com/omnibor/spec/blob/main/spec/SPEC.md#omnibor-document). | 3865 | # [Gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid), stands for [Git Object ID](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects). A gitoid of type blob is a unique hash of a binary artifact. A gitoid may represent either an [Artifact Identifier](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-identifier-types) for the software artifact or an [Input Manifest Identifier](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#input-manifest-identifier) for the software artifact's associated [Artifact Input Manifest](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-input-manifest); this ambiguity exists because the Artifact Input Manifest is itself an artifact, and the gitoid of that artifact is its valid identifier. Gitoids calculated on software artifacts (Snippet, File, or Package Elements) should be recorded in the SPDX 3.0 SoftwareArtifact's contentIdentifier property. Gitoids calculated on the Artifact Input Manifest (Input Manifest Identifier) should be recorded in the SPDX 3.0 Element's externalIdentifier property. See [OmniBOR Specification](https://github.com/omnibor/spec/), a minimalistic specification for describing software [Artifact Dependency Graphs](https://github.com/omnibor/spec/blob/eb1ee5c961c16215eb8709b2975d193a2007a35d/spec/SPEC.md#artifact-dependency-graph-adg). |
4327 | gitoid = "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/gitoid" | 3866 | gitoid = "https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid" |
4328 | # SoftWare Hash IDentifier, persistent intrinsic identifiers for digital artifacts. The syntax of the identifiers is defined in the [SWHID specification](https://www.swhid.org/specification/v1.1/4.Syntax) and in the case of filess they typically look like `swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2`. | 3867 | # SoftWare Hash IDentifier, a persistent intrinsic identifier for digital artifacts, such as files, trees (also known as directories or folders), commits, and other objects typically found in version control systems. The format of the identifiers is defined in the [SWHID specification](https://www.swhid.org/specification/v1.1/4.Syntax) (ISO/IEC DIS 18670). They typically look like `swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2`. |
4329 | swhid = "https://spdx.org/rdf/3.0.0/terms/Software/ContentIdentifierType/swhid" | 3868 | swhid = "https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid" |
4330 | 3869 | ||
4331 | 3870 | ||
4332 | # Enumeration of the different kinds of SPDX file. | 3871 | # Enumeration of the different kinds of SPDX file. |
4333 | @register("https://spdx.org/rdf/3.0.0/terms/Software/FileKindType", compact_type="software_FileKindType", abstract=False) | 3872 | @register("https://spdx.org/rdf/3.0.1/terms/Software/FileKindType", compact_type="software_FileKindType", abstract=False) |
4334 | class software_FileKindType(SHACLObject): | 3873 | class software_FileKindType(SHACLObject): |
4335 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3874 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4336 | NAMED_INDIVIDUALS = { | 3875 | NAMED_INDIVIDUALS = { |
4337 | "directory": "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/directory", | 3876 | "directory": "https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory", |
4338 | "file": "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/file", | 3877 | "file": "https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file", |
4339 | } | 3878 | } |
4340 | # The file represents a directory and all content stored in that | 3879 | # The file represents a directory and all content stored in that directory. |
4341 | directory = "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/directory" | 3880 | directory = "https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory" |
4342 | # The file represents a single file (default). | 3881 | # The file represents a single file (default). |
4343 | file = "https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/file" | 3882 | file = "https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file" |
4344 | 3883 | ||
4345 | 3884 | ||
4346 | # Provides a set of values to be used to describe the common types of SBOMs that | 3885 | # Provides a set of values to be used to describe the common types of SBOMs that |
4347 | # tools may create. | 3886 | # tools may create. |
4348 | @register("https://spdx.org/rdf/3.0.0/terms/Software/SbomType", compact_type="software_SbomType", abstract=False) | 3887 | @register("https://spdx.org/rdf/3.0.1/terms/Software/SbomType", compact_type="software_SbomType", abstract=False) |
4349 | class software_SbomType(SHACLObject): | 3888 | class software_SbomType(SHACLObject): |
4350 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3889 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4351 | NAMED_INDIVIDUALS = { | 3890 | NAMED_INDIVIDUALS = { |
4352 | "analyzed": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/analyzed", | 3891 | "analyzed": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/analyzed", |
4353 | "build": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/build", | 3892 | "build": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/build", |
4354 | "deployed": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/deployed", | 3893 | "deployed": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/deployed", |
4355 | "design": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/design", | 3894 | "design": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/design", |
4356 | "runtime": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/runtime", | 3895 | "runtime": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/runtime", |
4357 | "source": "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/source", | 3896 | "source": "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/source", |
4358 | } | 3897 | } |
4359 | # SBOM generated through analysis of artifacts (e.g., executables, packages, containers, and virtual machine images) after its build. Such analysis generally requires a variety of heuristics. In some contexts, this may also be referred to as a "3rd party" SBOM. | 3898 | # SBOM generated through analysis of artifacts (e.g., executables, packages, containers, and virtual machine images) after its build. Such analysis generally requires a variety of heuristics. In some contexts, this may also be referred to as a "3rd party" SBOM. |
4360 | analyzed = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/analyzed" | 3899 | analyzed = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/analyzed" |
4361 | # SBOM generated as part of the process of building the software to create a releasable artifact (e.g., executable or package) from data such as source files, dependencies, built components, build process ephemeral data, and other SBOMs. | 3900 | # SBOM generated as part of the process of building the software to create a releasable artifact (e.g., executable or package) from data such as source files, dependencies, built components, build process ephemeral data, and other SBOMs. |
4362 | build = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/build" | 3901 | build = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/build" |
4363 | # SBOM provides an inventory of software that is present on a system. This may be an assembly of other SBOMs that combines analysis of configuration options, and examination of execution behavior in a (potentially simulated) deployment environment. | 3902 | # SBOM provides an inventory of software that is present on a system. This may be an assembly of other SBOMs that combines analysis of configuration options, and examination of execution behavior in a (potentially simulated) deployment environment. |
4364 | deployed = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/deployed" | 3903 | deployed = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/deployed" |
4365 | # SBOM of intended, planned software project or product with included components (some of which may not yet exist) for a new software artifact. | 3904 | # SBOM of intended, planned software project or product with included components (some of which may not yet exist) for a new software artifact. |
4366 | design = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/design" | 3905 | design = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/design" |
4367 | # SBOM generated through instrumenting the system running the software, to capture only components present in the system, as well as external call-outs or dynamically loaded components. In some contexts, this may also be referred to as an "Instrumented" or "Dynamic" SBOM. | 3906 | # SBOM generated through instrumenting the system running the software, to capture only components present in the system, as well as external call-outs or dynamically loaded components. In some contexts, this may also be referred to as an "Instrumented" or "Dynamic" SBOM. |
4368 | runtime = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/runtime" | 3907 | runtime = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/runtime" |
4369 | # SBOM created directly from the development environment, source files, and included dependencies used to build an product artifact. | 3908 | # SBOM created directly from the development environment, source files, and included dependencies used to build an product artifact. |
4370 | source = "https://spdx.org/rdf/3.0.0/terms/Software/SbomType/source" | 3909 | source = "https://spdx.org/rdf/3.0.1/terms/Software/SbomType/source" |
4371 | 3910 | ||
4372 | 3911 | ||
4373 | # Provides information about the primary purpose of an Element. | 3912 | # Provides information about the primary purpose of an Element. |
4374 | @register("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose", compact_type="software_SoftwarePurpose", abstract=False) | 3913 | @register("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose", compact_type="software_SoftwarePurpose", abstract=False) |
4375 | class software_SoftwarePurpose(SHACLObject): | 3914 | class software_SoftwarePurpose(SHACLObject): |
4376 | NODE_KIND = NodeKind.BlankNodeOrIRI | 3915 | NODE_KIND = NodeKind.BlankNodeOrIRI |
4377 | NAMED_INDIVIDUALS = { | 3916 | NAMED_INDIVIDUALS = { |
4378 | "application": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application", | 3917 | "application": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application", |
4379 | "archive": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive", | 3918 | "archive": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive", |
4380 | "bom": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom", | 3919 | "bom": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom", |
4381 | "configuration": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration", | 3920 | "configuration": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration", |
4382 | "container": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container", | 3921 | "container": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container", |
4383 | "data": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data", | 3922 | "data": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data", |
4384 | "device": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device", | 3923 | "device": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device", |
4385 | "deviceDriver": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver", | 3924 | "deviceDriver": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver", |
4386 | "diskImage": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage", | 3925 | "diskImage": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage", |
4387 | "documentation": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation", | 3926 | "documentation": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation", |
4388 | "evidence": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence", | 3927 | "evidence": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence", |
4389 | "executable": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable", | 3928 | "executable": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable", |
4390 | "file": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file", | 3929 | "file": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file", |
4391 | "filesystemImage": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage", | 3930 | "filesystemImage": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage", |
4392 | "firmware": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware", | 3931 | "firmware": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware", |
4393 | "framework": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework", | 3932 | "framework": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework", |
4394 | "install": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install", | 3933 | "install": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install", |
4395 | "library": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library", | 3934 | "library": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library", |
4396 | "manifest": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest", | 3935 | "manifest": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest", |
4397 | "model": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model", | 3936 | "model": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model", |
4398 | "module": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module", | 3937 | "module": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module", |
4399 | "operatingSystem": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem", | 3938 | "operatingSystem": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem", |
4400 | "other": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other", | 3939 | "other": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other", |
4401 | "patch": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch", | 3940 | "patch": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch", |
4402 | "platform": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform", | 3941 | "platform": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform", |
4403 | "requirement": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement", | 3942 | "requirement": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement", |
4404 | "source": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source", | 3943 | "source": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source", |
4405 | "specification": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification", | 3944 | "specification": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification", |
4406 | "test": "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test", | 3945 | "test": "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test", |
4407 | } | 3946 | } |
4408 | # the Element is a software application | 3947 | # The Element is a software application. |
4409 | application = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application" | 3948 | application = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application" |
4410 | # the Element is an archived collection of one or more files (.tar, .zip, etc) | 3949 | # The Element is an archived collection of one or more files (.tar, .zip, etc.). |
4411 | archive = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive" | 3950 | archive = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive" |
4412 | # Element is a bill of materials | 3951 | # The Element is a bill of materials. |
4413 | bom = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom" | 3952 | bom = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom" |
4414 | # Element is configuration data | 3953 | # The Element is configuration data. |
4415 | configuration = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration" | 3954 | configuration = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration" |
4416 | # the Element is a container image which can be used by a container runtime application | 3955 | # The Element is a container image which can be used by a container runtime application. |
4417 | container = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container" | 3956 | container = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container" |
4418 | # Element is data | 3957 | # The Element is data. |
4419 | data = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data" | 3958 | data = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data" |
4420 | # the Element refers to a chipset, processor, or electronic board | 3959 | # The Element refers to a chipset, processor, or electronic board. |
4421 | device = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device" | 3960 | device = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device" |
4422 | # Element represents software that controls hardware devices | 3961 | # The Element represents software that controls hardware devices. |
4423 | deviceDriver = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver" | 3962 | deviceDriver = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver" |
4424 | # the Element refers to a disk image that can be written to a disk, booted in a VM, etc. A disk image typically contains most or all of the components necessary to boot, such as bootloaders, kernels, firmware, userspace, etc. | 3963 | # The Element refers to a disk image that can be written to a disk, booted in a VM, etc. A disk image typically contains most or all of the components necessary to boot, such as bootloaders, kernels, firmware, userspace, etc. |
4425 | diskImage = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage" | 3964 | diskImage = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage" |
4426 | # Element is documentation | 3965 | # The Element is documentation. |
4427 | documentation = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation" | 3966 | documentation = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation" |
4428 | # the Element is the evidence that a specification or requirement has been fulfilled | 3967 | # The Element is the evidence that a specification or requirement has been fulfilled. |
4429 | evidence = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence" | 3968 | evidence = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence" |
4430 | # Element is an Artifact that can be run on a computer | 3969 | # The Element is an Artifact that can be run on a computer. |
4431 | executable = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable" | 3970 | executable = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable" |
4432 | # the Element is a single file which can be independently distributed (configuration file, statically linked binary, Kubernetes deployment, etc) | 3971 | # The Element is a single file which can be independently distributed (configuration file, statically linked binary, Kubernetes deployment, etc.). |
4433 | file = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file" | 3972 | file = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file" |
4434 | # the Element is a file system image that can be written to a disk (or virtual) partition | 3973 | # The Element is a file system image that can be written to a disk (or virtual) partition. |
4435 | filesystemImage = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage" | 3974 | filesystemImage = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage" |
4436 | # the Element provides low level control over a device's hardware | 3975 | # The Element provides low level control over a device's hardware. |
4437 | firmware = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware" | 3976 | firmware = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware" |
4438 | # the Element is a software framework | 3977 | # The Element is a software framework. |
4439 | framework = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework" | 3978 | framework = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework" |
4440 | # the Element is used to install software on disk | 3979 | # The Element is used to install software on disk. |
4441 | install = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install" | 3980 | install = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install" |
4442 | # the Element is a software library | 3981 | # The Element is a software library. |
4443 | library = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library" | 3982 | library = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library" |
4444 | # the Element is a software manifest | 3983 | # The Element is a software manifest. |
4445 | manifest = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest" | 3984 | manifest = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest" |
4446 | # the Element is a machine learning or artificial intelligence model | 3985 | # The Element is a machine learning or artificial intelligence model. |
4447 | model = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model" | 3986 | model = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model" |
4448 | # the Element is a module of a piece of software | 3987 | # The Element is a module of a piece of software. |
4449 | module = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module" | 3988 | module = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module" |
4450 | # the Element is an operating system | 3989 | # The Element is an operating system. |
4451 | operatingSystem = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem" | 3990 | operatingSystem = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem" |
4452 | # the Element doesn't fit into any of the other categories | 3991 | # The Element doesn't fit into any of the other categories. |
4453 | other = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other" | 3992 | other = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other" |
4454 | # Element contains a set of changes to update, fix, or improve another Element | 3993 | # The Element contains a set of changes to update, fix, or improve another Element. |
4455 | patch = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch" | 3994 | patch = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch" |
4456 | # Element represents a runtime environment | 3995 | # The Element represents a runtime environment. |
4457 | platform = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform" | 3996 | platform = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform" |
4458 | # the Element provides a requirement needed as input for another Element | 3997 | # The Element provides a requirement needed as input for another Element. |
4459 | requirement = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement" | 3998 | requirement = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement" |
4460 | # the Element is a single or a collection of source files | 3999 | # The Element is a single or a collection of source files. |
4461 | source = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source" | 4000 | source = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source" |
4462 | # the Element is a plan, guideline or strategy how to create, perform or analyse an application | 4001 | # The Element is a plan, guideline or strategy how to create, perform or analyze an application. |
4463 | specification = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification" | 4002 | specification = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification" |
4464 | # The Element is a test used to verify functionality on an software element | 4003 | # The Element is a test used to verify functionality on an software element. |
4465 | test = "https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test" | 4004 | test = "https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test" |
4466 | 4005 | ||
4467 | 4006 | ||
4468 | # Class that describes a build instance of software/artifacts. | 4007 | # Class that describes a build instance of software/artifacts. |
4469 | @register("https://spdx.org/rdf/3.0.0/terms/Build/Build", compact_type="build_Build", abstract=False) | 4008 | @register("https://spdx.org/rdf/3.0.1/terms/Build/Build", compact_type="build_Build", abstract=False) |
4470 | class build_Build(Element): | 4009 | class build_Build(Element): |
4471 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4010 | NODE_KIND = NodeKind.IRI |
4472 | ID_ALIAS = "spdxId" | 4011 | ID_ALIAS = "spdxId" |
4473 | NAMED_INDIVIDUALS = { | 4012 | NAMED_INDIVIDUALS = { |
4474 | } | 4013 | } |
@@ -4480,7 +4019,7 @@ class build_Build(Element): | |||
4480 | cls._add_property( | 4019 | cls._add_property( |
4481 | "build_buildEndTime", | 4020 | "build_buildEndTime", |
4482 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4021 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4483 | iri="https://spdx.org/rdf/3.0.0/terms/Build/buildEndTime", | 4022 | iri="https://spdx.org/rdf/3.0.1/terms/Build/buildEndTime", |
4484 | compact="build_buildEndTime", | 4023 | compact="build_buildEndTime", |
4485 | ) | 4024 | ) |
4486 | # A buildId is a locally unique identifier used by a builder to identify a unique | 4025 | # A buildId is a locally unique identifier used by a builder to identify a unique |
@@ -4488,14 +4027,14 @@ class build_Build(Element): | |||
4488 | cls._add_property( | 4027 | cls._add_property( |
4489 | "build_buildId", | 4028 | "build_buildId", |
4490 | StringProp(), | 4029 | StringProp(), |
4491 | iri="https://spdx.org/rdf/3.0.0/terms/Build/buildId", | 4030 | iri="https://spdx.org/rdf/3.0.1/terms/Build/buildId", |
4492 | compact="build_buildId", | 4031 | compact="build_buildId", |
4493 | ) | 4032 | ) |
4494 | # Property describing the start time of a build. | 4033 | # Property describing the start time of a build. |
4495 | cls._add_property( | 4034 | cls._add_property( |
4496 | "build_buildStartTime", | 4035 | "build_buildStartTime", |
4497 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4036 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4498 | iri="https://spdx.org/rdf/3.0.0/terms/Build/buildStartTime", | 4037 | iri="https://spdx.org/rdf/3.0.1/terms/Build/buildStartTime", |
4499 | compact="build_buildStartTime", | 4038 | compact="build_buildStartTime", |
4500 | ) | 4039 | ) |
4501 | # A buildType is a hint that is used to indicate the toolchain, platform, or | 4040 | # A buildType is a hint that is used to indicate the toolchain, platform, or |
@@ -4503,7 +4042,7 @@ class build_Build(Element): | |||
4503 | cls._add_property( | 4042 | cls._add_property( |
4504 | "build_buildType", | 4043 | "build_buildType", |
4505 | AnyURIProp(), | 4044 | AnyURIProp(), |
4506 | iri="https://spdx.org/rdf/3.0.0/terms/Build/buildType", | 4045 | iri="https://spdx.org/rdf/3.0.1/terms/Build/buildType", |
4507 | min_count=1, | 4046 | min_count=1, |
4508 | compact="build_buildType", | 4047 | compact="build_buildType", |
4509 | ) | 4048 | ) |
@@ -4512,52 +4051,52 @@ class build_Build(Element): | |||
4512 | cls._add_property( | 4051 | cls._add_property( |
4513 | "build_configSourceDigest", | 4052 | "build_configSourceDigest", |
4514 | ListProp(ObjectProp(Hash, False)), | 4053 | ListProp(ObjectProp(Hash, False)), |
4515 | iri="https://spdx.org/rdf/3.0.0/terms/Build/configSourceDigest", | 4054 | iri="https://spdx.org/rdf/3.0.1/terms/Build/configSourceDigest", |
4516 | compact="build_configSourceDigest", | 4055 | compact="build_configSourceDigest", |
4517 | ) | 4056 | ) |
4518 | # Property describes the invocation entrypoint of a build. | 4057 | # Property describes the invocation entrypoint of a build. |
4519 | cls._add_property( | 4058 | cls._add_property( |
4520 | "build_configSourceEntrypoint", | 4059 | "build_configSourceEntrypoint", |
4521 | ListProp(StringProp()), | 4060 | ListProp(StringProp()), |
4522 | iri="https://spdx.org/rdf/3.0.0/terms/Build/configSourceEntrypoint", | 4061 | iri="https://spdx.org/rdf/3.0.1/terms/Build/configSourceEntrypoint", |
4523 | compact="build_configSourceEntrypoint", | 4062 | compact="build_configSourceEntrypoint", |
4524 | ) | 4063 | ) |
4525 | # Property that describes the URI of the build configuration source file. | 4064 | # Property that describes the URI of the build configuration source file. |
4526 | cls._add_property( | 4065 | cls._add_property( |
4527 | "build_configSourceUri", | 4066 | "build_configSourceUri", |
4528 | ListProp(AnyURIProp()), | 4067 | ListProp(AnyURIProp()), |
4529 | iri="https://spdx.org/rdf/3.0.0/terms/Build/configSourceUri", | 4068 | iri="https://spdx.org/rdf/3.0.1/terms/Build/configSourceUri", |
4530 | compact="build_configSourceUri", | 4069 | compact="build_configSourceUri", |
4531 | ) | 4070 | ) |
4532 | # Property describing the session in which a build is invoked. | 4071 | # Property describing the session in which a build is invoked. |
4533 | cls._add_property( | 4072 | cls._add_property( |
4534 | "build_environment", | 4073 | "build_environment", |
4535 | ListProp(ObjectProp(DictionaryEntry, False)), | 4074 | ListProp(ObjectProp(DictionaryEntry, False)), |
4536 | iri="https://spdx.org/rdf/3.0.0/terms/Build/environment", | 4075 | iri="https://spdx.org/rdf/3.0.1/terms/Build/environment", |
4537 | compact="build_environment", | 4076 | compact="build_environment", |
4538 | ) | 4077 | ) |
4539 | # Property describing the parameters used in an instance of a build. | 4078 | # Property describing a parameter used in an instance of a build. |
4540 | cls._add_property( | 4079 | cls._add_property( |
4541 | "build_parameters", | 4080 | "build_parameter", |
4542 | ListProp(ObjectProp(DictionaryEntry, False)), | 4081 | ListProp(ObjectProp(DictionaryEntry, False)), |
4543 | iri="https://spdx.org/rdf/3.0.0/terms/Build/parameters", | 4082 | iri="https://spdx.org/rdf/3.0.1/terms/Build/parameter", |
4544 | compact="build_parameters", | 4083 | compact="build_parameter", |
4545 | ) | 4084 | ) |
4546 | 4085 | ||
4547 | 4086 | ||
4548 | # Agent represents anything with the potential to act on a system. | 4087 | # Agent represents anything with the potential to act on a system. |
4549 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Agent", compact_type="Agent", abstract=False) | 4088 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Agent", compact_type="Agent", abstract=False) |
4550 | class Agent(Element): | 4089 | class Agent(Element): |
4551 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4090 | NODE_KIND = NodeKind.IRI |
4552 | ID_ALIAS = "spdxId" | 4091 | ID_ALIAS = "spdxId" |
4553 | NAMED_INDIVIDUALS = { | 4092 | NAMED_INDIVIDUALS = { |
4554 | } | 4093 | } |
4555 | 4094 | ||
4556 | 4095 | ||
4557 | # An assertion made in relation to one or more elements. | 4096 | # An assertion made in relation to one or more elements. |
4558 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Annotation", compact_type="Annotation", abstract=False) | 4097 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Annotation", compact_type="Annotation", abstract=False) |
4559 | class Annotation(Element): | 4098 | class Annotation(Element): |
4560 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4099 | NODE_KIND = NodeKind.IRI |
4561 | ID_ALIAS = "spdxId" | 4100 | ID_ALIAS = "spdxId" |
4562 | NAMED_INDIVIDUALS = { | 4101 | NAMED_INDIVIDUALS = { |
4563 | } | 4102 | } |
@@ -4569,41 +4108,47 @@ class Annotation(Element): | |||
4569 | cls._add_property( | 4108 | cls._add_property( |
4570 | "annotationType", | 4109 | "annotationType", |
4571 | EnumProp([ | 4110 | EnumProp([ |
4572 | ("https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/other", "other"), | 4111 | ("https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other", "other"), |
4573 | ("https://spdx.org/rdf/3.0.0/terms/Core/AnnotationType/review", "review"), | 4112 | ("https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review", "review"), |
4574 | ]), | 4113 | ]), |
4575 | iri="https://spdx.org/rdf/3.0.0/terms/Core/annotationType", | 4114 | iri="https://spdx.org/rdf/3.0.1/terms/Core/annotationType", |
4576 | min_count=1, | 4115 | min_count=1, |
4577 | compact="annotationType", | 4116 | compact="annotationType", |
4578 | ) | 4117 | ) |
4579 | # Specifies the media type of an Element or Property. | 4118 | # Provides information about the content type of an Element or a Property. |
4580 | cls._add_property( | 4119 | cls._add_property( |
4581 | "contentType", | 4120 | "contentType", |
4582 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), | 4121 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), |
4583 | iri="https://spdx.org/rdf/3.0.0/terms/Core/contentType", | 4122 | iri="https://spdx.org/rdf/3.0.1/terms/Core/contentType", |
4584 | compact="contentType", | 4123 | compact="contentType", |
4585 | ) | 4124 | ) |
4586 | # Commentary on an assertion that an annotator has made. | 4125 | # Commentary on an assertion that an annotator has made. |
4587 | cls._add_property( | 4126 | cls._add_property( |
4588 | "statement", | 4127 | "statement", |
4589 | StringProp(), | 4128 | StringProp(), |
4590 | iri="https://spdx.org/rdf/3.0.0/terms/Core/statement", | 4129 | iri="https://spdx.org/rdf/3.0.1/terms/Core/statement", |
4591 | compact="statement", | 4130 | compact="statement", |
4592 | ) | 4131 | ) |
4593 | # An Element an annotator has made an assertion about. | 4132 | # An Element an annotator has made an assertion about. |
4594 | cls._add_property( | 4133 | cls._add_property( |
4595 | "subject", | 4134 | "subject", |
4596 | ObjectProp(Element, True), | 4135 | ObjectProp(Element, True, context=[ |
4597 | iri="https://spdx.org/rdf/3.0.0/terms/Core/subject", | 4136 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoneElement", "NoneElement"), |
4137 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), | ||
4138 | ("https://spdx.org/rdf/3.0.1/terms/Core/NoAssertionElement", "NoAssertionElement"), | ||
4139 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), | ||
4140 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
4141 | ],), | ||
4142 | iri="https://spdx.org/rdf/3.0.1/terms/Core/subject", | ||
4598 | min_count=1, | 4143 | min_count=1, |
4599 | compact="subject", | 4144 | compact="subject", |
4600 | ) | 4145 | ) |
4601 | 4146 | ||
4602 | 4147 | ||
4603 | # A distinct article or unit within the digital domain. | 4148 | # A distinct article or unit within the digital domain. |
4604 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Artifact", compact_type="Artifact", abstract=True) | 4149 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Artifact", compact_type="Artifact", abstract=True) |
4605 | class Artifact(Element): | 4150 | class Artifact(Element): |
4606 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4151 | NODE_KIND = NodeKind.IRI |
4607 | ID_ALIAS = "spdxId" | 4152 | ID_ALIAS = "spdxId" |
4608 | NAMED_INDIVIDUALS = { | 4153 | NAMED_INDIVIDUALS = { |
4609 | } | 4154 | } |
@@ -4615,51 +4160,55 @@ class Artifact(Element): | |||
4615 | cls._add_property( | 4160 | cls._add_property( |
4616 | "builtTime", | 4161 | "builtTime", |
4617 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4162 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4618 | iri="https://spdx.org/rdf/3.0.0/terms/Core/builtTime", | 4163 | iri="https://spdx.org/rdf/3.0.1/terms/Core/builtTime", |
4619 | compact="builtTime", | 4164 | compact="builtTime", |
4620 | ) | 4165 | ) |
4621 | # Identifies from where or whom the Element originally came. | 4166 | # Identifies from where or whom the Element originally came. |
4622 | cls._add_property( | 4167 | cls._add_property( |
4623 | "originatedBy", | 4168 | "originatedBy", |
4624 | ListProp(ObjectProp(Agent, False)), | 4169 | ListProp(ObjectProp(Agent, False, context=[ |
4625 | iri="https://spdx.org/rdf/3.0.0/terms/Core/originatedBy", | 4170 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), |
4171 | ],)), | ||
4172 | iri="https://spdx.org/rdf/3.0.1/terms/Core/originatedBy", | ||
4626 | compact="originatedBy", | 4173 | compact="originatedBy", |
4627 | ) | 4174 | ) |
4628 | # Specifies the time an artifact was released. | 4175 | # Specifies the time an artifact was released. |
4629 | cls._add_property( | 4176 | cls._add_property( |
4630 | "releaseTime", | 4177 | "releaseTime", |
4631 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4178 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4632 | iri="https://spdx.org/rdf/3.0.0/terms/Core/releaseTime", | 4179 | iri="https://spdx.org/rdf/3.0.1/terms/Core/releaseTime", |
4633 | compact="releaseTime", | 4180 | compact="releaseTime", |
4634 | ) | 4181 | ) |
4635 | # The name of a relevant standard that may apply to an artifact. | 4182 | # The name of a relevant standard that may apply to an artifact. |
4636 | cls._add_property( | 4183 | cls._add_property( |
4637 | "standardName", | 4184 | "standardName", |
4638 | ListProp(StringProp()), | 4185 | ListProp(StringProp()), |
4639 | iri="https://spdx.org/rdf/3.0.0/terms/Core/standardName", | 4186 | iri="https://spdx.org/rdf/3.0.1/terms/Core/standardName", |
4640 | compact="standardName", | 4187 | compact="standardName", |
4641 | ) | 4188 | ) |
4642 | # Identifies who or what supplied the artifact or VulnAssessmentRelationship | 4189 | # Identifies who or what supplied the artifact or VulnAssessmentRelationship |
4643 | # referenced by the Element. | 4190 | # referenced by the Element. |
4644 | cls._add_property( | 4191 | cls._add_property( |
4645 | "suppliedBy", | 4192 | "suppliedBy", |
4646 | ObjectProp(Agent, False), | 4193 | ObjectProp(Agent, False, context=[ |
4647 | iri="https://spdx.org/rdf/3.0.0/terms/Core/suppliedBy", | 4194 | ("https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", "SpdxOrganization"), |
4195 | ],), | ||
4196 | iri="https://spdx.org/rdf/3.0.1/terms/Core/suppliedBy", | ||
4648 | compact="suppliedBy", | 4197 | compact="suppliedBy", |
4649 | ) | 4198 | ) |
4650 | # Specifies the level of support associated with an artifact. | 4199 | # Specifies the level of support associated with an artifact. |
4651 | cls._add_property( | 4200 | cls._add_property( |
4652 | "supportLevel", | 4201 | "supportLevel", |
4653 | ListProp(EnumProp([ | 4202 | ListProp(EnumProp([ |
4654 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/deployed", "deployed"), | 4203 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/deployed", "deployed"), |
4655 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/development", "development"), | 4204 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/development", "development"), |
4656 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/endOfSupport", "endOfSupport"), | 4205 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/endOfSupport", "endOfSupport"), |
4657 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/limitedSupport", "limitedSupport"), | 4206 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/limitedSupport", "limitedSupport"), |
4658 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noAssertion", "noAssertion"), | 4207 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noAssertion", "noAssertion"), |
4659 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/noSupport", "noSupport"), | 4208 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/noSupport", "noSupport"), |
4660 | ("https://spdx.org/rdf/3.0.0/terms/Core/SupportType/support", "support"), | 4209 | ("https://spdx.org/rdf/3.0.1/terms/Core/SupportType/support", "support"), |
4661 | ])), | 4210 | ])), |
4662 | iri="https://spdx.org/rdf/3.0.0/terms/Core/supportLevel", | 4211 | iri="https://spdx.org/rdf/3.0.1/terms/Core/supportLevel", |
4663 | compact="supportLevel", | 4212 | compact="supportLevel", |
4664 | ) | 4213 | ) |
4665 | # Specifies until when the artifact can be used before its usage needs to be | 4214 | # Specifies until when the artifact can be used before its usage needs to be |
@@ -4667,15 +4216,15 @@ class Artifact(Element): | |||
4667 | cls._add_property( | 4216 | cls._add_property( |
4668 | "validUntilTime", | 4217 | "validUntilTime", |
4669 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4218 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
4670 | iri="https://spdx.org/rdf/3.0.0/terms/Core/validUntilTime", | 4219 | iri="https://spdx.org/rdf/3.0.1/terms/Core/validUntilTime", |
4671 | compact="validUntilTime", | 4220 | compact="validUntilTime", |
4672 | ) | 4221 | ) |
4673 | 4222 | ||
4674 | 4223 | ||
4675 | # A collection of Elements that have a shared context. | 4224 | # A collection of Elements that have a shared context. |
4676 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Bundle", compact_type="Bundle", abstract=False) | 4225 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Bundle", compact_type="Bundle", abstract=False) |
4677 | class Bundle(ElementCollection): | 4226 | class Bundle(ElementCollection): |
4678 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4227 | NODE_KIND = NodeKind.IRI |
4679 | ID_ALIAS = "spdxId" | 4228 | ID_ALIAS = "spdxId" |
4680 | NAMED_INDIVIDUALS = { | 4229 | NAMED_INDIVIDUALS = { |
4681 | } | 4230 | } |
@@ -4688,15 +4237,15 @@ class Bundle(ElementCollection): | |||
4688 | cls._add_property( | 4237 | cls._add_property( |
4689 | "context", | 4238 | "context", |
4690 | StringProp(), | 4239 | StringProp(), |
4691 | iri="https://spdx.org/rdf/3.0.0/terms/Core/context", | 4240 | iri="https://spdx.org/rdf/3.0.1/terms/Core/context", |
4692 | compact="context", | 4241 | compact="context", |
4693 | ) | 4242 | ) |
4694 | 4243 | ||
4695 | 4244 | ||
4696 | # A mathematically calculated representation of a grouping of data. | 4245 | # A mathematically calculated representation of a grouping of data. |
4697 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Hash", compact_type="Hash", abstract=False) | 4246 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Hash", compact_type="Hash", abstract=False) |
4698 | class Hash(IntegrityMethod): | 4247 | class Hash(IntegrityMethod): |
4699 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4248 | NODE_KIND = NodeKind.BlankNode |
4700 | NAMED_INDIVIDUALS = { | 4249 | NAMED_INDIVIDUALS = { |
4701 | } | 4250 | } |
4702 | 4251 | ||
@@ -4707,29 +4256,30 @@ class Hash(IntegrityMethod): | |||
4707 | cls._add_property( | 4256 | cls._add_property( |
4708 | "algorithm", | 4257 | "algorithm", |
4709 | EnumProp([ | 4258 | EnumProp([ |
4710 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b256", "blake2b256"), | 4259 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/adler32", "adler32"), |
4711 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b384", "blake2b384"), | 4260 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b256", "blake2b256"), |
4712 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake2b512", "blake2b512"), | 4261 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b384", "blake2b384"), |
4713 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/blake3", "blake3"), | 4262 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake2b512", "blake2b512"), |
4714 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsDilithium", "crystalsDilithium"), | 4263 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/blake3", "blake3"), |
4715 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/crystalsKyber", "crystalsKyber"), | 4264 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsDilithium", "crystalsDilithium"), |
4716 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/falcon", "falcon"), | 4265 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/crystalsKyber", "crystalsKyber"), |
4717 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md2", "md2"), | 4266 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/falcon", "falcon"), |
4718 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md4", "md4"), | 4267 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md2", "md2"), |
4719 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md5", "md5"), | 4268 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md4", "md4"), |
4720 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/md6", "md6"), | 4269 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md5", "md5"), |
4721 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/other", "other"), | 4270 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/md6", "md6"), |
4722 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha1", "sha1"), | 4271 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/other", "other"), |
4723 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha224", "sha224"), | 4272 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha1", "sha1"), |
4724 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha256", "sha256"), | 4273 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha224", "sha224"), |
4725 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha384", "sha384"), | 4274 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha256", "sha256"), |
4726 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_224", "sha3_224"), | 4275 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha384", "sha384"), |
4727 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_256", "sha3_256"), | 4276 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_224", "sha3_224"), |
4728 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_384", "sha3_384"), | 4277 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_256", "sha3_256"), |
4729 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha3_512", "sha3_512"), | 4278 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_384", "sha3_384"), |
4730 | ("https://spdx.org/rdf/3.0.0/terms/Core/HashAlgorithm/sha512", "sha512"), | 4279 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha3_512", "sha3_512"), |
4280 | ("https://spdx.org/rdf/3.0.1/terms/Core/HashAlgorithm/sha512", "sha512"), | ||
4731 | ]), | 4281 | ]), |
4732 | iri="https://spdx.org/rdf/3.0.0/terms/Core/algorithm", | 4282 | iri="https://spdx.org/rdf/3.0.1/terms/Core/algorithm", |
4733 | min_count=1, | 4283 | min_count=1, |
4734 | compact="algorithm", | 4284 | compact="algorithm", |
4735 | ) | 4285 | ) |
@@ -4737,16 +4287,16 @@ class Hash(IntegrityMethod): | |||
4737 | cls._add_property( | 4287 | cls._add_property( |
4738 | "hashValue", | 4288 | "hashValue", |
4739 | StringProp(), | 4289 | StringProp(), |
4740 | iri="https://spdx.org/rdf/3.0.0/terms/Core/hashValue", | 4290 | iri="https://spdx.org/rdf/3.0.1/terms/Core/hashValue", |
4741 | min_count=1, | 4291 | min_count=1, |
4742 | compact="hashValue", | 4292 | compact="hashValue", |
4743 | ) | 4293 | ) |
4744 | 4294 | ||
4745 | 4295 | ||
4746 | # Provide context for a relationship that occurs in the lifecycle. | 4296 | # Provide context for a relationship that occurs in the lifecycle. |
4747 | @register("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopedRelationship", compact_type="LifecycleScopedRelationship", abstract=False) | 4297 | @register("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopedRelationship", compact_type="LifecycleScopedRelationship", abstract=False) |
4748 | class LifecycleScopedRelationship(Relationship): | 4298 | class LifecycleScopedRelationship(Relationship): |
4749 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4299 | NODE_KIND = NodeKind.IRI |
4750 | ID_ALIAS = "spdxId" | 4300 | ID_ALIAS = "spdxId" |
4751 | NAMED_INDIVIDUALS = { | 4301 | NAMED_INDIVIDUALS = { |
4752 | } | 4302 | } |
@@ -4758,40 +4308,43 @@ class LifecycleScopedRelationship(Relationship): | |||
4758 | cls._add_property( | 4308 | cls._add_property( |
4759 | "scope", | 4309 | "scope", |
4760 | EnumProp([ | 4310 | EnumProp([ |
4761 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/build", "build"), | 4311 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/build", "build"), |
4762 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/design", "design"), | 4312 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/design", "design"), |
4763 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/development", "development"), | 4313 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/development", "development"), |
4764 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/other", "other"), | 4314 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/other", "other"), |
4765 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/runtime", "runtime"), | 4315 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/runtime", "runtime"), |
4766 | ("https://spdx.org/rdf/3.0.0/terms/Core/LifecycleScopeType/test", "test"), | 4316 | ("https://spdx.org/rdf/3.0.1/terms/Core/LifecycleScopeType/test", "test"), |
4767 | ]), | 4317 | ]), |
4768 | iri="https://spdx.org/rdf/3.0.0/terms/Core/scope", | 4318 | iri="https://spdx.org/rdf/3.0.1/terms/Core/scope", |
4769 | compact="scope", | 4319 | compact="scope", |
4770 | ) | 4320 | ) |
4771 | 4321 | ||
4772 | 4322 | ||
4773 | # A group of people who work together in an organized way for a shared purpose. | 4323 | # A group of people who work together in an organized way for a shared purpose. |
4774 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Organization", compact_type="Organization", abstract=False) | 4324 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Organization", compact_type="Organization", abstract=False) |
4775 | class Organization(Agent): | 4325 | class Organization(Agent): |
4776 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4326 | NODE_KIND = NodeKind.IRI |
4777 | ID_ALIAS = "spdxId" | 4327 | ID_ALIAS = "spdxId" |
4778 | NAMED_INDIVIDUALS = { | 4328 | NAMED_INDIVIDUALS = { |
4329 | "SpdxOrganization": "https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization", | ||
4779 | } | 4330 | } |
4331 | # An Organization representing the SPDX Project. | ||
4332 | SpdxOrganization = "https://spdx.org/rdf/3.0.1/terms/Core/SpdxOrganization" | ||
4780 | 4333 | ||
4781 | 4334 | ||
4782 | # An individual human being. | 4335 | # An individual human being. |
4783 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Person", compact_type="Person", abstract=False) | 4336 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Person", compact_type="Person", abstract=False) |
4784 | class Person(Agent): | 4337 | class Person(Agent): |
4785 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4338 | NODE_KIND = NodeKind.IRI |
4786 | ID_ALIAS = "spdxId" | 4339 | ID_ALIAS = "spdxId" |
4787 | NAMED_INDIVIDUALS = { | 4340 | NAMED_INDIVIDUALS = { |
4788 | } | 4341 | } |
4789 | 4342 | ||
4790 | 4343 | ||
4791 | # A software agent. | 4344 | # A software agent. |
4792 | @register("https://spdx.org/rdf/3.0.0/terms/Core/SoftwareAgent", compact_type="SoftwareAgent", abstract=False) | 4345 | @register("https://spdx.org/rdf/3.0.1/terms/Core/SoftwareAgent", compact_type="SoftwareAgent", abstract=False) |
4793 | class SoftwareAgent(Agent): | 4346 | class SoftwareAgent(Agent): |
4794 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4347 | NODE_KIND = NodeKind.IRI |
4795 | ID_ALIAS = "spdxId" | 4348 | ID_ALIAS = "spdxId" |
4796 | NAMED_INDIVIDUALS = { | 4349 | NAMED_INDIVIDUALS = { |
4797 | } | 4350 | } |
@@ -4799,9 +4352,9 @@ class SoftwareAgent(Agent): | |||
4799 | 4352 | ||
4800 | # Portion of an AnyLicenseInfo representing a set of licensing information | 4353 | # Portion of an AnyLicenseInfo representing a set of licensing information |
4801 | # where all elements apply. | 4354 | # where all elements apply. |
4802 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/ConjunctiveLicenseSet", compact_type="expandedlicensing_ConjunctiveLicenseSet", abstract=False) | 4355 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ConjunctiveLicenseSet", compact_type="expandedlicensing_ConjunctiveLicenseSet", abstract=False) |
4803 | class expandedlicensing_ConjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): | 4356 | class expandedlicensing_ConjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): |
4804 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4357 | NODE_KIND = NodeKind.IRI |
4805 | ID_ALIAS = "spdxId" | 4358 | ID_ALIAS = "spdxId" |
4806 | NAMED_INDIVIDUALS = { | 4359 | NAMED_INDIVIDUALS = { |
4807 | } | 4360 | } |
@@ -4812,17 +4365,20 @@ class expandedlicensing_ConjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): | |||
4812 | # A license expression participating in a license set. | 4365 | # A license expression participating in a license set. |
4813 | cls._add_property( | 4366 | cls._add_property( |
4814 | "expandedlicensing_member", | 4367 | "expandedlicensing_member", |
4815 | ListProp(ObjectProp(simplelicensing_AnyLicenseInfo, False)), | 4368 | ListProp(ObjectProp(simplelicensing_AnyLicenseInfo, False, context=[ |
4816 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/member", | 4369 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), |
4370 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
4371 | ],)), | ||
4372 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/member", | ||
4817 | min_count=2, | 4373 | min_count=2, |
4818 | compact="expandedlicensing_member", | 4374 | compact="expandedlicensing_member", |
4819 | ) | 4375 | ) |
4820 | 4376 | ||
4821 | 4377 | ||
4822 | # A license addition that is not listed on the SPDX Exceptions List. | 4378 | # A license addition that is not listed on the SPDX Exceptions List. |
4823 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/CustomLicenseAddition", compact_type="expandedlicensing_CustomLicenseAddition", abstract=False) | 4379 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/CustomLicenseAddition", compact_type="expandedlicensing_CustomLicenseAddition", abstract=False) |
4824 | class expandedlicensing_CustomLicenseAddition(expandedlicensing_LicenseAddition): | 4380 | class expandedlicensing_CustomLicenseAddition(expandedlicensing_LicenseAddition): |
4825 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4381 | NODE_KIND = NodeKind.IRI |
4826 | ID_ALIAS = "spdxId" | 4382 | ID_ALIAS = "spdxId" |
4827 | NAMED_INDIVIDUALS = { | 4383 | NAMED_INDIVIDUALS = { |
4828 | } | 4384 | } |
@@ -4830,9 +4386,9 @@ class expandedlicensing_CustomLicenseAddition(expandedlicensing_LicenseAddition) | |||
4830 | 4386 | ||
4831 | # Portion of an AnyLicenseInfo representing a set of licensing information where | 4387 | # Portion of an AnyLicenseInfo representing a set of licensing information where |
4832 | # only one of the elements applies. | 4388 | # only one of the elements applies. |
4833 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/DisjunctiveLicenseSet", compact_type="expandedlicensing_DisjunctiveLicenseSet", abstract=False) | 4389 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/DisjunctiveLicenseSet", compact_type="expandedlicensing_DisjunctiveLicenseSet", abstract=False) |
4834 | class expandedlicensing_DisjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): | 4390 | class expandedlicensing_DisjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): |
4835 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4391 | NODE_KIND = NodeKind.IRI |
4836 | ID_ALIAS = "spdxId" | 4392 | ID_ALIAS = "spdxId" |
4837 | NAMED_INDIVIDUALS = { | 4393 | NAMED_INDIVIDUALS = { |
4838 | } | 4394 | } |
@@ -4843,17 +4399,20 @@ class expandedlicensing_DisjunctiveLicenseSet(simplelicensing_AnyLicenseInfo): | |||
4843 | # A license expression participating in a license set. | 4399 | # A license expression participating in a license set. |
4844 | cls._add_property( | 4400 | cls._add_property( |
4845 | "expandedlicensing_member", | 4401 | "expandedlicensing_member", |
4846 | ListProp(ObjectProp(simplelicensing_AnyLicenseInfo, False)), | 4402 | ListProp(ObjectProp(simplelicensing_AnyLicenseInfo, False, context=[ |
4847 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/member", | 4403 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", "expandedlicensing_NoneLicense"), |
4404 | ("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", "expandedlicensing_NoAssertionLicense"), | ||
4405 | ],)), | ||
4406 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/member", | ||
4848 | min_count=2, | 4407 | min_count=2, |
4849 | compact="expandedlicensing_member", | 4408 | compact="expandedlicensing_member", |
4850 | ) | 4409 | ) |
4851 | 4410 | ||
4852 | 4411 | ||
4853 | # Abstract class representing a License or an OrLaterOperator. | 4412 | # Abstract class representing a License or an OrLaterOperator. |
4854 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/ExtendableLicense", compact_type="expandedlicensing_ExtendableLicense", abstract=True) | 4413 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ExtendableLicense", compact_type="expandedlicensing_ExtendableLicense", abstract=True) |
4855 | class expandedlicensing_ExtendableLicense(simplelicensing_AnyLicenseInfo): | 4414 | class expandedlicensing_ExtendableLicense(simplelicensing_AnyLicenseInfo): |
4856 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4415 | NODE_KIND = NodeKind.IRI |
4857 | ID_ALIAS = "spdxId" | 4416 | ID_ALIAS = "spdxId" |
4858 | NAMED_INDIVIDUALS = { | 4417 | NAMED_INDIVIDUALS = { |
4859 | } | 4418 | } |
@@ -4861,26 +4420,26 @@ class expandedlicensing_ExtendableLicense(simplelicensing_AnyLicenseInfo): | |||
4861 | 4420 | ||
4862 | # A concrete subclass of AnyLicenseInfo used by Individuals in the | 4421 | # A concrete subclass of AnyLicenseInfo used by Individuals in the |
4863 | # ExpandedLicensing profile. | 4422 | # ExpandedLicensing profile. |
4864 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/IndividualLicensingInfo", compact_type="expandedlicensing_IndividualLicensingInfo", abstract=False) | 4423 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/IndividualLicensingInfo", compact_type="expandedlicensing_IndividualLicensingInfo", abstract=False) |
4865 | class expandedlicensing_IndividualLicensingInfo(simplelicensing_AnyLicenseInfo): | 4424 | class expandedlicensing_IndividualLicensingInfo(simplelicensing_AnyLicenseInfo): |
4866 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4425 | NODE_KIND = NodeKind.IRI |
4867 | ID_ALIAS = "spdxId" | 4426 | ID_ALIAS = "spdxId" |
4868 | NAMED_INDIVIDUALS = { | 4427 | NAMED_INDIVIDUALS = { |
4869 | "NoAssertionLicense": "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoAssertionLicense", | 4428 | "NoAssertionLicense": "https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense", |
4870 | "NoneLicense": "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoneLicense", | 4429 | "NoneLicense": "https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense", |
4871 | } | 4430 | } |
4872 | # An Individual Value for License when no assertion can be made about its actual | 4431 | # An Individual Value for License when no assertion can be made about its actual |
4873 | # value. | 4432 | # value. |
4874 | NoAssertionLicense = "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoAssertionLicense" | 4433 | NoAssertionLicense = "https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoAssertionLicense" |
4875 | # An Individual Value for License where the SPDX data creator determines that no | 4434 | # An Individual Value for License where the SPDX data creator determines that no |
4876 | # license is present. | 4435 | # license is present. |
4877 | NoneLicense = "https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/NoneLicense" | 4436 | NoneLicense = "https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/NoneLicense" |
4878 | 4437 | ||
4879 | 4438 | ||
4880 | # Abstract class for the portion of an AnyLicenseInfo representing a license. | 4439 | # Abstract class for the portion of an AnyLicenseInfo representing a license. |
4881 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/License", compact_type="expandedlicensing_License", abstract=True) | 4440 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/License", compact_type="expandedlicensing_License", abstract=True) |
4882 | class expandedlicensing_License(expandedlicensing_ExtendableLicense): | 4441 | class expandedlicensing_License(expandedlicensing_ExtendableLicense): |
4883 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4442 | NODE_KIND = NodeKind.IRI |
4884 | ID_ALIAS = "spdxId" | 4443 | ID_ALIAS = "spdxId" |
4885 | NAMED_INDIVIDUALS = { | 4444 | NAMED_INDIVIDUALS = { |
4886 | } | 4445 | } |
@@ -4893,23 +4452,23 @@ class expandedlicensing_License(expandedlicensing_ExtendableLicense): | |||
4893 | cls._add_property( | 4452 | cls._add_property( |
4894 | "expandedlicensing_isDeprecatedLicenseId", | 4453 | "expandedlicensing_isDeprecatedLicenseId", |
4895 | BooleanProp(), | 4454 | BooleanProp(), |
4896 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/isDeprecatedLicenseId", | 4455 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/isDeprecatedLicenseId", |
4897 | compact="expandedlicensing_isDeprecatedLicenseId", | 4456 | compact="expandedlicensing_isDeprecatedLicenseId", |
4898 | ) | 4457 | ) |
4899 | # Specifies whether the License is listed as free by the | 4458 | # Specifies whether the License is listed as free by the |
4900 | # [Free Software Foundation (FSF)](https://fsf.org). | 4459 | # Free Software Foundation (FSF). |
4901 | cls._add_property( | 4460 | cls._add_property( |
4902 | "expandedlicensing_isFsfLibre", | 4461 | "expandedlicensing_isFsfLibre", |
4903 | BooleanProp(), | 4462 | BooleanProp(), |
4904 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/isFsfLibre", | 4463 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/isFsfLibre", |
4905 | compact="expandedlicensing_isFsfLibre", | 4464 | compact="expandedlicensing_isFsfLibre", |
4906 | ) | 4465 | ) |
4907 | # Specifies whether the License is listed as approved by the | 4466 | # Specifies whether the License is listed as approved by the |
4908 | # [Open Source Initiative (OSI)](https://opensource.org). | 4467 | # Open Source Initiative (OSI). |
4909 | cls._add_property( | 4468 | cls._add_property( |
4910 | "expandedlicensing_isOsiApproved", | 4469 | "expandedlicensing_isOsiApproved", |
4911 | BooleanProp(), | 4470 | BooleanProp(), |
4912 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/isOsiApproved", | 4471 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/isOsiApproved", |
4913 | compact="expandedlicensing_isOsiApproved", | 4472 | compact="expandedlicensing_isOsiApproved", |
4914 | ) | 4473 | ) |
4915 | # Identifies all the text and metadata associated with a license in the license | 4474 | # Identifies all the text and metadata associated with a license in the license |
@@ -4917,7 +4476,7 @@ class expandedlicensing_License(expandedlicensing_ExtendableLicense): | |||
4917 | cls._add_property( | 4476 | cls._add_property( |
4918 | "expandedlicensing_licenseXml", | 4477 | "expandedlicensing_licenseXml", |
4919 | StringProp(), | 4478 | StringProp(), |
4920 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/licenseXml", | 4479 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/licenseXml", |
4921 | compact="expandedlicensing_licenseXml", | 4480 | compact="expandedlicensing_licenseXml", |
4922 | ) | 4481 | ) |
4923 | # Specifies the licenseId that is preferred to be used in place of a deprecated | 4482 | # Specifies the licenseId that is preferred to be used in place of a deprecated |
@@ -4925,14 +4484,14 @@ class expandedlicensing_License(expandedlicensing_ExtendableLicense): | |||
4925 | cls._add_property( | 4484 | cls._add_property( |
4926 | "expandedlicensing_obsoletedBy", | 4485 | "expandedlicensing_obsoletedBy", |
4927 | StringProp(), | 4486 | StringProp(), |
4928 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/obsoletedBy", | 4487 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/obsoletedBy", |
4929 | compact="expandedlicensing_obsoletedBy", | 4488 | compact="expandedlicensing_obsoletedBy", |
4930 | ) | 4489 | ) |
4931 | # Contains a URL where the License or LicenseAddition can be found in use. | 4490 | # Contains a URL where the License or LicenseAddition can be found in use. |
4932 | cls._add_property( | 4491 | cls._add_property( |
4933 | "expandedlicensing_seeAlso", | 4492 | "expandedlicensing_seeAlso", |
4934 | ListProp(AnyURIProp()), | 4493 | ListProp(AnyURIProp()), |
4935 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/seeAlso", | 4494 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/seeAlso", |
4936 | compact="expandedlicensing_seeAlso", | 4495 | compact="expandedlicensing_seeAlso", |
4937 | ) | 4496 | ) |
4938 | # Provides a License author's preferred text to indicate that a file is covered | 4497 | # Provides a License author's preferred text to indicate that a file is covered |
@@ -4940,30 +4499,30 @@ class expandedlicensing_License(expandedlicensing_ExtendableLicense): | |||
4940 | cls._add_property( | 4499 | cls._add_property( |
4941 | "expandedlicensing_standardLicenseHeader", | 4500 | "expandedlicensing_standardLicenseHeader", |
4942 | StringProp(), | 4501 | StringProp(), |
4943 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/standardLicenseHeader", | 4502 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/standardLicenseHeader", |
4944 | compact="expandedlicensing_standardLicenseHeader", | 4503 | compact="expandedlicensing_standardLicenseHeader", |
4945 | ) | 4504 | ) |
4946 | # Identifies the full text of a License, in SPDX templating format. | 4505 | # Identifies the full text of a License, in SPDX templating format. |
4947 | cls._add_property( | 4506 | cls._add_property( |
4948 | "expandedlicensing_standardLicenseTemplate", | 4507 | "expandedlicensing_standardLicenseTemplate", |
4949 | StringProp(), | 4508 | StringProp(), |
4950 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/standardLicenseTemplate", | 4509 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/standardLicenseTemplate", |
4951 | compact="expandedlicensing_standardLicenseTemplate", | 4510 | compact="expandedlicensing_standardLicenseTemplate", |
4952 | ) | 4511 | ) |
4953 | # Identifies the full text of a License or Addition. | 4512 | # Identifies the full text of a License or Addition. |
4954 | cls._add_property( | 4513 | cls._add_property( |
4955 | "simplelicensing_licenseText", | 4514 | "simplelicensing_licenseText", |
4956 | StringProp(), | 4515 | StringProp(), |
4957 | iri="https://spdx.org/rdf/3.0.0/terms/SimpleLicensing/licenseText", | 4516 | iri="https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/licenseText", |
4958 | min_count=1, | 4517 | min_count=1, |
4959 | compact="simplelicensing_licenseText", | 4518 | compact="simplelicensing_licenseText", |
4960 | ) | 4519 | ) |
4961 | 4520 | ||
4962 | 4521 | ||
4963 | # A license that is listed on the SPDX License List. | 4522 | # A license that is listed on the SPDX License List. |
4964 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/ListedLicense", compact_type="expandedlicensing_ListedLicense", abstract=False) | 4523 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/ListedLicense", compact_type="expandedlicensing_ListedLicense", abstract=False) |
4965 | class expandedlicensing_ListedLicense(expandedlicensing_License): | 4524 | class expandedlicensing_ListedLicense(expandedlicensing_License): |
4966 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4525 | NODE_KIND = NodeKind.IRI |
4967 | ID_ALIAS = "spdxId" | 4526 | ID_ALIAS = "spdxId" |
4968 | NAMED_INDIVIDUALS = { | 4527 | NAMED_INDIVIDUALS = { |
4969 | } | 4528 | } |
@@ -4976,7 +4535,7 @@ class expandedlicensing_ListedLicense(expandedlicensing_License): | |||
4976 | cls._add_property( | 4535 | cls._add_property( |
4977 | "expandedlicensing_deprecatedVersion", | 4536 | "expandedlicensing_deprecatedVersion", |
4978 | StringProp(), | 4537 | StringProp(), |
4979 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/deprecatedVersion", | 4538 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/deprecatedVersion", |
4980 | compact="expandedlicensing_deprecatedVersion", | 4539 | compact="expandedlicensing_deprecatedVersion", |
4981 | ) | 4540 | ) |
4982 | # Specifies the SPDX License List version in which this ListedLicense or | 4541 | # Specifies the SPDX License List version in which this ListedLicense or |
@@ -4984,16 +4543,16 @@ class expandedlicensing_ListedLicense(expandedlicensing_License): | |||
4984 | cls._add_property( | 4543 | cls._add_property( |
4985 | "expandedlicensing_listVersionAdded", | 4544 | "expandedlicensing_listVersionAdded", |
4986 | StringProp(), | 4545 | StringProp(), |
4987 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/listVersionAdded", | 4546 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/listVersionAdded", |
4988 | compact="expandedlicensing_listVersionAdded", | 4547 | compact="expandedlicensing_listVersionAdded", |
4989 | ) | 4548 | ) |
4990 | 4549 | ||
4991 | 4550 | ||
4992 | # Portion of an AnyLicenseInfo representing this version, or any later version, | 4551 | # Portion of an AnyLicenseInfo representing this version, or any later version, |
4993 | # of the indicated License. | 4552 | # of the indicated License. |
4994 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/OrLaterOperator", compact_type="expandedlicensing_OrLaterOperator", abstract=False) | 4553 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/OrLaterOperator", compact_type="expandedlicensing_OrLaterOperator", abstract=False) |
4995 | class expandedlicensing_OrLaterOperator(expandedlicensing_ExtendableLicense): | 4554 | class expandedlicensing_OrLaterOperator(expandedlicensing_ExtendableLicense): |
4996 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4555 | NODE_KIND = NodeKind.IRI |
4997 | ID_ALIAS = "spdxId" | 4556 | ID_ALIAS = "spdxId" |
4998 | NAMED_INDIVIDUALS = { | 4557 | NAMED_INDIVIDUALS = { |
4999 | } | 4558 | } |
@@ -5005,7 +4564,7 @@ class expandedlicensing_OrLaterOperator(expandedlicensing_ExtendableLicense): | |||
5005 | cls._add_property( | 4564 | cls._add_property( |
5006 | "expandedlicensing_subjectLicense", | 4565 | "expandedlicensing_subjectLicense", |
5007 | ObjectProp(expandedlicensing_License, True), | 4566 | ObjectProp(expandedlicensing_License, True), |
5008 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/subjectLicense", | 4567 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/subjectLicense", |
5009 | min_count=1, | 4568 | min_count=1, |
5010 | compact="expandedlicensing_subjectLicense", | 4569 | compact="expandedlicensing_subjectLicense", |
5011 | ) | 4570 | ) |
@@ -5013,9 +4572,9 @@ class expandedlicensing_OrLaterOperator(expandedlicensing_ExtendableLicense): | |||
5013 | 4572 | ||
5014 | # Portion of an AnyLicenseInfo representing a License which has additional | 4573 | # Portion of an AnyLicenseInfo representing a License which has additional |
5015 | # text applied to it. | 4574 | # text applied to it. |
5016 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/WithAdditionOperator", compact_type="expandedlicensing_WithAdditionOperator", abstract=False) | 4575 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/WithAdditionOperator", compact_type="expandedlicensing_WithAdditionOperator", abstract=False) |
5017 | class expandedlicensing_WithAdditionOperator(simplelicensing_AnyLicenseInfo): | 4576 | class expandedlicensing_WithAdditionOperator(simplelicensing_AnyLicenseInfo): |
5018 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4577 | NODE_KIND = NodeKind.IRI |
5019 | ID_ALIAS = "spdxId" | 4578 | ID_ALIAS = "spdxId" |
5020 | NAMED_INDIVIDUALS = { | 4579 | NAMED_INDIVIDUALS = { |
5021 | } | 4580 | } |
@@ -5027,7 +4586,7 @@ class expandedlicensing_WithAdditionOperator(simplelicensing_AnyLicenseInfo): | |||
5027 | cls._add_property( | 4586 | cls._add_property( |
5028 | "expandedlicensing_subjectAddition", | 4587 | "expandedlicensing_subjectAddition", |
5029 | ObjectProp(expandedlicensing_LicenseAddition, True), | 4588 | ObjectProp(expandedlicensing_LicenseAddition, True), |
5030 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/subjectAddition", | 4589 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/subjectAddition", |
5031 | min_count=1, | 4590 | min_count=1, |
5032 | compact="expandedlicensing_subjectAddition", | 4591 | compact="expandedlicensing_subjectAddition", |
5033 | ) | 4592 | ) |
@@ -5035,16 +4594,16 @@ class expandedlicensing_WithAdditionOperator(simplelicensing_AnyLicenseInfo): | |||
5035 | cls._add_property( | 4594 | cls._add_property( |
5036 | "expandedlicensing_subjectExtendableLicense", | 4595 | "expandedlicensing_subjectExtendableLicense", |
5037 | ObjectProp(expandedlicensing_ExtendableLicense, True), | 4596 | ObjectProp(expandedlicensing_ExtendableLicense, True), |
5038 | iri="https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/subjectExtendableLicense", | 4597 | iri="https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/subjectExtendableLicense", |
5039 | min_count=1, | 4598 | min_count=1, |
5040 | compact="expandedlicensing_subjectExtendableLicense", | 4599 | compact="expandedlicensing_subjectExtendableLicense", |
5041 | ) | 4600 | ) |
5042 | 4601 | ||
5043 | 4602 | ||
5044 | # A type of extension consisting of a list of name value pairs. | 4603 | # A type of extension consisting of a list of name value pairs. |
5045 | @register("https://spdx.org/rdf/3.0.0/terms/Extension/CdxPropertiesExtension", compact_type="extension_CdxPropertiesExtension", abstract=False) | 4604 | @register("https://spdx.org/rdf/3.0.1/terms/Extension/CdxPropertiesExtension", compact_type="extension_CdxPropertiesExtension", abstract=False) |
5046 | class extension_CdxPropertiesExtension(extension_Extension): | 4605 | class extension_CdxPropertiesExtension(extension_Extension): |
5047 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4606 | NODE_KIND = NodeKind.BlankNode |
5048 | NAMED_INDIVIDUALS = { | 4607 | NAMED_INDIVIDUALS = { |
5049 | } | 4608 | } |
5050 | 4609 | ||
@@ -5055,16 +4614,16 @@ class extension_CdxPropertiesExtension(extension_Extension): | |||
5055 | cls._add_property( | 4614 | cls._add_property( |
5056 | "extension_cdxProperty", | 4615 | "extension_cdxProperty", |
5057 | ListProp(ObjectProp(extension_CdxPropertyEntry, False)), | 4616 | ListProp(ObjectProp(extension_CdxPropertyEntry, False)), |
5058 | iri="https://spdx.org/rdf/3.0.0/terms/Extension/cdxProperty", | 4617 | iri="https://spdx.org/rdf/3.0.1/terms/Extension/cdxProperty", |
5059 | min_count=1, | 4618 | min_count=1, |
5060 | compact="extension_cdxProperty", | 4619 | compact="extension_cdxProperty", |
5061 | ) | 4620 | ) |
5062 | 4621 | ||
5063 | 4622 | ||
5064 | # Provides a CVSS version 2.0 assessment for a vulnerability. | 4623 | # Provides a CVSS version 2.0 assessment for a vulnerability. |
5065 | @register("https://spdx.org/rdf/3.0.0/terms/Security/CvssV2VulnAssessmentRelationship", compact_type="security_CvssV2VulnAssessmentRelationship", abstract=False) | 4624 | @register("https://spdx.org/rdf/3.0.1/terms/Security/CvssV2VulnAssessmentRelationship", compact_type="security_CvssV2VulnAssessmentRelationship", abstract=False) |
5066 | class security_CvssV2VulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4625 | class security_CvssV2VulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5067 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4626 | NODE_KIND = NodeKind.IRI |
5068 | ID_ALIAS = "spdxId" | 4627 | ID_ALIAS = "spdxId" |
5069 | NAMED_INDIVIDUALS = { | 4628 | NAMED_INDIVIDUALS = { |
5070 | } | 4629 | } |
@@ -5076,7 +4635,7 @@ class security_CvssV2VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5076 | cls._add_property( | 4635 | cls._add_property( |
5077 | "security_score", | 4636 | "security_score", |
5078 | FloatProp(), | 4637 | FloatProp(), |
5079 | iri="https://spdx.org/rdf/3.0.0/terms/Security/score", | 4638 | iri="https://spdx.org/rdf/3.0.1/terms/Security/score", |
5080 | min_count=1, | 4639 | min_count=1, |
5081 | compact="security_score", | 4640 | compact="security_score", |
5082 | ) | 4641 | ) |
@@ -5084,16 +4643,16 @@ class security_CvssV2VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5084 | cls._add_property( | 4643 | cls._add_property( |
5085 | "security_vectorString", | 4644 | "security_vectorString", |
5086 | StringProp(), | 4645 | StringProp(), |
5087 | iri="https://spdx.org/rdf/3.0.0/terms/Security/vectorString", | 4646 | iri="https://spdx.org/rdf/3.0.1/terms/Security/vectorString", |
5088 | min_count=1, | 4647 | min_count=1, |
5089 | compact="security_vectorString", | 4648 | compact="security_vectorString", |
5090 | ) | 4649 | ) |
5091 | 4650 | ||
5092 | 4651 | ||
5093 | # Provides a CVSS version 3 assessment for a vulnerability. | 4652 | # Provides a CVSS version 3 assessment for a vulnerability. |
5094 | @register("https://spdx.org/rdf/3.0.0/terms/Security/CvssV3VulnAssessmentRelationship", compact_type="security_CvssV3VulnAssessmentRelationship", abstract=False) | 4653 | @register("https://spdx.org/rdf/3.0.1/terms/Security/CvssV3VulnAssessmentRelationship", compact_type="security_CvssV3VulnAssessmentRelationship", abstract=False) |
5095 | class security_CvssV3VulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4654 | class security_CvssV3VulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5096 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4655 | NODE_KIND = NodeKind.IRI |
5097 | ID_ALIAS = "spdxId" | 4656 | ID_ALIAS = "spdxId" |
5098 | NAMED_INDIVIDUALS = { | 4657 | NAMED_INDIVIDUALS = { |
5099 | } | 4658 | } |
@@ -5105,7 +4664,7 @@ class security_CvssV3VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5105 | cls._add_property( | 4664 | cls._add_property( |
5106 | "security_score", | 4665 | "security_score", |
5107 | FloatProp(), | 4666 | FloatProp(), |
5108 | iri="https://spdx.org/rdf/3.0.0/terms/Security/score", | 4667 | iri="https://spdx.org/rdf/3.0.1/terms/Security/score", |
5109 | min_count=1, | 4668 | min_count=1, |
5110 | compact="security_score", | 4669 | compact="security_score", |
5111 | ) | 4670 | ) |
@@ -5113,13 +4672,13 @@ class security_CvssV3VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5113 | cls._add_property( | 4672 | cls._add_property( |
5114 | "security_severity", | 4673 | "security_severity", |
5115 | EnumProp([ | 4674 | EnumProp([ |
5116 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical", "critical"), | 4675 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical", "critical"), |
5117 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high", "high"), | 4676 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high", "high"), |
5118 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low", "low"), | 4677 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low", "low"), |
5119 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium", "medium"), | 4678 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium", "medium"), |
5120 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none", "none"), | 4679 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none", "none"), |
5121 | ]), | 4680 | ]), |
5122 | iri="https://spdx.org/rdf/3.0.0/terms/Security/severity", | 4681 | iri="https://spdx.org/rdf/3.0.1/terms/Security/severity", |
5123 | min_count=1, | 4682 | min_count=1, |
5124 | compact="security_severity", | 4683 | compact="security_severity", |
5125 | ) | 4684 | ) |
@@ -5127,16 +4686,16 @@ class security_CvssV3VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5127 | cls._add_property( | 4686 | cls._add_property( |
5128 | "security_vectorString", | 4687 | "security_vectorString", |
5129 | StringProp(), | 4688 | StringProp(), |
5130 | iri="https://spdx.org/rdf/3.0.0/terms/Security/vectorString", | 4689 | iri="https://spdx.org/rdf/3.0.1/terms/Security/vectorString", |
5131 | min_count=1, | 4690 | min_count=1, |
5132 | compact="security_vectorString", | 4691 | compact="security_vectorString", |
5133 | ) | 4692 | ) |
5134 | 4693 | ||
5135 | 4694 | ||
5136 | # Provides a CVSS version 4 assessment for a vulnerability. | 4695 | # Provides a CVSS version 4 assessment for a vulnerability. |
5137 | @register("https://spdx.org/rdf/3.0.0/terms/Security/CvssV4VulnAssessmentRelationship", compact_type="security_CvssV4VulnAssessmentRelationship", abstract=False) | 4696 | @register("https://spdx.org/rdf/3.0.1/terms/Security/CvssV4VulnAssessmentRelationship", compact_type="security_CvssV4VulnAssessmentRelationship", abstract=False) |
5138 | class security_CvssV4VulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4697 | class security_CvssV4VulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5139 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4698 | NODE_KIND = NodeKind.IRI |
5140 | ID_ALIAS = "spdxId" | 4699 | ID_ALIAS = "spdxId" |
5141 | NAMED_INDIVIDUALS = { | 4700 | NAMED_INDIVIDUALS = { |
5142 | } | 4701 | } |
@@ -5148,7 +4707,7 @@ class security_CvssV4VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5148 | cls._add_property( | 4707 | cls._add_property( |
5149 | "security_score", | 4708 | "security_score", |
5150 | FloatProp(), | 4709 | FloatProp(), |
5151 | iri="https://spdx.org/rdf/3.0.0/terms/Security/score", | 4710 | iri="https://spdx.org/rdf/3.0.1/terms/Security/score", |
5152 | min_count=1, | 4711 | min_count=1, |
5153 | compact="security_score", | 4712 | compact="security_score", |
5154 | ) | 4713 | ) |
@@ -5156,13 +4715,13 @@ class security_CvssV4VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5156 | cls._add_property( | 4715 | cls._add_property( |
5157 | "security_severity", | 4716 | "security_severity", |
5158 | EnumProp([ | 4717 | EnumProp([ |
5159 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/critical", "critical"), | 4718 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/critical", "critical"), |
5160 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/high", "high"), | 4719 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/high", "high"), |
5161 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/low", "low"), | 4720 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/low", "low"), |
5162 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/medium", "medium"), | 4721 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/medium", "medium"), |
5163 | ("https://spdx.org/rdf/3.0.0/terms/Security/CvssSeverityType/none", "none"), | 4722 | ("https://spdx.org/rdf/3.0.1/terms/Security/CvssSeverityType/none", "none"), |
5164 | ]), | 4723 | ]), |
5165 | iri="https://spdx.org/rdf/3.0.0/terms/Security/severity", | 4724 | iri="https://spdx.org/rdf/3.0.1/terms/Security/severity", |
5166 | min_count=1, | 4725 | min_count=1, |
5167 | compact="security_severity", | 4726 | compact="security_severity", |
5168 | ) | 4727 | ) |
@@ -5170,16 +4729,16 @@ class security_CvssV4VulnAssessmentRelationship(security_VulnAssessmentRelations | |||
5170 | cls._add_property( | 4729 | cls._add_property( |
5171 | "security_vectorString", | 4730 | "security_vectorString", |
5172 | StringProp(), | 4731 | StringProp(), |
5173 | iri="https://spdx.org/rdf/3.0.0/terms/Security/vectorString", | 4732 | iri="https://spdx.org/rdf/3.0.1/terms/Security/vectorString", |
5174 | min_count=1, | 4733 | min_count=1, |
5175 | compact="security_vectorString", | 4734 | compact="security_vectorString", |
5176 | ) | 4735 | ) |
5177 | 4736 | ||
5178 | 4737 | ||
5179 | # Provides an EPSS assessment for a vulnerability. | 4738 | # Provides an EPSS assessment for a vulnerability. |
5180 | @register("https://spdx.org/rdf/3.0.0/terms/Security/EpssVulnAssessmentRelationship", compact_type="security_EpssVulnAssessmentRelationship", abstract=False) | 4739 | @register("https://spdx.org/rdf/3.0.1/terms/Security/EpssVulnAssessmentRelationship", compact_type="security_EpssVulnAssessmentRelationship", abstract=False) |
5181 | class security_EpssVulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4740 | class security_EpssVulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5182 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4741 | NODE_KIND = NodeKind.IRI |
5183 | ID_ALIAS = "spdxId" | 4742 | ID_ALIAS = "spdxId" |
5184 | NAMED_INDIVIDUALS = { | 4743 | NAMED_INDIVIDUALS = { |
5185 | } | 4744 | } |
@@ -5191,7 +4750,7 @@ class security_EpssVulnAssessmentRelationship(security_VulnAssessmentRelationshi | |||
5191 | cls._add_property( | 4750 | cls._add_property( |
5192 | "security_percentile", | 4751 | "security_percentile", |
5193 | FloatProp(), | 4752 | FloatProp(), |
5194 | iri="https://spdx.org/rdf/3.0.0/terms/Security/percentile", | 4753 | iri="https://spdx.org/rdf/3.0.1/terms/Security/percentile", |
5195 | min_count=1, | 4754 | min_count=1, |
5196 | compact="security_percentile", | 4755 | compact="security_percentile", |
5197 | ) | 4756 | ) |
@@ -5199,24 +4758,16 @@ class security_EpssVulnAssessmentRelationship(security_VulnAssessmentRelationshi | |||
5199 | cls._add_property( | 4758 | cls._add_property( |
5200 | "security_probability", | 4759 | "security_probability", |
5201 | FloatProp(), | 4760 | FloatProp(), |
5202 | iri="https://spdx.org/rdf/3.0.0/terms/Security/probability", | 4761 | iri="https://spdx.org/rdf/3.0.1/terms/Security/probability", |
5203 | min_count=1, | 4762 | min_count=1, |
5204 | compact="security_probability", | 4763 | compact="security_probability", |
5205 | ) | 4764 | ) |
5206 | # Specifies the time when a vulnerability was published. | ||
5207 | cls._add_property( | ||
5208 | "security_publishedTime", | ||
5209 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | ||
5210 | iri="https://spdx.org/rdf/3.0.0/terms/Security/publishedTime", | ||
5211 | min_count=1, | ||
5212 | compact="security_publishedTime", | ||
5213 | ) | ||
5214 | 4765 | ||
5215 | 4766 | ||
5216 | # Provides an exploit assessment of a vulnerability. | 4767 | # Provides an exploit assessment of a vulnerability. |
5217 | @register("https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogVulnAssessmentRelationship", compact_type="security_ExploitCatalogVulnAssessmentRelationship", abstract=False) | 4768 | @register("https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogVulnAssessmentRelationship", compact_type="security_ExploitCatalogVulnAssessmentRelationship", abstract=False) |
5218 | class security_ExploitCatalogVulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4769 | class security_ExploitCatalogVulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5219 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4770 | NODE_KIND = NodeKind.IRI |
5220 | ID_ALIAS = "spdxId" | 4771 | ID_ALIAS = "spdxId" |
5221 | NAMED_INDIVIDUALS = { | 4772 | NAMED_INDIVIDUALS = { |
5222 | } | 4773 | } |
@@ -5228,10 +4779,10 @@ class security_ExploitCatalogVulnAssessmentRelationship(security_VulnAssessmentR | |||
5228 | cls._add_property( | 4779 | cls._add_property( |
5229 | "security_catalogType", | 4780 | "security_catalogType", |
5230 | EnumProp([ | 4781 | EnumProp([ |
5231 | ("https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/kev", "kev"), | 4782 | ("https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/kev", "kev"), |
5232 | ("https://spdx.org/rdf/3.0.0/terms/Security/ExploitCatalogType/other", "other"), | 4783 | ("https://spdx.org/rdf/3.0.1/terms/Security/ExploitCatalogType/other", "other"), |
5233 | ]), | 4784 | ]), |
5234 | iri="https://spdx.org/rdf/3.0.0/terms/Security/catalogType", | 4785 | iri="https://spdx.org/rdf/3.0.1/terms/Security/catalogType", |
5235 | min_count=1, | 4786 | min_count=1, |
5236 | compact="security_catalogType", | 4787 | compact="security_catalogType", |
5237 | ) | 4788 | ) |
@@ -5239,7 +4790,7 @@ class security_ExploitCatalogVulnAssessmentRelationship(security_VulnAssessmentR | |||
5239 | cls._add_property( | 4790 | cls._add_property( |
5240 | "security_exploited", | 4791 | "security_exploited", |
5241 | BooleanProp(), | 4792 | BooleanProp(), |
5242 | iri="https://spdx.org/rdf/3.0.0/terms/Security/exploited", | 4793 | iri="https://spdx.org/rdf/3.0.1/terms/Security/exploited", |
5243 | min_count=1, | 4794 | min_count=1, |
5244 | compact="security_exploited", | 4795 | compact="security_exploited", |
5245 | ) | 4796 | ) |
@@ -5247,16 +4798,16 @@ class security_ExploitCatalogVulnAssessmentRelationship(security_VulnAssessmentR | |||
5247 | cls._add_property( | 4798 | cls._add_property( |
5248 | "security_locator", | 4799 | "security_locator", |
5249 | AnyURIProp(), | 4800 | AnyURIProp(), |
5250 | iri="https://spdx.org/rdf/3.0.0/terms/Security/locator", | 4801 | iri="https://spdx.org/rdf/3.0.1/terms/Security/locator", |
5251 | min_count=1, | 4802 | min_count=1, |
5252 | compact="security_locator", | 4803 | compact="security_locator", |
5253 | ) | 4804 | ) |
5254 | 4805 | ||
5255 | 4806 | ||
5256 | # Provides an SSVC assessment for a vulnerability. | 4807 | # Provides an SSVC assessment for a vulnerability. |
5257 | @register("https://spdx.org/rdf/3.0.0/terms/Security/SsvcVulnAssessmentRelationship", compact_type="security_SsvcVulnAssessmentRelationship", abstract=False) | 4808 | @register("https://spdx.org/rdf/3.0.1/terms/Security/SsvcVulnAssessmentRelationship", compact_type="security_SsvcVulnAssessmentRelationship", abstract=False) |
5258 | class security_SsvcVulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4809 | class security_SsvcVulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5259 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4810 | NODE_KIND = NodeKind.IRI |
5260 | ID_ALIAS = "spdxId" | 4811 | ID_ALIAS = "spdxId" |
5261 | NAMED_INDIVIDUALS = { | 4812 | NAMED_INDIVIDUALS = { |
5262 | } | 4813 | } |
@@ -5264,25 +4815,26 @@ class security_SsvcVulnAssessmentRelationship(security_VulnAssessmentRelationshi | |||
5264 | @classmethod | 4815 | @classmethod |
5265 | def _register_props(cls): | 4816 | def _register_props(cls): |
5266 | super()._register_props() | 4817 | super()._register_props() |
5267 | # Provide the enumeration of possible decisions in the Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree [https://www.cisa.gov/sites/default/files/publications/cisa-ssvc-guide%20508c.pdf](https://www.cisa.gov/sites/default/files/publications/cisa-ssvc-guide%20508c.pdf) | 4818 | # Provide the enumeration of possible decisions in the |
4819 | # [Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree](https://www.cisa.gov/stakeholder-specific-vulnerability-categorization-ssvc). | ||
5268 | cls._add_property( | 4820 | cls._add_property( |
5269 | "security_decisionType", | 4821 | "security_decisionType", |
5270 | EnumProp([ | 4822 | EnumProp([ |
5271 | ("https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/act", "act"), | 4823 | ("https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/act", "act"), |
5272 | ("https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/attend", "attend"), | 4824 | ("https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/attend", "attend"), |
5273 | ("https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/track", "track"), | 4825 | ("https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/track", "track"), |
5274 | ("https://spdx.org/rdf/3.0.0/terms/Security/SsvcDecisionType/trackStar", "trackStar"), | 4826 | ("https://spdx.org/rdf/3.0.1/terms/Security/SsvcDecisionType/trackStar", "trackStar"), |
5275 | ]), | 4827 | ]), |
5276 | iri="https://spdx.org/rdf/3.0.0/terms/Security/decisionType", | 4828 | iri="https://spdx.org/rdf/3.0.1/terms/Security/decisionType", |
5277 | min_count=1, | 4829 | min_count=1, |
5278 | compact="security_decisionType", | 4830 | compact="security_decisionType", |
5279 | ) | 4831 | ) |
5280 | 4832 | ||
5281 | 4833 | ||
5282 | # Asbtract ancestor class for all VEX relationships | 4834 | # Asbtract ancestor class for all VEX relationships |
5283 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexVulnAssessmentRelationship", compact_type="security_VexVulnAssessmentRelationship", abstract=True) | 4835 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexVulnAssessmentRelationship", compact_type="security_VexVulnAssessmentRelationship", abstract=True) |
5284 | class security_VexVulnAssessmentRelationship(security_VulnAssessmentRelationship): | 4836 | class security_VexVulnAssessmentRelationship(security_VulnAssessmentRelationship): |
5285 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4837 | NODE_KIND = NodeKind.IRI |
5286 | ID_ALIAS = "spdxId" | 4838 | ID_ALIAS = "spdxId" |
5287 | NAMED_INDIVIDUALS = { | 4839 | NAMED_INDIVIDUALS = { |
5288 | } | 4840 | } |
@@ -5294,22 +4846,22 @@ class security_VexVulnAssessmentRelationship(security_VulnAssessmentRelationship | |||
5294 | cls._add_property( | 4846 | cls._add_property( |
5295 | "security_statusNotes", | 4847 | "security_statusNotes", |
5296 | StringProp(), | 4848 | StringProp(), |
5297 | iri="https://spdx.org/rdf/3.0.0/terms/Security/statusNotes", | 4849 | iri="https://spdx.org/rdf/3.0.1/terms/Security/statusNotes", |
5298 | compact="security_statusNotes", | 4850 | compact="security_statusNotes", |
5299 | ) | 4851 | ) |
5300 | # Specifies the version of a VEX statement. | 4852 | # Specifies the version of a VEX statement. |
5301 | cls._add_property( | 4853 | cls._add_property( |
5302 | "security_vexVersion", | 4854 | "security_vexVersion", |
5303 | StringProp(), | 4855 | StringProp(), |
5304 | iri="https://spdx.org/rdf/3.0.0/terms/Security/vexVersion", | 4856 | iri="https://spdx.org/rdf/3.0.1/terms/Security/vexVersion", |
5305 | compact="security_vexVersion", | 4857 | compact="security_vexVersion", |
5306 | ) | 4858 | ) |
5307 | 4859 | ||
5308 | 4860 | ||
5309 | # Specifies a vulnerability and its associated information. | 4861 | # Specifies a vulnerability and its associated information. |
5310 | @register("https://spdx.org/rdf/3.0.0/terms/Security/Vulnerability", compact_type="security_Vulnerability", abstract=False) | 4862 | @register("https://spdx.org/rdf/3.0.1/terms/Security/Vulnerability", compact_type="security_Vulnerability", abstract=False) |
5311 | class security_Vulnerability(Artifact): | 4863 | class security_Vulnerability(Artifact): |
5312 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4864 | NODE_KIND = NodeKind.IRI |
5313 | ID_ALIAS = "spdxId" | 4865 | ID_ALIAS = "spdxId" |
5314 | NAMED_INDIVIDUALS = { | 4866 | NAMED_INDIVIDUALS = { |
5315 | } | 4867 | } |
@@ -5321,29 +4873,29 @@ class security_Vulnerability(Artifact): | |||
5321 | cls._add_property( | 4873 | cls._add_property( |
5322 | "security_modifiedTime", | 4874 | "security_modifiedTime", |
5323 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4875 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
5324 | iri="https://spdx.org/rdf/3.0.0/terms/Security/modifiedTime", | 4876 | iri="https://spdx.org/rdf/3.0.1/terms/Security/modifiedTime", |
5325 | compact="security_modifiedTime", | 4877 | compact="security_modifiedTime", |
5326 | ) | 4878 | ) |
5327 | # Specifies the time when a vulnerability was published. | 4879 | # Specifies the time when a vulnerability was published. |
5328 | cls._add_property( | 4880 | cls._add_property( |
5329 | "security_publishedTime", | 4881 | "security_publishedTime", |
5330 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4882 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
5331 | iri="https://spdx.org/rdf/3.0.0/terms/Security/publishedTime", | 4883 | iri="https://spdx.org/rdf/3.0.1/terms/Security/publishedTime", |
5332 | compact="security_publishedTime", | 4884 | compact="security_publishedTime", |
5333 | ) | 4885 | ) |
5334 | # Specified the time and date when a vulnerability was withdrawn. | 4886 | # Specified the time and date when a vulnerability was withdrawn. |
5335 | cls._add_property( | 4887 | cls._add_property( |
5336 | "security_withdrawnTime", | 4888 | "security_withdrawnTime", |
5337 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 4889 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
5338 | iri="https://spdx.org/rdf/3.0.0/terms/Security/withdrawnTime", | 4890 | iri="https://spdx.org/rdf/3.0.1/terms/Security/withdrawnTime", |
5339 | compact="security_withdrawnTime", | 4891 | compact="security_withdrawnTime", |
5340 | ) | 4892 | ) |
5341 | 4893 | ||
5342 | 4894 | ||
5343 | # A distinct article or unit related to Software. | 4895 | # A distinct article or unit related to Software. |
5344 | @register("https://spdx.org/rdf/3.0.0/terms/Software/SoftwareArtifact", compact_type="software_SoftwareArtifact", abstract=True) | 4896 | @register("https://spdx.org/rdf/3.0.1/terms/Software/SoftwareArtifact", compact_type="software_SoftwareArtifact", abstract=True) |
5345 | class software_SoftwareArtifact(Artifact): | 4897 | class software_SoftwareArtifact(Artifact): |
5346 | NODE_KIND = NodeKind.BlankNodeOrIRI | 4898 | NODE_KIND = NodeKind.IRI |
5347 | ID_ALIAS = "spdxId" | 4899 | ID_ALIAS = "spdxId" |
5348 | NAMED_INDIVIDUALS = { | 4900 | NAMED_INDIVIDUALS = { |
5349 | } | 4901 | } |
@@ -5355,37 +4907,37 @@ class software_SoftwareArtifact(Artifact): | |||
5355 | cls._add_property( | 4907 | cls._add_property( |
5356 | "software_additionalPurpose", | 4908 | "software_additionalPurpose", |
5357 | ListProp(EnumProp([ | 4909 | ListProp(EnumProp([ |
5358 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application", "application"), | 4910 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application", "application"), |
5359 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive", "archive"), | 4911 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive", "archive"), |
5360 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom", "bom"), | 4912 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom", "bom"), |
5361 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration", "configuration"), | 4913 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration", "configuration"), |
5362 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container", "container"), | 4914 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container", "container"), |
5363 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data", "data"), | 4915 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data", "data"), |
5364 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device", "device"), | 4916 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device", "device"), |
5365 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver", "deviceDriver"), | 4917 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver", "deviceDriver"), |
5366 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage", "diskImage"), | 4918 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage", "diskImage"), |
5367 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation", "documentation"), | 4919 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation", "documentation"), |
5368 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence", "evidence"), | 4920 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence", "evidence"), |
5369 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable", "executable"), | 4921 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable", "executable"), |
5370 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file", "file"), | 4922 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file", "file"), |
5371 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage", "filesystemImage"), | 4923 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage", "filesystemImage"), |
5372 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware", "firmware"), | 4924 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware", "firmware"), |
5373 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework", "framework"), | 4925 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework", "framework"), |
5374 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install", "install"), | 4926 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install", "install"), |
5375 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library", "library"), | 4927 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library", "library"), |
5376 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest", "manifest"), | 4928 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest", "manifest"), |
5377 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model", "model"), | 4929 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model", "model"), |
5378 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module", "module"), | 4930 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module", "module"), |
5379 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem", "operatingSystem"), | 4931 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem", "operatingSystem"), |
5380 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other", "other"), | 4932 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other", "other"), |
5381 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch", "patch"), | 4933 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch", "patch"), |
5382 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform", "platform"), | 4934 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform", "platform"), |
5383 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement", "requirement"), | 4935 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement", "requirement"), |
5384 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source", "source"), | 4936 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source", "source"), |
5385 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification", "specification"), | 4937 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification", "specification"), |
5386 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test", "test"), | 4938 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test", "test"), |
5387 | ])), | 4939 | ])), |
5388 | iri="https://spdx.org/rdf/3.0.0/terms/Software/additionalPurpose", | 4940 | iri="https://spdx.org/rdf/3.0.1/terms/Software/additionalPurpose", |
5389 | compact="software_additionalPurpose", | 4941 | compact="software_additionalPurpose", |
5390 | ) | 4942 | ) |
5391 | # Provides a place for the SPDX data creator to record acknowledgement text for | 4943 | # Provides a place for the SPDX data creator to record acknowledgement text for |
@@ -5393,7 +4945,7 @@ class software_SoftwareArtifact(Artifact): | |||
5393 | cls._add_property( | 4945 | cls._add_property( |
5394 | "software_attributionText", | 4946 | "software_attributionText", |
5395 | ListProp(StringProp()), | 4947 | ListProp(StringProp()), |
5396 | iri="https://spdx.org/rdf/3.0.0/terms/Software/attributionText", | 4948 | iri="https://spdx.org/rdf/3.0.1/terms/Software/attributionText", |
5397 | compact="software_attributionText", | 4949 | compact="software_attributionText", |
5398 | ) | 4950 | ) |
5399 | # A canonical, unique, immutable identifier of the artifact content, that may be | 4951 | # A canonical, unique, immutable identifier of the artifact content, that may be |
@@ -5401,7 +4953,7 @@ class software_SoftwareArtifact(Artifact): | |||
5401 | cls._add_property( | 4953 | cls._add_property( |
5402 | "software_contentIdentifier", | 4954 | "software_contentIdentifier", |
5403 | ListProp(ObjectProp(software_ContentIdentifier, False)), | 4955 | ListProp(ObjectProp(software_ContentIdentifier, False)), |
5404 | iri="https://spdx.org/rdf/3.0.0/terms/Software/contentIdentifier", | 4956 | iri="https://spdx.org/rdf/3.0.1/terms/Software/contentIdentifier", |
5405 | compact="software_contentIdentifier", | 4957 | compact="software_contentIdentifier", |
5406 | ) | 4958 | ) |
5407 | # Identifies the text of one or more copyright notices for a software Package, | 4959 | # Identifies the text of one or more copyright notices for a software Package, |
@@ -5409,62 +4961,62 @@ class software_SoftwareArtifact(Artifact): | |||
5409 | cls._add_property( | 4961 | cls._add_property( |
5410 | "software_copyrightText", | 4962 | "software_copyrightText", |
5411 | StringProp(), | 4963 | StringProp(), |
5412 | iri="https://spdx.org/rdf/3.0.0/terms/Software/copyrightText", | 4964 | iri="https://spdx.org/rdf/3.0.1/terms/Software/copyrightText", |
5413 | compact="software_copyrightText", | 4965 | compact="software_copyrightText", |
5414 | ) | 4966 | ) |
5415 | # Provides information about the primary purpose of the software artifact. | 4967 | # Provides information about the primary purpose of the software artifact. |
5416 | cls._add_property( | 4968 | cls._add_property( |
5417 | "software_primaryPurpose", | 4969 | "software_primaryPurpose", |
5418 | EnumProp([ | 4970 | EnumProp([ |
5419 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/application", "application"), | 4971 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/application", "application"), |
5420 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/archive", "archive"), | 4972 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/archive", "archive"), |
5421 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/bom", "bom"), | 4973 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/bom", "bom"), |
5422 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/configuration", "configuration"), | 4974 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/configuration", "configuration"), |
5423 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/container", "container"), | 4975 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/container", "container"), |
5424 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/data", "data"), | 4976 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/data", "data"), |
5425 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/device", "device"), | 4977 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/device", "device"), |
5426 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/deviceDriver", "deviceDriver"), | 4978 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/deviceDriver", "deviceDriver"), |
5427 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/diskImage", "diskImage"), | 4979 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/diskImage", "diskImage"), |
5428 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/documentation", "documentation"), | 4980 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/documentation", "documentation"), |
5429 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/evidence", "evidence"), | 4981 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/evidence", "evidence"), |
5430 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/executable", "executable"), | 4982 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/executable", "executable"), |
5431 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/file", "file"), | 4983 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/file", "file"), |
5432 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/filesystemImage", "filesystemImage"), | 4984 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/filesystemImage", "filesystemImage"), |
5433 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/firmware", "firmware"), | 4985 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/firmware", "firmware"), |
5434 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/framework", "framework"), | 4986 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/framework", "framework"), |
5435 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/install", "install"), | 4987 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/install", "install"), |
5436 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/library", "library"), | 4988 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/library", "library"), |
5437 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/manifest", "manifest"), | 4989 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/manifest", "manifest"), |
5438 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/model", "model"), | 4990 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/model", "model"), |
5439 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/module", "module"), | 4991 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/module", "module"), |
5440 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/operatingSystem", "operatingSystem"), | 4992 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/operatingSystem", "operatingSystem"), |
5441 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/other", "other"), | 4993 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/other", "other"), |
5442 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/patch", "patch"), | 4994 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/patch", "patch"), |
5443 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/platform", "platform"), | 4995 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/platform", "platform"), |
5444 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/requirement", "requirement"), | 4996 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/requirement", "requirement"), |
5445 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/source", "source"), | 4997 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/source", "source"), |
5446 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/specification", "specification"), | 4998 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/specification", "specification"), |
5447 | ("https://spdx.org/rdf/3.0.0/terms/Software/SoftwarePurpose/test", "test"), | 4999 | ("https://spdx.org/rdf/3.0.1/terms/Software/SoftwarePurpose/test", "test"), |
5448 | ]), | 5000 | ]), |
5449 | iri="https://spdx.org/rdf/3.0.0/terms/Software/primaryPurpose", | 5001 | iri="https://spdx.org/rdf/3.0.1/terms/Software/primaryPurpose", |
5450 | compact="software_primaryPurpose", | 5002 | compact="software_primaryPurpose", |
5451 | ) | 5003 | ) |
5452 | 5004 | ||
5453 | 5005 | ||
5454 | # A container for a grouping of SPDX-3.0 content characterizing details | 5006 | # A container for a grouping of SPDX-3.0 content characterizing details |
5455 | # (provenence, composition, licensing, etc.) about a product. | 5007 | # (provenence, composition, licensing, etc.) about a product. |
5456 | @register("https://spdx.org/rdf/3.0.0/terms/Core/Bom", compact_type="Bom", abstract=False) | 5008 | @register("https://spdx.org/rdf/3.0.1/terms/Core/Bom", compact_type="Bom", abstract=False) |
5457 | class Bom(Bundle): | 5009 | class Bom(Bundle): |
5458 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5010 | NODE_KIND = NodeKind.IRI |
5459 | ID_ALIAS = "spdxId" | 5011 | ID_ALIAS = "spdxId" |
5460 | NAMED_INDIVIDUALS = { | 5012 | NAMED_INDIVIDUALS = { |
5461 | } | 5013 | } |
5462 | 5014 | ||
5463 | 5015 | ||
5464 | # A license that is not listed on the SPDX License List. | 5016 | # A license that is not listed on the SPDX License List. |
5465 | @register("https://spdx.org/rdf/3.0.0/terms/ExpandedLicensing/CustomLicense", compact_type="expandedlicensing_CustomLicense", abstract=False) | 5017 | @register("https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/CustomLicense", compact_type="expandedlicensing_CustomLicense", abstract=False) |
5466 | class expandedlicensing_CustomLicense(expandedlicensing_License): | 5018 | class expandedlicensing_CustomLicense(expandedlicensing_License): |
5467 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5019 | NODE_KIND = NodeKind.IRI |
5468 | ID_ALIAS = "spdxId" | 5020 | ID_ALIAS = "spdxId" |
5469 | NAMED_INDIVIDUALS = { | 5021 | NAMED_INDIVIDUALS = { |
5470 | } | 5022 | } |
@@ -5472,9 +5024,9 @@ class expandedlicensing_CustomLicense(expandedlicensing_License): | |||
5472 | 5024 | ||
5473 | # Connects a vulnerability and an element designating the element as a product | 5025 | # Connects a vulnerability and an element designating the element as a product |
5474 | # affected by the vulnerability. | 5026 | # affected by the vulnerability. |
5475 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexAffectedVulnAssessmentRelationship", compact_type="security_VexAffectedVulnAssessmentRelationship", abstract=False) | 5027 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexAffectedVulnAssessmentRelationship", compact_type="security_VexAffectedVulnAssessmentRelationship", abstract=False) |
5476 | class security_VexAffectedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): | 5028 | class security_VexAffectedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): |
5477 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5029 | NODE_KIND = NodeKind.IRI |
5478 | ID_ALIAS = "spdxId" | 5030 | ID_ALIAS = "spdxId" |
5479 | NAMED_INDIVIDUALS = { | 5031 | NAMED_INDIVIDUALS = { |
5480 | } | 5032 | } |
@@ -5487,7 +5039,7 @@ class security_VexAffectedVulnAssessmentRelationship(security_VexVulnAssessmentR | |||
5487 | cls._add_property( | 5039 | cls._add_property( |
5488 | "security_actionStatement", | 5040 | "security_actionStatement", |
5489 | StringProp(), | 5041 | StringProp(), |
5490 | iri="https://spdx.org/rdf/3.0.0/terms/Security/actionStatement", | 5042 | iri="https://spdx.org/rdf/3.0.1/terms/Security/actionStatement", |
5491 | compact="security_actionStatement", | 5043 | compact="security_actionStatement", |
5492 | ) | 5044 | ) |
5493 | # Records the time when a recommended action was communicated in a VEX statement | 5045 | # Records the time when a recommended action was communicated in a VEX statement |
@@ -5495,16 +5047,16 @@ class security_VexAffectedVulnAssessmentRelationship(security_VexVulnAssessmentR | |||
5495 | cls._add_property( | 5047 | cls._add_property( |
5496 | "security_actionStatementTime", | 5048 | "security_actionStatementTime", |
5497 | ListProp(DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",)), | 5049 | ListProp(DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",)), |
5498 | iri="https://spdx.org/rdf/3.0.0/terms/Security/actionStatementTime", | 5050 | iri="https://spdx.org/rdf/3.0.1/terms/Security/actionStatementTime", |
5499 | compact="security_actionStatementTime", | 5051 | compact="security_actionStatementTime", |
5500 | ) | 5052 | ) |
5501 | 5053 | ||
5502 | 5054 | ||
5503 | # Links a vulnerability and elements representing products (in the VEX sense) where | 5055 | # Links a vulnerability and elements representing products (in the VEX sense) where |
5504 | # a fix has been applied and are no longer affected. | 5056 | # a fix has been applied and are no longer affected. |
5505 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexFixedVulnAssessmentRelationship", compact_type="security_VexFixedVulnAssessmentRelationship", abstract=False) | 5057 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexFixedVulnAssessmentRelationship", compact_type="security_VexFixedVulnAssessmentRelationship", abstract=False) |
5506 | class security_VexFixedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): | 5058 | class security_VexFixedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): |
5507 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5059 | NODE_KIND = NodeKind.IRI |
5508 | ID_ALIAS = "spdxId" | 5060 | ID_ALIAS = "spdxId" |
5509 | NAMED_INDIVIDUALS = { | 5061 | NAMED_INDIVIDUALS = { |
5510 | } | 5062 | } |
@@ -5512,9 +5064,9 @@ class security_VexFixedVulnAssessmentRelationship(security_VexVulnAssessmentRela | |||
5512 | 5064 | ||
5513 | # Links a vulnerability and one or more elements designating the latter as products | 5065 | # Links a vulnerability and one or more elements designating the latter as products |
5514 | # not affected by the vulnerability. | 5066 | # not affected by the vulnerability. |
5515 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexNotAffectedVulnAssessmentRelationship", compact_type="security_VexNotAffectedVulnAssessmentRelationship", abstract=False) | 5067 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexNotAffectedVulnAssessmentRelationship", compact_type="security_VexNotAffectedVulnAssessmentRelationship", abstract=False) |
5516 | class security_VexNotAffectedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): | 5068 | class security_VexNotAffectedVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): |
5517 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5069 | NODE_KIND = NodeKind.IRI |
5518 | ID_ALIAS = "spdxId" | 5070 | ID_ALIAS = "spdxId" |
5519 | NAMED_INDIVIDUALS = { | 5071 | NAMED_INDIVIDUALS = { |
5520 | } | 5072 | } |
@@ -5528,14 +5080,14 @@ class security_VexNotAffectedVulnAssessmentRelationship(security_VexVulnAssessme | |||
5528 | cls._add_property( | 5080 | cls._add_property( |
5529 | "security_impactStatement", | 5081 | "security_impactStatement", |
5530 | StringProp(), | 5082 | StringProp(), |
5531 | iri="https://spdx.org/rdf/3.0.0/terms/Security/impactStatement", | 5083 | iri="https://spdx.org/rdf/3.0.1/terms/Security/impactStatement", |
5532 | compact="security_impactStatement", | 5084 | compact="security_impactStatement", |
5533 | ) | 5085 | ) |
5534 | # Timestamp of impact statement. | 5086 | # Timestamp of impact statement. |
5535 | cls._add_property( | 5087 | cls._add_property( |
5536 | "security_impactStatementTime", | 5088 | "security_impactStatementTime", |
5537 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), | 5089 | DateTimeStampProp(pattern=r"^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$",), |
5538 | iri="https://spdx.org/rdf/3.0.0/terms/Security/impactStatementTime", | 5090 | iri="https://spdx.org/rdf/3.0.1/terms/Security/impactStatementTime", |
5539 | compact="security_impactStatementTime", | 5091 | compact="security_impactStatementTime", |
5540 | ) | 5092 | ) |
5541 | # Impact justification label to be used when linking a vulnerability to an element | 5093 | # Impact justification label to be used when linking a vulnerability to an element |
@@ -5544,31 +5096,31 @@ class security_VexNotAffectedVulnAssessmentRelationship(security_VexVulnAssessme | |||
5544 | cls._add_property( | 5096 | cls._add_property( |
5545 | "security_justificationType", | 5097 | "security_justificationType", |
5546 | EnumProp([ | 5098 | EnumProp([ |
5547 | ("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/componentNotPresent", "componentNotPresent"), | 5099 | ("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/componentNotPresent", "componentNotPresent"), |
5548 | ("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist", "inlineMitigationsAlreadyExist"), | 5100 | ("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/inlineMitigationsAlreadyExist", "inlineMitigationsAlreadyExist"), |
5549 | ("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary", "vulnerableCodeCannotBeControlledByAdversary"), | 5101 | ("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeCannotBeControlledByAdversary", "vulnerableCodeCannotBeControlledByAdversary"), |
5550 | ("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath", "vulnerableCodeNotInExecutePath"), | 5102 | ("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotInExecutePath", "vulnerableCodeNotInExecutePath"), |
5551 | ("https://spdx.org/rdf/3.0.0/terms/Security/VexJustificationType/vulnerableCodeNotPresent", "vulnerableCodeNotPresent"), | 5103 | ("https://spdx.org/rdf/3.0.1/terms/Security/VexJustificationType/vulnerableCodeNotPresent", "vulnerableCodeNotPresent"), |
5552 | ]), | 5104 | ]), |
5553 | iri="https://spdx.org/rdf/3.0.0/terms/Security/justificationType", | 5105 | iri="https://spdx.org/rdf/3.0.1/terms/Security/justificationType", |
5554 | compact="security_justificationType", | 5106 | compact="security_justificationType", |
5555 | ) | 5107 | ) |
5556 | 5108 | ||
5557 | 5109 | ||
5558 | # Designates elements as products where the impact of a vulnerability is being | 5110 | # Designates elements as products where the impact of a vulnerability is being |
5559 | # investigated. | 5111 | # investigated. |
5560 | @register("https://spdx.org/rdf/3.0.0/terms/Security/VexUnderInvestigationVulnAssessmentRelationship", compact_type="security_VexUnderInvestigationVulnAssessmentRelationship", abstract=False) | 5112 | @register("https://spdx.org/rdf/3.0.1/terms/Security/VexUnderInvestigationVulnAssessmentRelationship", compact_type="security_VexUnderInvestigationVulnAssessmentRelationship", abstract=False) |
5561 | class security_VexUnderInvestigationVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): | 5113 | class security_VexUnderInvestigationVulnAssessmentRelationship(security_VexVulnAssessmentRelationship): |
5562 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5114 | NODE_KIND = NodeKind.IRI |
5563 | ID_ALIAS = "spdxId" | 5115 | ID_ALIAS = "spdxId" |
5564 | NAMED_INDIVIDUALS = { | 5116 | NAMED_INDIVIDUALS = { |
5565 | } | 5117 | } |
5566 | 5118 | ||
5567 | 5119 | ||
5568 | # Refers to any object that stores content on a computer. | 5120 | # Refers to any object that stores content on a computer. |
5569 | @register("https://spdx.org/rdf/3.0.0/terms/Software/File", compact_type="software_File", abstract=False) | 5121 | @register("https://spdx.org/rdf/3.0.1/terms/Software/File", compact_type="software_File", abstract=False) |
5570 | class software_File(software_SoftwareArtifact): | 5122 | class software_File(software_SoftwareArtifact): |
5571 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5123 | NODE_KIND = NodeKind.IRI |
5572 | ID_ALIAS = "spdxId" | 5124 | ID_ALIAS = "spdxId" |
5573 | NAMED_INDIVIDUALS = { | 5125 | NAMED_INDIVIDUALS = { |
5574 | } | 5126 | } |
@@ -5576,30 +5128,30 @@ class software_File(software_SoftwareArtifact): | |||
5576 | @classmethod | 5128 | @classmethod |
5577 | def _register_props(cls): | 5129 | def _register_props(cls): |
5578 | super()._register_props() | 5130 | super()._register_props() |
5579 | # Provides information about the content type of an Element. | 5131 | # Provides information about the content type of an Element or a Property. |
5580 | cls._add_property( | 5132 | cls._add_property( |
5581 | "software_contentType", | 5133 | "contentType", |
5582 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), | 5134 | StringProp(pattern=r"^[^\/]+\/[^\/]+$",), |
5583 | iri="https://spdx.org/rdf/3.0.0/terms/Software/contentType", | 5135 | iri="https://spdx.org/rdf/3.0.1/terms/Core/contentType", |
5584 | compact="software_contentType", | 5136 | compact="contentType", |
5585 | ) | 5137 | ) |
5586 | # Describes if a given file is a directory or non-directory kind of file. | 5138 | # Describes if a given file is a directory or non-directory kind of file. |
5587 | cls._add_property( | 5139 | cls._add_property( |
5588 | "software_fileKind", | 5140 | "software_fileKind", |
5589 | EnumProp([ | 5141 | EnumProp([ |
5590 | ("https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/directory", "directory"), | 5142 | ("https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory", "directory"), |
5591 | ("https://spdx.org/rdf/3.0.0/terms/Software/FileKindType/file", "file"), | 5143 | ("https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file", "file"), |
5592 | ]), | 5144 | ]), |
5593 | iri="https://spdx.org/rdf/3.0.0/terms/Software/fileKind", | 5145 | iri="https://spdx.org/rdf/3.0.1/terms/Software/fileKind", |
5594 | compact="software_fileKind", | 5146 | compact="software_fileKind", |
5595 | ) | 5147 | ) |
5596 | 5148 | ||
5597 | 5149 | ||
5598 | # Refers to any unit of content that can be associated with a distribution of | 5150 | # Refers to any unit of content that can be associated with a distribution of |
5599 | # software. | 5151 | # software. |
5600 | @register("https://spdx.org/rdf/3.0.0/terms/Software/Package", compact_type="software_Package", abstract=False) | 5152 | @register("https://spdx.org/rdf/3.0.1/terms/Software/Package", compact_type="software_Package", abstract=False) |
5601 | class software_Package(software_SoftwareArtifact): | 5153 | class software_Package(software_SoftwareArtifact): |
5602 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5154 | NODE_KIND = NodeKind.IRI |
5603 | ID_ALIAS = "spdxId" | 5155 | ID_ALIAS = "spdxId" |
5604 | NAMED_INDIVIDUALS = { | 5156 | NAMED_INDIVIDUALS = { |
5605 | } | 5157 | } |
@@ -5612,7 +5164,7 @@ class software_Package(software_SoftwareArtifact): | |||
5612 | cls._add_property( | 5164 | cls._add_property( |
5613 | "software_downloadLocation", | 5165 | "software_downloadLocation", |
5614 | AnyURIProp(), | 5166 | AnyURIProp(), |
5615 | iri="https://spdx.org/rdf/3.0.0/terms/Software/downloadLocation", | 5167 | iri="https://spdx.org/rdf/3.0.1/terms/Software/downloadLocation", |
5616 | compact="software_downloadLocation", | 5168 | compact="software_downloadLocation", |
5617 | ) | 5169 | ) |
5618 | # A place for the SPDX document creator to record a website that serves as the | 5170 | # A place for the SPDX document creator to record a website that serves as the |
@@ -5620,24 +5172,22 @@ class software_Package(software_SoftwareArtifact): | |||
5620 | cls._add_property( | 5172 | cls._add_property( |
5621 | "software_homePage", | 5173 | "software_homePage", |
5622 | AnyURIProp(), | 5174 | AnyURIProp(), |
5623 | iri="https://spdx.org/rdf/3.0.0/terms/Software/homePage", | 5175 | iri="https://spdx.org/rdf/3.0.1/terms/Software/homePage", |
5624 | compact="software_homePage", | 5176 | compact="software_homePage", |
5625 | ) | 5177 | ) |
5626 | # Provides a place for the SPDX data creator to record the package URL string | 5178 | # Provides a place for the SPDX data creator to record the package URL string |
5627 | # (in accordance with the | 5179 | # (in accordance with the Package URL specification) for a software Package. |
5628 | # [package URL spec](https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst)) | ||
5629 | # for a software Package. | ||
5630 | cls._add_property( | 5180 | cls._add_property( |
5631 | "software_packageUrl", | 5181 | "software_packageUrl", |
5632 | AnyURIProp(), | 5182 | AnyURIProp(), |
5633 | iri="https://spdx.org/rdf/3.0.0/terms/Software/packageUrl", | 5183 | iri="https://spdx.org/rdf/3.0.1/terms/Software/packageUrl", |
5634 | compact="software_packageUrl", | 5184 | compact="software_packageUrl", |
5635 | ) | 5185 | ) |
5636 | # Identify the version of a package. | 5186 | # Identify the version of a package. |
5637 | cls._add_property( | 5187 | cls._add_property( |
5638 | "software_packageVersion", | 5188 | "software_packageVersion", |
5639 | StringProp(), | 5189 | StringProp(), |
5640 | iri="https://spdx.org/rdf/3.0.0/terms/Software/packageVersion", | 5190 | iri="https://spdx.org/rdf/3.0.1/terms/Software/packageVersion", |
5641 | compact="software_packageVersion", | 5191 | compact="software_packageVersion", |
5642 | ) | 5192 | ) |
5643 | # Records any relevant background information or additional comments | 5193 | # Records any relevant background information or additional comments |
@@ -5645,15 +5195,15 @@ class software_Package(software_SoftwareArtifact): | |||
5645 | cls._add_property( | 5195 | cls._add_property( |
5646 | "software_sourceInfo", | 5196 | "software_sourceInfo", |
5647 | StringProp(), | 5197 | StringProp(), |
5648 | iri="https://spdx.org/rdf/3.0.0/terms/Software/sourceInfo", | 5198 | iri="https://spdx.org/rdf/3.0.1/terms/Software/sourceInfo", |
5649 | compact="software_sourceInfo", | 5199 | compact="software_sourceInfo", |
5650 | ) | 5200 | ) |
5651 | 5201 | ||
5652 | 5202 | ||
5653 | # A collection of SPDX Elements describing a single package. | 5203 | # A collection of SPDX Elements describing a single package. |
5654 | @register("https://spdx.org/rdf/3.0.0/terms/Software/Sbom", compact_type="software_Sbom", abstract=False) | 5204 | @register("https://spdx.org/rdf/3.0.1/terms/Software/Sbom", compact_type="software_Sbom", abstract=False) |
5655 | class software_Sbom(Bom): | 5205 | class software_Sbom(Bom): |
5656 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5206 | NODE_KIND = NodeKind.IRI |
5657 | ID_ALIAS = "spdxId" | 5207 | ID_ALIAS = "spdxId" |
5658 | NAMED_INDIVIDUALS = { | 5208 | NAMED_INDIVIDUALS = { |
5659 | } | 5209 | } |
@@ -5665,22 +5215,22 @@ class software_Sbom(Bom): | |||
5665 | cls._add_property( | 5215 | cls._add_property( |
5666 | "software_sbomType", | 5216 | "software_sbomType", |
5667 | ListProp(EnumProp([ | 5217 | ListProp(EnumProp([ |
5668 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/analyzed", "analyzed"), | 5218 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/analyzed", "analyzed"), |
5669 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/build", "build"), | 5219 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/build", "build"), |
5670 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/deployed", "deployed"), | 5220 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/deployed", "deployed"), |
5671 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/design", "design"), | 5221 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/design", "design"), |
5672 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/runtime", "runtime"), | 5222 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/runtime", "runtime"), |
5673 | ("https://spdx.org/rdf/3.0.0/terms/Software/SbomType/source", "source"), | 5223 | ("https://spdx.org/rdf/3.0.1/terms/Software/SbomType/source", "source"), |
5674 | ])), | 5224 | ])), |
5675 | iri="https://spdx.org/rdf/3.0.0/terms/Software/sbomType", | 5225 | iri="https://spdx.org/rdf/3.0.1/terms/Software/sbomType", |
5676 | compact="software_sbomType", | 5226 | compact="software_sbomType", |
5677 | ) | 5227 | ) |
5678 | 5228 | ||
5679 | 5229 | ||
5680 | # Describes a certain part of a file. | 5230 | # Describes a certain part of a file. |
5681 | @register("https://spdx.org/rdf/3.0.0/terms/Software/Snippet", compact_type="software_Snippet", abstract=False) | 5231 | @register("https://spdx.org/rdf/3.0.1/terms/Software/Snippet", compact_type="software_Snippet", abstract=False) |
5682 | class software_Snippet(software_SoftwareArtifact): | 5232 | class software_Snippet(software_SoftwareArtifact): |
5683 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5233 | NODE_KIND = NodeKind.IRI |
5684 | ID_ALIAS = "spdxId" | 5234 | ID_ALIAS = "spdxId" |
5685 | NAMED_INDIVIDUALS = { | 5235 | NAMED_INDIVIDUALS = { |
5686 | } | 5236 | } |
@@ -5693,7 +5243,7 @@ class software_Snippet(software_SoftwareArtifact): | |||
5693 | cls._add_property( | 5243 | cls._add_property( |
5694 | "software_byteRange", | 5244 | "software_byteRange", |
5695 | ObjectProp(PositiveIntegerRange, False), | 5245 | ObjectProp(PositiveIntegerRange, False), |
5696 | iri="https://spdx.org/rdf/3.0.0/terms/Software/byteRange", | 5246 | iri="https://spdx.org/rdf/3.0.1/terms/Software/byteRange", |
5697 | compact="software_byteRange", | 5247 | compact="software_byteRange", |
5698 | ) | 5248 | ) |
5699 | # Defines the line range in the original host file that the snippet information | 5249 | # Defines the line range in the original host file that the snippet information |
@@ -5701,23 +5251,23 @@ class software_Snippet(software_SoftwareArtifact): | |||
5701 | cls._add_property( | 5251 | cls._add_property( |
5702 | "software_lineRange", | 5252 | "software_lineRange", |
5703 | ObjectProp(PositiveIntegerRange, False), | 5253 | ObjectProp(PositiveIntegerRange, False), |
5704 | iri="https://spdx.org/rdf/3.0.0/terms/Software/lineRange", | 5254 | iri="https://spdx.org/rdf/3.0.1/terms/Software/lineRange", |
5705 | compact="software_lineRange", | 5255 | compact="software_lineRange", |
5706 | ) | 5256 | ) |
5707 | # Defines the original host file that the snippet information applies to. | 5257 | # Defines the original host file that the snippet information applies to. |
5708 | cls._add_property( | 5258 | cls._add_property( |
5709 | "software_snippetFromFile", | 5259 | "software_snippetFromFile", |
5710 | ObjectProp(software_File, True), | 5260 | ObjectProp(software_File, True), |
5711 | iri="https://spdx.org/rdf/3.0.0/terms/Software/snippetFromFile", | 5261 | iri="https://spdx.org/rdf/3.0.1/terms/Software/snippetFromFile", |
5712 | min_count=1, | 5262 | min_count=1, |
5713 | compact="software_snippetFromFile", | 5263 | compact="software_snippetFromFile", |
5714 | ) | 5264 | ) |
5715 | 5265 | ||
5716 | 5266 | ||
5717 | # Specifies an AI package and its associated information. | 5267 | # Specifies an AI package and its associated information. |
5718 | @register("https://spdx.org/rdf/3.0.0/terms/AI/AIPackage", compact_type="ai_AIPackage", abstract=False) | 5268 | @register("https://spdx.org/rdf/3.0.1/terms/AI/AIPackage", compact_type="ai_AIPackage", abstract=False) |
5719 | class ai_AIPackage(software_Package): | 5269 | class ai_AIPackage(software_Package): |
5720 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5270 | NODE_KIND = NodeKind.IRI |
5721 | ID_ALIAS = "spdxId" | 5271 | ID_ALIAS = "spdxId" |
5722 | NAMED_INDIVIDUALS = { | 5272 | NAMED_INDIVIDUALS = { |
5723 | } | 5273 | } |
@@ -5725,29 +5275,30 @@ class ai_AIPackage(software_Package): | |||
5725 | @classmethod | 5275 | @classmethod |
5726 | def _register_props(cls): | 5276 | def _register_props(cls): |
5727 | super()._register_props() | 5277 | super()._register_props() |
5728 | # States if a human is involved in the decisions of the AI software. | 5278 | # Indicates whether the system can perform a decision or action without human |
5279 | # involvement or guidance. | ||
5729 | cls._add_property( | 5280 | cls._add_property( |
5730 | "ai_autonomyType", | 5281 | "ai_autonomyType", |
5731 | EnumProp([ | 5282 | EnumProp([ |
5732 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no", "no"), | 5283 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no", "no"), |
5733 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion", "noAssertion"), | 5284 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion", "noAssertion"), |
5734 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes", "yes"), | 5285 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes", "yes"), |
5735 | ]), | 5286 | ]), |
5736 | iri="https://spdx.org/rdf/3.0.0/terms/AI/autonomyType", | 5287 | iri="https://spdx.org/rdf/3.0.1/terms/AI/autonomyType", |
5737 | compact="ai_autonomyType", | 5288 | compact="ai_autonomyType", |
5738 | ) | 5289 | ) |
5739 | # Captures the domain in which the AI package can be used. | 5290 | # Captures the domain in which the AI package can be used. |
5740 | cls._add_property( | 5291 | cls._add_property( |
5741 | "ai_domain", | 5292 | "ai_domain", |
5742 | ListProp(StringProp()), | 5293 | ListProp(StringProp()), |
5743 | iri="https://spdx.org/rdf/3.0.0/terms/AI/domain", | 5294 | iri="https://spdx.org/rdf/3.0.1/terms/AI/domain", |
5744 | compact="ai_domain", | 5295 | compact="ai_domain", |
5745 | ) | 5296 | ) |
5746 | # Indicates the amount of energy consumed to train the AI model. | 5297 | # Indicates the amount of energy consumption incurred by an AI model. |
5747 | cls._add_property( | 5298 | cls._add_property( |
5748 | "ai_energyConsumption", | 5299 | "ai_energyConsumption", |
5749 | ObjectProp(ai_EnergyConsumption, False), | 5300 | ObjectProp(ai_EnergyConsumption, False), |
5750 | iri="https://spdx.org/rdf/3.0.0/terms/AI/energyConsumption", | 5301 | iri="https://spdx.org/rdf/3.0.1/terms/AI/energyConsumption", |
5751 | compact="ai_energyConsumption", | 5302 | compact="ai_energyConsumption", |
5752 | ) | 5303 | ) |
5753 | # Records a hyperparameter used to build the AI model contained in the AI | 5304 | # Records a hyperparameter used to build the AI model contained in the AI |
@@ -5755,7 +5306,7 @@ class ai_AIPackage(software_Package): | |||
5755 | cls._add_property( | 5306 | cls._add_property( |
5756 | "ai_hyperparameter", | 5307 | "ai_hyperparameter", |
5757 | ListProp(ObjectProp(DictionaryEntry, False)), | 5308 | ListProp(ObjectProp(DictionaryEntry, False)), |
5758 | iri="https://spdx.org/rdf/3.0.0/terms/AI/hyperparameter", | 5309 | iri="https://spdx.org/rdf/3.0.1/terms/AI/hyperparameter", |
5759 | compact="ai_hyperparameter", | 5310 | compact="ai_hyperparameter", |
5760 | ) | 5311 | ) |
5761 | # Provides relevant information about the AI software, not including the model | 5312 | # Provides relevant information about the AI software, not including the model |
@@ -5763,28 +5314,28 @@ class ai_AIPackage(software_Package): | |||
5763 | cls._add_property( | 5314 | cls._add_property( |
5764 | "ai_informationAboutApplication", | 5315 | "ai_informationAboutApplication", |
5765 | StringProp(), | 5316 | StringProp(), |
5766 | iri="https://spdx.org/rdf/3.0.0/terms/AI/informationAboutApplication", | 5317 | iri="https://spdx.org/rdf/3.0.1/terms/AI/informationAboutApplication", |
5767 | compact="ai_informationAboutApplication", | 5318 | compact="ai_informationAboutApplication", |
5768 | ) | 5319 | ) |
5769 | # Describes relevant information about different steps of the training process. | 5320 | # Describes relevant information about different steps of the training process. |
5770 | cls._add_property( | 5321 | cls._add_property( |
5771 | "ai_informationAboutTraining", | 5322 | "ai_informationAboutTraining", |
5772 | StringProp(), | 5323 | StringProp(), |
5773 | iri="https://spdx.org/rdf/3.0.0/terms/AI/informationAboutTraining", | 5324 | iri="https://spdx.org/rdf/3.0.1/terms/AI/informationAboutTraining", |
5774 | compact="ai_informationAboutTraining", | 5325 | compact="ai_informationAboutTraining", |
5775 | ) | 5326 | ) |
5776 | # Captures a limitation of the AI software. | 5327 | # Captures a limitation of the AI software. |
5777 | cls._add_property( | 5328 | cls._add_property( |
5778 | "ai_limitation", | 5329 | "ai_limitation", |
5779 | StringProp(), | 5330 | StringProp(), |
5780 | iri="https://spdx.org/rdf/3.0.0/terms/AI/limitation", | 5331 | iri="https://spdx.org/rdf/3.0.1/terms/AI/limitation", |
5781 | compact="ai_limitation", | 5332 | compact="ai_limitation", |
5782 | ) | 5333 | ) |
5783 | # Records the measurement of prediction quality of the AI model. | 5334 | # Records the measurement of prediction quality of the AI model. |
5784 | cls._add_property( | 5335 | cls._add_property( |
5785 | "ai_metric", | 5336 | "ai_metric", |
5786 | ListProp(ObjectProp(DictionaryEntry, False)), | 5337 | ListProp(ObjectProp(DictionaryEntry, False)), |
5787 | iri="https://spdx.org/rdf/3.0.0/terms/AI/metric", | 5338 | iri="https://spdx.org/rdf/3.0.1/terms/AI/metric", |
5788 | compact="ai_metric", | 5339 | compact="ai_metric", |
5789 | ) | 5340 | ) |
5790 | # Captures the threshold that was used for computation of a metric described in | 5341 | # Captures the threshold that was used for computation of a metric described in |
@@ -5792,7 +5343,7 @@ class ai_AIPackage(software_Package): | |||
5792 | cls._add_property( | 5343 | cls._add_property( |
5793 | "ai_metricDecisionThreshold", | 5344 | "ai_metricDecisionThreshold", |
5794 | ListProp(ObjectProp(DictionaryEntry, False)), | 5345 | ListProp(ObjectProp(DictionaryEntry, False)), |
5795 | iri="https://spdx.org/rdf/3.0.0/terms/AI/metricDecisionThreshold", | 5346 | iri="https://spdx.org/rdf/3.0.1/terms/AI/metricDecisionThreshold", |
5796 | compact="ai_metricDecisionThreshold", | 5347 | compact="ai_metricDecisionThreshold", |
5797 | ) | 5348 | ) |
5798 | # Describes all the preprocessing steps applied to the training data before the | 5349 | # Describes all the preprocessing steps applied to the training data before the |
@@ -5800,40 +5351,40 @@ class ai_AIPackage(software_Package): | |||
5800 | cls._add_property( | 5351 | cls._add_property( |
5801 | "ai_modelDataPreprocessing", | 5352 | "ai_modelDataPreprocessing", |
5802 | ListProp(StringProp()), | 5353 | ListProp(StringProp()), |
5803 | iri="https://spdx.org/rdf/3.0.0/terms/AI/modelDataPreprocessing", | 5354 | iri="https://spdx.org/rdf/3.0.1/terms/AI/modelDataPreprocessing", |
5804 | compact="ai_modelDataPreprocessing", | 5355 | compact="ai_modelDataPreprocessing", |
5805 | ) | 5356 | ) |
5806 | # Describes methods that can be used to explain the model. | 5357 | # Describes methods that can be used to explain the results from the AI model. |
5807 | cls._add_property( | 5358 | cls._add_property( |
5808 | "ai_modelExplainability", | 5359 | "ai_modelExplainability", |
5809 | ListProp(StringProp()), | 5360 | ListProp(StringProp()), |
5810 | iri="https://spdx.org/rdf/3.0.0/terms/AI/modelExplainability", | 5361 | iri="https://spdx.org/rdf/3.0.1/terms/AI/modelExplainability", |
5811 | compact="ai_modelExplainability", | 5362 | compact="ai_modelExplainability", |
5812 | ) | 5363 | ) |
5813 | # Records the results of general safety risk assessment of the AI system. | 5364 | # Records the results of general safety risk assessment of the AI system. |
5814 | cls._add_property( | 5365 | cls._add_property( |
5815 | "ai_safetyRiskAssessment", | 5366 | "ai_safetyRiskAssessment", |
5816 | EnumProp([ | 5367 | EnumProp([ |
5817 | ("https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/high", "high"), | 5368 | ("https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/high", "high"), |
5818 | ("https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/low", "low"), | 5369 | ("https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/low", "low"), |
5819 | ("https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/medium", "medium"), | 5370 | ("https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/medium", "medium"), |
5820 | ("https://spdx.org/rdf/3.0.0/terms/AI/SafetyRiskAssessmentType/serious", "serious"), | 5371 | ("https://spdx.org/rdf/3.0.1/terms/AI/SafetyRiskAssessmentType/serious", "serious"), |
5821 | ]), | 5372 | ]), |
5822 | iri="https://spdx.org/rdf/3.0.0/terms/AI/safetyRiskAssessment", | 5373 | iri="https://spdx.org/rdf/3.0.1/terms/AI/safetyRiskAssessment", |
5823 | compact="ai_safetyRiskAssessment", | 5374 | compact="ai_safetyRiskAssessment", |
5824 | ) | 5375 | ) |
5825 | # Captures a standard that is being complied with. | 5376 | # Captures a standard that is being complied with. |
5826 | cls._add_property( | 5377 | cls._add_property( |
5827 | "ai_standardCompliance", | 5378 | "ai_standardCompliance", |
5828 | ListProp(StringProp()), | 5379 | ListProp(StringProp()), |
5829 | iri="https://spdx.org/rdf/3.0.0/terms/AI/standardCompliance", | 5380 | iri="https://spdx.org/rdf/3.0.1/terms/AI/standardCompliance", |
5830 | compact="ai_standardCompliance", | 5381 | compact="ai_standardCompliance", |
5831 | ) | 5382 | ) |
5832 | # Records the type of the model used in the AI software. | 5383 | # Records the type of the model used in the AI software. |
5833 | cls._add_property( | 5384 | cls._add_property( |
5834 | "ai_typeOfModel", | 5385 | "ai_typeOfModel", |
5835 | ListProp(StringProp()), | 5386 | ListProp(StringProp()), |
5836 | iri="https://spdx.org/rdf/3.0.0/terms/AI/typeOfModel", | 5387 | iri="https://spdx.org/rdf/3.0.1/terms/AI/typeOfModel", |
5837 | compact="ai_typeOfModel", | 5388 | compact="ai_typeOfModel", |
5838 | ) | 5389 | ) |
5839 | # Records if sensitive personal information is used during model training or | 5390 | # Records if sensitive personal information is used during model training or |
@@ -5841,19 +5392,19 @@ class ai_AIPackage(software_Package): | |||
5841 | cls._add_property( | 5392 | cls._add_property( |
5842 | "ai_useSensitivePersonalInformation", | 5393 | "ai_useSensitivePersonalInformation", |
5843 | EnumProp([ | 5394 | EnumProp([ |
5844 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no", "no"), | 5395 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no", "no"), |
5845 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion", "noAssertion"), | 5396 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion", "noAssertion"), |
5846 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes", "yes"), | 5397 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes", "yes"), |
5847 | ]), | 5398 | ]), |
5848 | iri="https://spdx.org/rdf/3.0.0/terms/AI/useSensitivePersonalInformation", | 5399 | iri="https://spdx.org/rdf/3.0.1/terms/AI/useSensitivePersonalInformation", |
5849 | compact="ai_useSensitivePersonalInformation", | 5400 | compact="ai_useSensitivePersonalInformation", |
5850 | ) | 5401 | ) |
5851 | 5402 | ||
5852 | 5403 | ||
5853 | # Specifies a data package and its associated information. | 5404 | # Specifies a data package and its associated information. |
5854 | @register("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetPackage", compact_type="dataset_DatasetPackage", abstract=False) | 5405 | @register("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetPackage", compact_type="dataset_DatasetPackage", abstract=False) |
5855 | class dataset_DatasetPackage(software_Package): | 5406 | class dataset_DatasetPackage(software_Package): |
5856 | NODE_KIND = NodeKind.BlankNodeOrIRI | 5407 | NODE_KIND = NodeKind.IRI |
5857 | ID_ALIAS = "spdxId" | 5408 | ID_ALIAS = "spdxId" |
5858 | NAMED_INDIVIDUALS = { | 5409 | NAMED_INDIVIDUALS = { |
5859 | } | 5410 | } |
@@ -5865,82 +5416,82 @@ class dataset_DatasetPackage(software_Package): | |||
5865 | cls._add_property( | 5416 | cls._add_property( |
5866 | "dataset_anonymizationMethodUsed", | 5417 | "dataset_anonymizationMethodUsed", |
5867 | ListProp(StringProp()), | 5418 | ListProp(StringProp()), |
5868 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/anonymizationMethodUsed", | 5419 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/anonymizationMethodUsed", |
5869 | compact="dataset_anonymizationMethodUsed", | 5420 | compact="dataset_anonymizationMethodUsed", |
5870 | ) | 5421 | ) |
5871 | # Describes the confidentiality level of the data points contained in the dataset. | 5422 | # Describes the confidentiality level of the data points contained in the dataset. |
5872 | cls._add_property( | 5423 | cls._add_property( |
5873 | "dataset_confidentialityLevel", | 5424 | "dataset_confidentialityLevel", |
5874 | EnumProp([ | 5425 | EnumProp([ |
5875 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/amber", "amber"), | 5426 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/amber", "amber"), |
5876 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/clear", "clear"), | 5427 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/clear", "clear"), |
5877 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/green", "green"), | 5428 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/green", "green"), |
5878 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/ConfidentialityLevelType/red", "red"), | 5429 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/ConfidentialityLevelType/red", "red"), |
5879 | ]), | 5430 | ]), |
5880 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/confidentialityLevel", | 5431 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/confidentialityLevel", |
5881 | compact="dataset_confidentialityLevel", | 5432 | compact="dataset_confidentialityLevel", |
5882 | ) | 5433 | ) |
5883 | # Describes how the dataset was collected. | 5434 | # Describes how the dataset was collected. |
5884 | cls._add_property( | 5435 | cls._add_property( |
5885 | "dataset_dataCollectionProcess", | 5436 | "dataset_dataCollectionProcess", |
5886 | StringProp(), | 5437 | StringProp(), |
5887 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/dataCollectionProcess", | 5438 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/dataCollectionProcess", |
5888 | compact="dataset_dataCollectionProcess", | 5439 | compact="dataset_dataCollectionProcess", |
5889 | ) | 5440 | ) |
5890 | # Describes the preprocessing steps that were applied to the raw data to create the given dataset. | 5441 | # Describes the preprocessing steps that were applied to the raw data to create the given dataset. |
5891 | cls._add_property( | 5442 | cls._add_property( |
5892 | "dataset_dataPreprocessing", | 5443 | "dataset_dataPreprocessing", |
5893 | ListProp(StringProp()), | 5444 | ListProp(StringProp()), |
5894 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/dataPreprocessing", | 5445 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/dataPreprocessing", |
5895 | compact="dataset_dataPreprocessing", | 5446 | compact="dataset_dataPreprocessing", |
5896 | ) | 5447 | ) |
5897 | # The field describes the availability of a dataset. | 5448 | # The field describes the availability of a dataset. |
5898 | cls._add_property( | 5449 | cls._add_property( |
5899 | "dataset_datasetAvailability", | 5450 | "dataset_datasetAvailability", |
5900 | EnumProp([ | 5451 | EnumProp([ |
5901 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/clickthrough", "clickthrough"), | 5452 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/clickthrough", "clickthrough"), |
5902 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/directDownload", "directDownload"), | 5453 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/directDownload", "directDownload"), |
5903 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/query", "query"), | 5454 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/query", "query"), |
5904 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/registration", "registration"), | 5455 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/registration", "registration"), |
5905 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetAvailabilityType/scrapingScript", "scrapingScript"), | 5456 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetAvailabilityType/scrapingScript", "scrapingScript"), |
5906 | ]), | 5457 | ]), |
5907 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/datasetAvailability", | 5458 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/datasetAvailability", |
5908 | compact="dataset_datasetAvailability", | 5459 | compact="dataset_datasetAvailability", |
5909 | ) | 5460 | ) |
5910 | # Describes potentially noisy elements of the dataset. | 5461 | # Describes potentially noisy elements of the dataset. |
5911 | cls._add_property( | 5462 | cls._add_property( |
5912 | "dataset_datasetNoise", | 5463 | "dataset_datasetNoise", |
5913 | StringProp(), | 5464 | StringProp(), |
5914 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/datasetNoise", | 5465 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/datasetNoise", |
5915 | compact="dataset_datasetNoise", | 5466 | compact="dataset_datasetNoise", |
5916 | ) | 5467 | ) |
5917 | # Captures the size of the dataset. | 5468 | # Captures the size of the dataset. |
5918 | cls._add_property( | 5469 | cls._add_property( |
5919 | "dataset_datasetSize", | 5470 | "dataset_datasetSize", |
5920 | NonNegativeIntegerProp(), | 5471 | NonNegativeIntegerProp(), |
5921 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/datasetSize", | 5472 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/datasetSize", |
5922 | compact="dataset_datasetSize", | 5473 | compact="dataset_datasetSize", |
5923 | ) | 5474 | ) |
5924 | # Describes the type of the given dataset. | 5475 | # Describes the type of the given dataset. |
5925 | cls._add_property( | 5476 | cls._add_property( |
5926 | "dataset_datasetType", | 5477 | "dataset_datasetType", |
5927 | ListProp(EnumProp([ | 5478 | ListProp(EnumProp([ |
5928 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/audio", "audio"), | 5479 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/audio", "audio"), |
5929 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/categorical", "categorical"), | 5480 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/categorical", "categorical"), |
5930 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/graph", "graph"), | 5481 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/graph", "graph"), |
5931 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/image", "image"), | 5482 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/image", "image"), |
5932 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/noAssertion", "noAssertion"), | 5483 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/noAssertion", "noAssertion"), |
5933 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/numeric", "numeric"), | 5484 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/numeric", "numeric"), |
5934 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/other", "other"), | 5485 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/other", "other"), |
5935 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/sensor", "sensor"), | 5486 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/sensor", "sensor"), |
5936 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/structured", "structured"), | 5487 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/structured", "structured"), |
5937 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/syntactic", "syntactic"), | 5488 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/syntactic", "syntactic"), |
5938 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/text", "text"), | 5489 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/text", "text"), |
5939 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timeseries", "timeseries"), | 5490 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timeseries", "timeseries"), |
5940 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/timestamp", "timestamp"), | 5491 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/timestamp", "timestamp"), |
5941 | ("https://spdx.org/rdf/3.0.0/terms/Dataset/DatasetType/video", "video"), | 5492 | ("https://spdx.org/rdf/3.0.1/terms/Dataset/DatasetType/video", "video"), |
5942 | ])), | 5493 | ])), |
5943 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/datasetType", | 5494 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/datasetType", |
5944 | min_count=1, | 5495 | min_count=1, |
5945 | compact="dataset_datasetType", | 5496 | compact="dataset_datasetType", |
5946 | ) | 5497 | ) |
@@ -5948,39 +5499,39 @@ class dataset_DatasetPackage(software_Package): | |||
5948 | cls._add_property( | 5499 | cls._add_property( |
5949 | "dataset_datasetUpdateMechanism", | 5500 | "dataset_datasetUpdateMechanism", |
5950 | StringProp(), | 5501 | StringProp(), |
5951 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/datasetUpdateMechanism", | 5502 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/datasetUpdateMechanism", |
5952 | compact="dataset_datasetUpdateMechanism", | 5503 | compact="dataset_datasetUpdateMechanism", |
5953 | ) | 5504 | ) |
5954 | # Describes if any sensitive personal information is present in the dataset. | 5505 | # Describes if any sensitive personal information is present in the dataset. |
5955 | cls._add_property( | 5506 | cls._add_property( |
5956 | "dataset_hasSensitivePersonalInformation", | 5507 | "dataset_hasSensitivePersonalInformation", |
5957 | EnumProp([ | 5508 | EnumProp([ |
5958 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/no", "no"), | 5509 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/no", "no"), |
5959 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/noAssertion", "noAssertion"), | 5510 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/noAssertion", "noAssertion"), |
5960 | ("https://spdx.org/rdf/3.0.0/terms/Core/PresenceType/yes", "yes"), | 5511 | ("https://spdx.org/rdf/3.0.1/terms/Core/PresenceType/yes", "yes"), |
5961 | ]), | 5512 | ]), |
5962 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/hasSensitivePersonalInformation", | 5513 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/hasSensitivePersonalInformation", |
5963 | compact="dataset_hasSensitivePersonalInformation", | 5514 | compact="dataset_hasSensitivePersonalInformation", |
5964 | ) | 5515 | ) |
5965 | # Describes what the given dataset should be used for. | 5516 | # Describes what the given dataset should be used for. |
5966 | cls._add_property( | 5517 | cls._add_property( |
5967 | "dataset_intendedUse", | 5518 | "dataset_intendedUse", |
5968 | StringProp(), | 5519 | StringProp(), |
5969 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/intendedUse", | 5520 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/intendedUse", |
5970 | compact="dataset_intendedUse", | 5521 | compact="dataset_intendedUse", |
5971 | ) | 5522 | ) |
5972 | # Records the biases that the dataset is known to encompass. | 5523 | # Records the biases that the dataset is known to encompass. |
5973 | cls._add_property( | 5524 | cls._add_property( |
5974 | "dataset_knownBias", | 5525 | "dataset_knownBias", |
5975 | ListProp(StringProp()), | 5526 | ListProp(StringProp()), |
5976 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/knownBias", | 5527 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/knownBias", |
5977 | compact="dataset_knownBias", | 5528 | compact="dataset_knownBias", |
5978 | ) | 5529 | ) |
5979 | # Describes a sensor used for collecting the data. | 5530 | # Describes a sensor used for collecting the data. |
5980 | cls._add_property( | 5531 | cls._add_property( |
5981 | "dataset_sensor", | 5532 | "dataset_sensor", |
5982 | ListProp(ObjectProp(DictionaryEntry, False)), | 5533 | ListProp(ObjectProp(DictionaryEntry, False)), |
5983 | iri="https://spdx.org/rdf/3.0.0/terms/Dataset/sensor", | 5534 | iri="https://spdx.org/rdf/3.0.1/terms/Dataset/sensor", |
5984 | compact="dataset_sensor", | 5535 | compact="dataset_sensor", |
5985 | ) | 5536 | ) |
5986 | 5537 | ||
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 1ae13b4af8..d0dd40877e 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py | |||
@@ -323,7 +323,7 @@ def collect_dep_sources(dep_objsets, dest): | |||
323 | if dep_build is not e.from_: | 323 | if dep_build is not e.from_: |
324 | continue | 324 | continue |
325 | 325 | ||
326 | if e.relationshipType != oe.spdx30.RelationshipType.hasInputs: | 326 | if e.relationshipType != oe.spdx30.RelationshipType.hasInput: |
327 | continue | 327 | continue |
328 | 328 | ||
329 | index_sources_by_hash(e.to, dest) | 329 | index_sources_by_hash(e.to, dest) |
@@ -485,18 +485,22 @@ def create_spdx(d): | |||
485 | 485 | ||
486 | # If this CVE is fixed upstream, skip it unless all CVEs are | 486 | # If this CVE is fixed upstream, skip it unless all CVEs are |
487 | # specified. | 487 | # specified. |
488 | if include_vex != "all" and 'detail' in decoded_status and \ | 488 | if ( |
489 | decoded_status['detail'] in ( | 489 | include_vex != "all" |
490 | "fixed-version", | 490 | and "detail" in decoded_status |
491 | "cpe-stable-backport", | 491 | and decoded_status["detail"] |
492 | in ( | ||
493 | "fixed-version", | ||
494 | "cpe-stable-backport", | ||
495 | ) | ||
492 | ): | 496 | ): |
493 | bb.debug(1, "Skipping %s since it is already fixed upstream" % cve) | 497 | bb.debug(1, "Skipping %s since it is already fixed upstream" % cve) |
494 | continue | 498 | continue |
495 | 499 | ||
496 | cve_by_status.setdefault(decoded_status['mapping'], {})[cve] = ( | 500 | cve_by_status.setdefault(decoded_status["mapping"], {})[cve] = ( |
497 | build_objset.new_cve_vuln(cve), | 501 | build_objset.new_cve_vuln(cve), |
498 | decoded_status['detail'], | 502 | decoded_status["detail"], |
499 | decoded_status['description'], | 503 | decoded_status["description"], |
500 | ) | 504 | ) |
501 | 505 | ||
502 | cpe_ids = oe.cve_check.get_cpe_ids(d.getVar("CVE_PRODUCT"), d.getVar("CVE_VERSION")) | 506 | cpe_ids = oe.cve_check.get_cpe_ids(d.getVar("CVE_PRODUCT"), d.getVar("CVE_VERSION")) |
@@ -600,7 +604,7 @@ def create_spdx(d): | |||
600 | 604 | ||
601 | pkg_objset.new_scoped_relationship( | 605 | pkg_objset.new_scoped_relationship( |
602 | [build._id], | 606 | [build._id], |
603 | oe.spdx30.RelationshipType.hasOutputs, | 607 | oe.spdx30.RelationshipType.hasOutput, |
604 | oe.spdx30.LifecycleScopeType.build, | 608 | oe.spdx30.LifecycleScopeType.build, |
605 | [spdx_package], | 609 | [spdx_package], |
606 | ) | 610 | ) |
@@ -749,7 +753,7 @@ def create_spdx(d): | |||
749 | if sysroot_files: | 753 | if sysroot_files: |
750 | build_objset.new_scoped_relationship( | 754 | build_objset.new_scoped_relationship( |
751 | [build], | 755 | [build], |
752 | oe.spdx30.RelationshipType.hasOutputs, | 756 | oe.spdx30.RelationshipType.hasOutput, |
753 | oe.spdx30.LifecycleScopeType.build, | 757 | oe.spdx30.LifecycleScopeType.build, |
754 | sorted(list(sysroot_files)), | 758 | sorted(list(sysroot_files)), |
755 | ) | 759 | ) |
@@ -757,7 +761,7 @@ def create_spdx(d): | |||
757 | if build_inputs or debug_source_ids: | 761 | if build_inputs or debug_source_ids: |
758 | build_objset.new_scoped_relationship( | 762 | build_objset.new_scoped_relationship( |
759 | [build], | 763 | [build], |
760 | oe.spdx30.RelationshipType.hasInputs, | 764 | oe.spdx30.RelationshipType.hasInput, |
761 | oe.spdx30.LifecycleScopeType.build, | 765 | oe.spdx30.LifecycleScopeType.build, |
762 | sorted(list(build_inputs)) + sorted(list(debug_source_ids)), | 766 | sorted(list(build_inputs)) + sorted(list(debug_source_ids)), |
763 | ) | 767 | ) |
@@ -978,7 +982,7 @@ def collect_build_package_inputs(d, objset, build, packages): | |||
978 | if build_deps: | 982 | if build_deps: |
979 | objset.new_scoped_relationship( | 983 | objset.new_scoped_relationship( |
980 | [build], | 984 | [build], |
981 | oe.spdx30.RelationshipType.hasInputs, | 985 | oe.spdx30.RelationshipType.hasInput, |
982 | oe.spdx30.LifecycleScopeType.build, | 986 | oe.spdx30.LifecycleScopeType.build, |
983 | sorted(list(build_deps)), | 987 | sorted(list(build_deps)), |
984 | ) | 988 | ) |
@@ -1011,7 +1015,7 @@ def create_rootfs_spdx(d): | |||
1011 | 1015 | ||
1012 | objset.new_scoped_relationship( | 1016 | objset.new_scoped_relationship( |
1013 | [rootfs_build], | 1017 | [rootfs_build], |
1014 | oe.spdx30.RelationshipType.hasOutputs, | 1018 | oe.spdx30.RelationshipType.hasOutput, |
1015 | oe.spdx30.LifecycleScopeType.build, | 1019 | oe.spdx30.LifecycleScopeType.build, |
1016 | [rootfs], | 1020 | [rootfs], |
1017 | ) | 1021 | ) |
@@ -1073,7 +1077,7 @@ def create_image_spdx(d): | |||
1073 | if artifacts: | 1077 | if artifacts: |
1074 | objset.new_scoped_relationship( | 1078 | objset.new_scoped_relationship( |
1075 | [image_build], | 1079 | [image_build], |
1076 | oe.spdx30.RelationshipType.hasOutputs, | 1080 | oe.spdx30.RelationshipType.hasOutput, |
1077 | oe.spdx30.LifecycleScopeType.build, | 1081 | oe.spdx30.LifecycleScopeType.build, |
1078 | artifacts, | 1082 | artifacts, |
1079 | ) | 1083 | ) |
@@ -1088,7 +1092,7 @@ def create_image_spdx(d): | |||
1088 | ) | 1092 | ) |
1089 | objset.new_scoped_relationship( | 1093 | objset.new_scoped_relationship( |
1090 | builds, | 1094 | builds, |
1091 | oe.spdx30.RelationshipType.hasInputs, | 1095 | oe.spdx30.RelationshipType.hasInput, |
1092 | oe.spdx30.LifecycleScopeType.build, | 1096 | oe.spdx30.LifecycleScopeType.build, |
1093 | [rootfs_image._id], | 1097 | [rootfs_image._id], |
1094 | ) | 1098 | ) |
@@ -1159,7 +1163,7 @@ def sdk_create_spdx(d, sdk_type, spdx_work_dir, toolchain_outputname): | |||
1159 | 1163 | ||
1160 | objset.new_scoped_relationship( | 1164 | objset.new_scoped_relationship( |
1161 | [sdk_build], | 1165 | [sdk_build], |
1162 | oe.spdx30.RelationshipType.hasOutputs, | 1166 | oe.spdx30.RelationshipType.hasOutput, |
1163 | oe.spdx30.LifecycleScopeType.build, | 1167 | oe.spdx30.LifecycleScopeType.build, |
1164 | [sdk_rootfs], | 1168 | [sdk_rootfs], |
1165 | ) | 1169 | ) |
@@ -1186,7 +1190,7 @@ def create_sdk_sbom(d, sdk_deploydir, spdx_work_dir, toolchain_outputname): | |||
1186 | 1190 | ||
1187 | rootfs_objset.new_scoped_relationship( | 1191 | rootfs_objset.new_scoped_relationship( |
1188 | [sdk_build], | 1192 | [sdk_build], |
1189 | oe.spdx30.RelationshipType.hasInputs, | 1193 | oe.spdx30.RelationshipType.hasInput, |
1190 | oe.spdx30.LifecycleScopeType.build, | 1194 | oe.spdx30.LifecycleScopeType.build, |
1191 | [rootfs], | 1195 | [rootfs], |
1192 | ) | 1196 | ) |
@@ -1225,7 +1229,7 @@ def create_sdk_sbom(d, sdk_deploydir, spdx_work_dir, toolchain_outputname): | |||
1225 | if files: | 1229 | if files: |
1226 | rootfs_objset.new_scoped_relationship( | 1230 | rootfs_objset.new_scoped_relationship( |
1227 | [sdk_build], | 1231 | [sdk_build], |
1228 | oe.spdx30.RelationshipType.hasOutputs, | 1232 | oe.spdx30.RelationshipType.hasOutput, |
1229 | oe.spdx30.LifecycleScopeType.build, | 1233 | oe.spdx30.LifecycleScopeType.build, |
1230 | files, | 1234 | files, |
1231 | ) | 1235 | ) |