core:Relationship


URI

https://spdx.org/rdf/3.0.1/terms/Core/Relationship

Label

Relationship

Description

Describes a relationship between one or more elements.

Superclasses (1)

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (6)

Focus nodes of this shape (core:Relationship) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:completeness Provides information about the completeness of relationships. 0 1 core:RelationshipCompleteness
sh:IRI
sh:in core:RelationshipCompleteness/incomplete, core:RelationshipCompleteness/complete, core:RelationshipCompleteness/noAssertion
core:endTime Specifies the time from which an element is no longer applicable / valid. 0 1 xsd:dateTimeStamp
sh:Literal
sh:pattern ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$
core:from References the Element on the left-hand side of a relationship. 1 1 core:Element
sh:IRI
core:relationshipType Information about the relationship between two Elements. 1 1 core:RelationshipType
sh:IRI
sh:in core:RelationshipType/affects, core:RelationshipType/amendedBy, core:RelationshipType/ancestorOf, core:RelationshipType/availableFrom, core:RelationshipType/configures, core:RelationshipType/contains, core:RelationshipType/coordinatedBy, core:RelationshipType/copiedTo, core:RelationshipType/delegatedTo, core:RelationshipType/dependsOn, core:RelationshipType/descendantOf, core:RelationshipType/describes, core:RelationshipType/doesNotAffect, core:RelationshipType/expandsTo, core:RelationshipType/exploitCreatedBy, core:RelationshipType/fixedBy, core:RelationshipType/fixedIn, core:RelationshipType/foundBy, core:RelationshipType/generates, core:RelationshipType/hasAddedFile, core:RelationshipType/hasAssessmentFor, core:RelationshipType/hasAssociatedVulnerability, core:RelationshipType/hasConcludedLicense, core:RelationshipType/hasDataFile, core:RelationshipType/hasDeclaredLicense, core:RelationshipType/hasDeletedFile, core:RelationshipType/hasDependencyManifest, core:RelationshipType/hasDistributionArtifact, core:RelationshipType/hasDocumentation, core:RelationshipType/hasDynamicLink, core:RelationshipType/hasEvidence, core:RelationshipType/hasExample, core:RelationshipType/hasHost, core:RelationshipType/hasInput, core:RelationshipType/hasMetadata, core:RelationshipType/hasOptionalComponent, core:RelationshipType/hasOptionalDependency, core:RelationshipType/hasOutput, core:RelationshipType/hasPrerequisite, core:RelationshipType/hasProvidedDependency, core:RelationshipType/hasRequirement, core:RelationshipType/hasSpecification, core:RelationshipType/hasStaticLink, core:RelationshipType/hasTest, core:RelationshipType/hasTestCase, core:RelationshipType/hasVariant, core:RelationshipType/invokedBy, core:RelationshipType/modifiedBy, core:RelationshipType/other, core:RelationshipType/packagedBy, core:RelationshipType/patchedBy, core:RelationshipType/publishedBy, core:RelationshipType/reportedBy, core:RelationshipType/republishedBy, core:RelationshipType/serializedInArtifact, core:RelationshipType/testedOn, core:RelationshipType/trainedOn, core:RelationshipType/underInvestigationFor, core:RelationshipType/usesTool
core:startTime Specifies the time from which an element is applicable / valid. 0 1 xsd:dateTimeStamp
sh:Literal
sh:pattern ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$
core:to References an Element on the right-hand side of a relationship. 1 * core:Element
sh:IRI

Implementation

@prefix core: <https://spdx.org/rdf/3.0.1/terms/Core/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

core:Relationship a owl:Class,
        sh:NodeShape ;
    rdfs:comment "Describes a relationship between one or more elements."@en ;
    rdfs:subClassOf core:Element ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:class core:Element ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:to ],
        [ sh:class core:RelationshipCompleteness ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/incomplete> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/complete> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipCompleteness/noAssertion> ) ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:completeness ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:startTime ;
            sh:pattern "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$" ],
        [ sh:class core:RelationshipType ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/affects> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/amendedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/ancestorOf> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/availableFrom> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/configures> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/contains> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/coordinatedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/copiedTo> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/delegatedTo> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/dependsOn> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/descendantOf> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/describes> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/doesNotAffect> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/expandsTo> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/exploitCreatedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/fixedIn> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/foundBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/generates> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAddedFile> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssessmentFor> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasAssociatedVulnerability> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasConcludedLicense> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDataFile> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeclaredLicense> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDeletedFile> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDependencyManifest> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDistributionArtifact> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDocumentation> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasDynamicLink> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasEvidence> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasExample> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasHost> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasInput> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasMetadata> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalComponent> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOptionalDependency> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasOutput> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasPrerequisite> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasProvidedDependency> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasRequirement> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasSpecification> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasStaticLink> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTest> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasTestCase> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/hasVariant> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/invokedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/modifiedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/other> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/packagedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/patchedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/publishedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/reportedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/republishedBy> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/serializedInArtifact> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/testedOn> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/trainedOn> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/underInvestigationFor> <https://spdx.org/rdf/3.0.1/terms/Core/RelationshipType/usesTool> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:relationshipType ],
        [ sh:class core:Element ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:from ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:endTime ;
            sh:pattern "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$" ] .