https://spdx.org/rdf/3.0.1/terms/Software/File
Refers to any object that stores content on a computer.
Focus nodes of this shape (software:File) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
| core:contentType | Provides information about the content type of an Element or a Property. | 0 | 1 | xsd:string sh:Literal |
sh:pattern
^[^\/]+\/[^\/]+$
|
| software:fileKind | Describes if a given file is a directory or non-directory kind of file. | 0 | 1 | software:FileKindType sh:IRI |
sh:in
software:FileKindType/file, software:FileKindType/directory
|
@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 software: <https://spdx.org/rdf/3.0.1/terms/Software/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
software:File a owl:Class,
sh:NodeShape ;
rdfs:comment "Refers to any object that stores content on a computer."@en ;
rdfs:subClassOf software:SoftwareArtifact ;
sh:nodeKind sh:IRI ;
sh:property [ sh:class software:FileKindType ;
sh:in ( <https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/file> <https://spdx.org/rdf/3.0.1/terms/Software/FileKindType/directory> ) ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
sh:path software:fileKind ],
[ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:nodeKind sh:Literal ;
sh:path core:contentType ;
sh:pattern "^[^\\/]+\\/[^\\/]+$" ] .