Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LIDO
lido-development
Commits
694faf20
Commit
694faf20
authored
Oct 30, 2020
by
mrodzis
💪
Browse files
feat: add Schematron rule for IIIF (closes
#40
)
parent
bc27daa9
Changes
1
Hide whitespace changes
Inline
Side-by-side
1.1/lido-qa.xsd
View file @
694faf20
...
...
@@ -107,6 +107,23 @@
</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>
Avoid Providing Resource Measurements When Using IIIF
</sch:title>
<sch:p>
IIIF resources provide information about their measurements in their
info.json. Therefore it is redundant to also make the resource's measurements
available in lido:resourceMeasurementsSet.
</sch:p>
<sch:rule
context=
"lido:resourceRepresentation"
id=
"IIIF_Measurements"
>
<sch:assert
role=
"warn"
test=
"
(@type = 'http://terminology.lido-schema.org/lido00911' or @type = 'http://terminology.lido-schema.org/lido00912')
and not(lido:resourceMeasurementsSet)"
>
Do not set lido:resourceMeasurementsSet when providing a IIIF resource.
Resource measurements are available in the resource's info.json.
</sch:assert>
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
</xs:schema>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment