From d1bd91da973cd6731bc4c75a9142d76902dfd5b2 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Mon, 29 Jan 2024 15:23:10 -0800 Subject: [PATCH 1/3] Allow for File objects to describe directories Fixes #83 --- model/Software/Classes/File.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/Software/Classes/File.md b/model/Software/Classes/File.md index 10d5810c0..3aae4ef3c 100644 --- a/model/Software/Classes/File.md +++ b/model/Software/Classes/File.md @@ -11,6 +11,8 @@ Refers to any object that stores content on a computer. Refers to any object that stores content on a computer. The type of content can optionally be provided in the contentType property. +If the file reference a directory, then the file represents the directory and all content stored in that directory. + ## Metadata - name: File From 3cde742ea6f05283c1addf2754769f11ac7e6b13 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Wed, 31 Jan 2024 02:54:24 -0800 Subject: [PATCH 2/3] Add isDirectory optional property to file Signed-off-by: Gary O'Neall --- model/Software/Classes/File.md | 7 +++++-- model/Software/Properties/isDirectory.md | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 model/Software/Properties/isDirectory.md diff --git a/model/Software/Classes/File.md b/model/Software/Classes/File.md index 3aae4ef3c..4096adfc7 100644 --- a/model/Software/Classes/File.md +++ b/model/Software/Classes/File.md @@ -11,7 +11,7 @@ Refers to any object that stores content on a computer. Refers to any object that stores content on a computer. The type of content can optionally be provided in the contentType property. -If the file reference a directory, then the file represents the directory and all content stored in that directory. +If the isDirectory is specified and set to true, then the file represents the directory and all content stored in that directory. ## Metadata @@ -24,9 +24,12 @@ If the file reference a directory, then the file represents the directory and al - type: /Core/MediaType - minCount: 0 - maxCount: 1 +- isDirectory + - type: xsd:boolean + - minCount: 0 + - maxCount: 1 ## External properties restrictions - /Core/Element/name - minCount: 1 - diff --git a/model/Software/Properties/isDirectory.md b/model/Software/Properties/isDirectory.md new file mode 100644 index 000000000..7a4e2ca8e --- /dev/null +++ b/model/Software/Properties/isDirectory.md @@ -0,0 +1,18 @@ +SPDX-License-Identifier: Community-Spec-1.0 + +# isDirectory + +## Summary + +If true, denotes the Element is a directory. + +## Description + +If true, denotes the Element is a directory. + +## Metadata + +- name: isDirectory +- Nature: DataProperty +- Range: xsd:boolean + From b28d515e19a365b4a9f7a452842682d27920e4e0 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Mon, 5 Feb 2024 16:57:08 +0100 Subject: [PATCH 3/3] Update model/Software/Classes/File.md --- model/Software/Classes/File.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/Software/Classes/File.md b/model/Software/Classes/File.md index 4096adfc7..6e63a2b85 100644 --- a/model/Software/Classes/File.md +++ b/model/Software/Classes/File.md @@ -11,7 +11,7 @@ Refers to any object that stores content on a computer. Refers to any object that stores content on a computer. The type of content can optionally be provided in the contentType property. -If the isDirectory is specified and set to true, then the file represents the directory and all content stored in that directory. +If the isDirectory property is specified and set to true, then the file represents a directory and all content stored in that directory. ## Metadata