Skip to content

Commit

Permalink
test: add subproperties of seqnum and isPartOf (DEV-1330) (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Sep 8, 2022
1 parent dca0854 commit 575f974
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 8 deletions.
36 changes: 29 additions & 7 deletions testdata/test-data-systematic.xml
Expand Up @@ -332,6 +332,15 @@
</text-prop>
</resource>

<resource label="Compoundthing"
restype=":CompoundThing"
id="compound_thing_1"
permissions="res-default">
<text-prop name=":hasText">
<text permissions="prop-default" encoding="utf8">This is a Compoundthing</text>
</text-prop>
</resource>

<resource label="Partofthing-1"
restype=":PartOfThing"
id="partof_thing_1"
Expand All @@ -350,24 +359,37 @@
id="partof_thing_2"
permissions="res-default">
<bitstream>testdata/bitstreams/test.jpg</bitstream>
<resptr-prop name="knora-api:isPartOf">
<resptr-prop name="isPartOf">
<resptr permissions="prop-default">compound_thing_0</resptr>
</resptr-prop>
<integer-prop name="knora-api:seqnum">
<integer-prop name="seqnum">
<integer permissions="prop-default">2</integer>
</integer-prop>
</resource>

<resource label="Partofthing-3"
restype=":PartOfThing"
restype=":PartOfThingWithSubproperties"
id="partof_thing_3"
permissions="res-default">
<bitstream>testdata/bitstreams/test.jpg</bitstream>
<resptr-prop name="knora-api:isPartOf">
<resptr permissions="prop-default">compound_thing_0</resptr>
<resptr-prop name=":partOf">
<resptr permissions="prop-default">compound_thing_1</resptr>
</resptr-prop>
<integer-prop name="knora-api:seqnum">
<integer permissions="prop-default">3</integer>
<integer-prop name=":hasPagenum">
<integer permissions="prop-default">1</integer>
</integer-prop>
</resource>

<resource label="Partofthing-4"
restype=":PartOfThingWithSubproperties"
id="partof_thing_4"
permissions="res-default">
<bitstream>testdata/bitstreams/test.jpg</bitstream>
<resptr-prop name=":partOf">
<resptr permissions="prop-default">compound_thing_1</resptr>
</resptr-prop>
<integer-prop name=":hasPagenum">
<integer permissions="prop-default">1</integer>
</integer-prop>
</resource>

Expand Down
46 changes: 45 additions & 1 deletion testdata/test-project-systematic.json
Expand Up @@ -485,6 +485,28 @@
"en": "is sequence of"
},
"gui_element": "Searchbox"
},
{
"name": "hasPagenum",
"super": [
"seqnum"
],
"object": "IntValue",
"labels": {
"en": "Page number"
},
"gui_element": "SimpleText"
},
{
"name": "partOf",
"super": [
"isPartOf"
],
"object": ":CompoundThing",
"labels": {
"en": "is part of"
},
"gui_element": "Searchbox"
}
],
"resources": [
Expand Down Expand Up @@ -738,7 +760,7 @@
"name": "PartOfThing",
"super": "StillImageRepresentation",
"labels": {
"en": "A Thing having a partOf and seqnum property"
"en": "A Thing having a isPartOf and seqnum property"
},
"comments": {
"en": "A thing for testing partOf and seqnum properties."
Expand All @@ -756,6 +778,28 @@
}
]
},
{
"name": "PartOfThingWithSubproperties",
"super": "StillImageRepresentation",
"labels": {
"en": "A Thing having subproperties of isPartOf and seqnum"
},
"comments": {
"en": "A thing for testing subproperties of isPartOf and seqnum."
},
"cardinalities": [
{
"propname": ":partOf",
"gui_order": 1,
"cardinality": "1"
},
{
"propname": ":hasPagenum",
"gui_order": 2,
"cardinality": "1"
}
]
},
{
"name": "VideoSequence",
"labels": {
Expand Down

0 comments on commit 575f974

Please sign in to comment.