Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Lambert
swh-deposit
Commits
2e95623c
Commit
2e95623c
authored
3 years ago
by
vlorentz
Browse files
Options
Downloads
Patches
Plain Diff
Fix swh.xsd
It was never actually tested...
parent
8a7e0832
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/specs/swh.xsd
+36
-30
36 additions, 30 deletions
docs/specs/swh.xsd
with
36 additions
and
30 deletions
docs/specs/swh.xsd
+
36
−
30
View file @
2e95623c
...
...
@@ -6,48 +6,54 @@
>
<xsd:element
name=
"deposit"
>
<xsd:complexType>
<xsd:sequence>
<xsd:complexType>
<xsd:choice>
<!-- code deposit on a new origin -->
<xsd:element
name=
"create_origin"
>
<xsd:complexType>
<xsd:element
ref=
"swh:origin"
/>
</xsd:complexType>
</xsd:element>
<xsd:all>
<!-- note that "create_origin", "add_to_origin", and "reference" are
mutually exclusive -->
<!-- code deposit on an origin already created by a previous deposit -->
<xsd:element
name=
"add_to_origin"
>
<xsd:complexType>
<xsd:element
ref=
"swh:origin"
/>
</xsd:complexType>
</xsd:element>
<!-- code deposit on a new origin -->
<xsd:element
name=
"create_origin"
minOccurs=
"0"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
ref=
"swh:origin"
/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<!-- metadata-only deposit -->
<xsd:element
name=
"reference"
>
<xsd:complexType>
<xsd:choice>
<xsd:element
ref=
"swh:origin"
/>
<xsd:element
ref=
"swh:object"
/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<!-- code deposit on an origin already created by a previous deposit -->
<xsd:element
name=
"add_to_origin"
minOccurs=
"0"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
ref=
"swh:origin"
/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
<!-- metadata-only deposit -->
<xsd:element
name=
"reference"
minOccurs=
"0"
>
<xsd:complexType>
<xsd:choice>
<xsd:element
ref=
"swh:origin"
/>
<xsd:element
ref=
"swh:object"
/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"metadata-provenance"
minOccurs=
"0"
maxOccurs=
"1"
>
<xsd:any
/>
<xsd:element
name=
"metadata-provenance"
minOccurs=
"0"
>
<xsd:complexType>
<xsd:sequence>
<xsd:any
minOccurs=
"0"
maxOccurs=
"unbounded"
processContents=
"lax"
/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:
sequence
>
</xsd:
all
>
</xsd:complexType>
</xsd:element>
<!-- references a SWHID -->
<xsd:element
name=
"object"
>
<xsd:complexType>
<xsd:attribute
type=
"xsd:string"
name=
"swhid"
/>
<xsd:attribute
type=
"xsd:string"
name=
"swhid"
/>
</xsd:complexType>
</xsd:element>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment