Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: XML validation: resource's iri and ark must be unique, resourc…
…e's label must not be empty (DEV-2154) (#361) In the XML file, it is not allowed anymore to have a resource with - label="" - ark/iri attribute that are not unique in the document
- Loading branch information
Showing
6 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
|
||
<knora xmlns="https://dasch.swiss/schema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://dasch.swiss/schema ../../../src/dsp_tools/resources/schema/data.xsd" | ||
shortcode="4124" | ||
default-ontology="testonto"> | ||
|
||
<resource label="TestthingWithArk1" | ||
restype=":TestThing2" | ||
id="test_thing_with_ark_1" | ||
ark="ark:/72163/4123-31ec6eab334-a.2022829"> | ||
<text-prop name=":hasSimpleText"><text encoding="utf8">Hello</text></text-prop> | ||
</resource> | ||
|
||
<resource label="TestthingWithArk2" | ||
restype=":TestThing2" | ||
id="test_thing_with_ark_2" | ||
ark="ark:/72163/4123-31ec6eab334-a.2022829"> | ||
<text-prop name=":hasSimpleText"><text encoding="utf8">Hello</text></text-prop> | ||
</resource> | ||
|
||
</knora> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
|
||
<knora xmlns="https://dasch.swiss/schema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://dasch.swiss/schema ../../../src/dsp_tools/resources/schema/data.xsd" | ||
shortcode="4124" | ||
default-ontology="testonto"> | ||
|
||
<resource label="TestthingWithIri1" | ||
restype=":TestThing2" | ||
id="test_thing_with_iri_1" | ||
iri="http://rdfh.ch/4123/54SYvWF0QUW6a"> | ||
<text-prop name=":hasSimpleText"><text encoding="utf8">Hello</text></text-prop> | ||
</resource> | ||
|
||
<resource label="TestthingWithIri2" | ||
restype=":TestThing2" | ||
id="test_thing_with_iri_2" | ||
iri="http://rdfh.ch/4123/54SYvWF0QUW6a"> | ||
<text-prop name=":hasSimpleText"><text encoding="utf8">Hello</text></text-prop> | ||
</resource> | ||
|
||
</knora> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
|
||
<knora xmlns="https://dasch.swiss/schema" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://dasch.swiss/schema ../../../src/dsp_tools/resources/schema/data.xsd" | ||
shortcode="4124" | ||
default-ontology="testonto"> | ||
|
||
<resource label="" | ||
restype=":TestThing2" | ||
id="test_thing_with_empty_label"> | ||
<text-prop name=":hasSimpleText"><text encoding="utf8">Hello</text></text-prop> | ||
</resource> | ||
|
||
</knora> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters