oldaplib 0.3.12__py3-none-any.whl → 0.3.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oldaplib/ontologies/shared.trig +157 -6
- oldaplib/src/enums/haspropertyattr.py +2 -2
- oldaplib/src/hasproperty.py +12 -6
- oldaplib/src/propertyclass.py +14 -8
- oldaplib/src/resourceclass.py +4 -4
- oldaplib/src/version.py +1 -1
- {oldaplib-0.3.12.dist-info → oldaplib-0.3.13.dist-info}/METADATA +8 -1
- {oldaplib-0.3.12.dist-info → oldaplib-0.3.13.dist-info}/RECORD +9 -9
- {oldaplib-0.3.12.dist-info → oldaplib-0.3.13.dist-info}/WHEEL +0 -0
oldaplib/ontologies/shared.trig
CHANGED
|
@@ -41,7 +41,7 @@ shared:shacl {
|
|
|
41
41
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
42
42
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
43
43
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
44
|
-
sh:maxCount "1"^^xsd:
|
|
44
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
45
45
|
sh:datatype xsd:decimal ;
|
|
46
46
|
] ;
|
|
47
47
|
sh:property [
|
|
@@ -50,7 +50,7 @@ shared:shacl {
|
|
|
50
50
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
51
51
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
52
52
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
53
|
-
sh:maxCount "1"^^xsd:
|
|
53
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
54
54
|
sh:datatype xsd:string ;
|
|
55
55
|
sh:in ("GREGORIAN"^^xsd:string "JULIAN"^^xsd:string "HEBREW"^^xsd:string "ISLAMIC"^^xsd:string "PERSIAN"^^xsd:string) ;
|
|
56
56
|
] ;
|
|
@@ -60,7 +60,7 @@ shared:shacl {
|
|
|
60
60
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
61
61
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
62
62
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
63
|
-
sh:maxCount "1"^^xsd:
|
|
63
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
64
64
|
sh:class oldap:ChronolgyStatement ;
|
|
65
65
|
] ;
|
|
66
66
|
sh:property [
|
|
@@ -69,7 +69,7 @@ shared:shacl {
|
|
|
69
69
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
70
70
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
71
71
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
72
|
-
sh:maxCount "1"^^xsd:
|
|
72
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
73
73
|
sh:class oldap:ChronolgyStatement ;
|
|
74
74
|
] ;
|
|
75
75
|
sh:property [
|
|
@@ -78,7 +78,7 @@ shared:shacl {
|
|
|
78
78
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
79
79
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
80
80
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
81
|
-
sh:maxCount "1"^^xsd:
|
|
81
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
82
82
|
sh:datatype xsd:decimal ;
|
|
83
83
|
] ;
|
|
84
84
|
sh:property [
|
|
@@ -87,10 +87,89 @@ shared:shacl {
|
|
|
87
87
|
dcterms:created "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
88
88
|
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
89
89
|
dcterms:modified "2023-11-04T12:00:00+00:00"^^xsd:dateTime ;
|
|
90
|
-
sh:maxCount "1"^^xsd:
|
|
90
|
+
sh:maxCount "1"^^xsd:nonNegativeInteger ;
|
|
91
91
|
sh:datatype xsd:decimal ;
|
|
92
92
|
] .
|
|
93
93
|
|
|
94
|
+
###############################################################################
|
|
95
|
+
# Media object
|
|
96
|
+
###############################################################################
|
|
97
|
+
|
|
98
|
+
oldap:MediaObjectShape a sh:NodeShape ;
|
|
99
|
+
sh:targetClass oldap:MediaObject ;
|
|
100
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
101
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
102
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
103
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
104
|
+
oldap:externalOntology "false"^^xsd:boolean ;
|
|
105
|
+
rdfs:label "MediaObject"@en, "Medienobjekt"@de, "MediaObject"@fr, "MediaObject"@it ;
|
|
106
|
+
rdfs:comment "Page of a book"@en, "Seite eines Buches"@de ;
|
|
107
|
+
sh:closed "true"^^xsd:boolean ;
|
|
108
|
+
sh:property [
|
|
109
|
+
sh:path rdf:type ;
|
|
110
|
+
] ;
|
|
111
|
+
sh:property [ # >>PropertyClass.property_node_shacl()
|
|
112
|
+
sh:path oldap:originalName ;
|
|
113
|
+
schema:version "0.1.0"^^xsd:string ;
|
|
114
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
115
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
116
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
117
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
118
|
+
oldap:statementProperty "false"^^xsd:boolean ;
|
|
119
|
+
oldap:externalOntology "false"^^xsd:boolean ;
|
|
120
|
+
sh:datatype xsd:string ;
|
|
121
|
+
sh:name "Original Filename"@en, "Originaler Dateiname"@de, "Nom orignal du fichier"@fr, "Nome documento originale"@it ;
|
|
122
|
+
sh:minCount "1"^^xsd:integer ;
|
|
123
|
+
sh:maxCount "1"^^xsd:integer ;
|
|
124
|
+
sh:order "1.0"^^xsd:decimal ;
|
|
125
|
+
] ;
|
|
126
|
+
sh:property [ # >>PropertyClass.property_node_shacl()
|
|
127
|
+
sh:path oldap:originalMimeType ;
|
|
128
|
+
schema:version "0.1.0"^^xsd:string ;
|
|
129
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
130
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
131
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
132
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
133
|
+
oldap:statementProperty "false"^^xsd:boolean ;
|
|
134
|
+
oldap:externalOntology "false"^^xsd:boolean ;
|
|
135
|
+
sh:datatype xsd:string ;
|
|
136
|
+
sh:name "Original mimetype"@en, "Originaler Mimetype"@de, "Mimetype original"@fr, "Mimetype originale"@it ;
|
|
137
|
+
sh:minCount "1"^^xsd:integer ;
|
|
138
|
+
sh:maxCount "1"^^xsd:integer ;
|
|
139
|
+
sh:order "2.0"^^xsd:decimal ;
|
|
140
|
+
] ;
|
|
141
|
+
sh:property [ # >>PropertyClass.property_node_shacl()
|
|
142
|
+
sh:path oldap:serverUrl ;
|
|
143
|
+
schema:version "0.1.0"^^xsd:string ;
|
|
144
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
145
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
146
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
147
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
148
|
+
oldap:statementProperty "false"^^xsd:boolean ;
|
|
149
|
+
oldap:externalOntology "false"^^xsd:boolean ;
|
|
150
|
+
sh:datatype xsd:anyURI ;
|
|
151
|
+
sh:name "Server URL"@en, "URL des servers"@de, "Server URL"@fr, "Server URL"@it ;
|
|
152
|
+
sh:minCount "1"^^xsd:integer ;
|
|
153
|
+
sh:maxCount "1"^^xsd:integer ;
|
|
154
|
+
sh:order "3.0"^^xsd:decimal ;
|
|
155
|
+
] ;
|
|
156
|
+
sh:property [ # >>PropertyClass.property_node_shacl()
|
|
157
|
+
sh:path oldap:imageId ;
|
|
158
|
+
schema:version "0.1.0"^^xsd:string ;
|
|
159
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
160
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
161
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
162
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
163
|
+
oldap:statementProperty "false"^^xsd:boolean ;
|
|
164
|
+
oldap:externalOntology "false"^^xsd:boolean ;
|
|
165
|
+
sh:datatype xsd:string ;
|
|
166
|
+
sh:name "Image ID"@en, "ID des Bilder"@de, "ID de l\'image"@fr, "ID de l\'immagine"@it ;
|
|
167
|
+
sh:minCount "1"^^xsd:integer ;
|
|
168
|
+
sh:maxCount "1"^^xsd:integer ;
|
|
169
|
+
sh:order "3.0"^^xsd:decimal ;
|
|
170
|
+
] .
|
|
171
|
+
|
|
172
|
+
|
|
94
173
|
|
|
95
174
|
}
|
|
96
175
|
|
|
@@ -161,6 +240,7 @@ shared:onto {
|
|
|
161
240
|
###########################################################################
|
|
162
241
|
# Chronology Date Resource
|
|
163
242
|
###########################################################################
|
|
243
|
+
|
|
164
244
|
oldap:ChronolgyStatement rdf:type owl:Class ;
|
|
165
245
|
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
166
246
|
dcterms:created "2023-11-04T12:00:00Z"^^xsd:dateTime ;
|
|
@@ -210,5 +290,76 @@ shared:onto {
|
|
|
210
290
|
owl:onDataRange xsd:decimal
|
|
211
291
|
] .
|
|
212
292
|
|
|
293
|
+
###########################################################################
|
|
294
|
+
# Media object
|
|
295
|
+
###########################################################################
|
|
296
|
+
|
|
297
|
+
oldap:originalName rdf:type owl:DatatypeProperty ;
|
|
298
|
+
rdfs:domain oldap:MediaObject ;
|
|
299
|
+
rdfs:range xsd:string ;
|
|
300
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
301
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
302
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
303
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime .
|
|
304
|
+
|
|
305
|
+
oldap:originalMimeType rdf:type owl:DatatypeProperty ;
|
|
306
|
+
rdfs:domain oldap:MediaObject ;
|
|
307
|
+
rdfs:range xsd:string ;
|
|
308
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
309
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
310
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
311
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime .
|
|
312
|
+
|
|
313
|
+
oldap:serverUrl rdf:type owl:DatatypeProperty ;
|
|
314
|
+
rdfs:domain oldap:MediaObject ;
|
|
315
|
+
rdfs:range xsd:anyURI ;
|
|
316
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
317
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
318
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
319
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime .
|
|
320
|
+
|
|
321
|
+
oldap:imageId rdf:type owl:DatatypeProperty ;
|
|
322
|
+
rdfs:domain oldap:MediaObject ;
|
|
323
|
+
rdfs:range xsd:string ;
|
|
324
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
325
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
326
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
327
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime .
|
|
328
|
+
|
|
329
|
+
oldap:MediaObject rdf:type owl:Class ;
|
|
330
|
+
schema:version "0.1.0"^^xsd:string ;
|
|
331
|
+
dcterms:created "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
332
|
+
dcterms:creator <https://orcid.org/0000-0003-1681-4036> ;
|
|
333
|
+
dcterms:modified "2025-11-20T22:48:57.760670+01:00"^^xsd:dateTime ;
|
|
334
|
+
dcterms:contributor <https://orcid.org/0000-0003-1681-4036> ;
|
|
335
|
+
rdfs:label "MediaObject"@en, "Medienobjekt"@de, "MediaObject"@fr, "MediaObject"@it ;
|
|
336
|
+
rdfs:comment "Page of a book"@en, "Seite eines Buches"@de ;
|
|
337
|
+
rdfs:subClassOf oldap:Thing ,
|
|
338
|
+
[
|
|
339
|
+
rdf:type owl:Restriction ;
|
|
340
|
+
owl:onProperty oldap:originalName ;
|
|
341
|
+
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
|
|
342
|
+
owl:onDataRange xsd:string ;
|
|
343
|
+
] ,
|
|
344
|
+
[
|
|
345
|
+
rdf:type owl:Restriction ;
|
|
346
|
+
owl:onProperty oldap:originalMimeType ;
|
|
347
|
+
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
|
|
348
|
+
owl:onDataRange xsd:string ;
|
|
349
|
+
] ,
|
|
350
|
+
[
|
|
351
|
+
rdf:type owl:Restriction ;
|
|
352
|
+
owl:onProperty oldap:serverUrl ;
|
|
353
|
+
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
|
|
354
|
+
owl:onDataRange xsd:anyURI ;
|
|
355
|
+
] ,
|
|
356
|
+
[
|
|
357
|
+
rdf:type owl:Restriction ;
|
|
358
|
+
owl:onProperty oldap:imageId ;
|
|
359
|
+
owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
|
|
360
|
+
owl:onDataRange xsd:string ;
|
|
361
|
+
] .
|
|
362
|
+
|
|
363
|
+
|
|
213
364
|
}
|
|
214
365
|
|
|
@@ -12,7 +12,7 @@ from oldaplib.src.xsd.xsd_qname import Xsd_QName
|
|
|
12
12
|
@unique
|
|
13
13
|
class HasPropertyAttr(AttributeClass):
|
|
14
14
|
# order: (QName, mandatory, immutable, datatype)
|
|
15
|
-
MIN_COUNT = ('sh:minCount', False, False,
|
|
16
|
-
MAX_COUNT = ('sh:maxCount', False, False,
|
|
15
|
+
MIN_COUNT = ('sh:minCount', False, False, Xsd_integer)
|
|
16
|
+
MAX_COUNT = ('sh:maxCount', False, False, Xsd_integer)
|
|
17
17
|
ORDER = ('sh:order', False, False, Xsd_decimal)
|
|
18
18
|
GROUP = ('sh:group', False, False, Xsd_QName)
|
oldaplib/src/hasproperty.py
CHANGED
|
@@ -222,12 +222,15 @@ class HasProperty(Model, Notify):
|
|
|
222
222
|
max_count = Xsd_nonNegativeInteger(int(self._attributes[HasPropertyAttr.MAX_COUNT])) if self._attributes.get(HasPropertyAttr.MAX_COUNT) else None
|
|
223
223
|
|
|
224
224
|
if min_count and max_count and min_count == max_count:
|
|
225
|
-
|
|
225
|
+
tmp = Xsd_nonNegativeInteger(min_count)
|
|
226
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:qualifiedCardinality {tmp.toRdf}'
|
|
226
227
|
else:
|
|
227
228
|
if min_count:
|
|
228
|
-
|
|
229
|
+
tmp = Xsd_nonNegativeInteger(min_count)
|
|
230
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:minQualifiedCardinality {tmp.toRdf}'
|
|
229
231
|
if max_count:
|
|
230
|
-
|
|
232
|
+
tmp = Xsd_nonNegativeInteger(max_count)
|
|
233
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:maxQualifiedCardinality {tmp.toRdf}'
|
|
231
234
|
return sparql
|
|
232
235
|
|
|
233
236
|
def update_shacl(self,
|
|
@@ -287,12 +290,15 @@ class HasProperty(Model, Notify):
|
|
|
287
290
|
if min_count or max_count:
|
|
288
291
|
sparql += f'{blank:{indent * indent_inc}}INSERT {{\n'
|
|
289
292
|
if min_count and max_count and min_count == max_count:
|
|
290
|
-
|
|
293
|
+
tmp = Xsd_nonNegativeInteger(min_count)
|
|
294
|
+
sparql += f'{blank:{(indent + 1) * indent_inc}}?prop owl:qualifiedCardinality {tmp.toRdf} .\n'
|
|
291
295
|
else:
|
|
292
296
|
if min_count:
|
|
293
|
-
|
|
297
|
+
tmp = Xsd_nonNegativeInteger(min_count)
|
|
298
|
+
sparql += f'{blank:{(indent + 1) * indent_inc}}?prop owl:minQualifiedCardinality {tmp.toRdf} .\n'
|
|
294
299
|
if max_count:
|
|
295
|
-
|
|
300
|
+
tmp = Xsd_nonNegativeInteger(max_count)
|
|
301
|
+
sparql += f'{blank:{(indent + 1) * indent_inc}}?prop owl:maxQualifiedCardinality {tmp.toRdf} .\n'
|
|
296
302
|
sparql += f'{blank:{indent * indent_inc}}}}\n'
|
|
297
303
|
|
|
298
304
|
sparql += f'{blank:{indent * indent_inc}}WHERE {{\n'
|
oldaplib/src/propertyclass.py
CHANGED
|
@@ -67,8 +67,8 @@ Attributes = dict[Xsd_QName, PropTypes]
|
|
|
67
67
|
@serializer
|
|
68
68
|
class HasPropertyData:
|
|
69
69
|
refprop: Xsd_QName | None = None
|
|
70
|
-
minCount:
|
|
71
|
-
maxCount:
|
|
70
|
+
minCount: Xsd_integer | None = None
|
|
71
|
+
maxCount: Xsd_integer | None = None
|
|
72
72
|
order: Xsd_decimal | None = None
|
|
73
73
|
group: Xsd_QName | None = None
|
|
74
74
|
|
|
@@ -91,12 +91,15 @@ class HasPropertyData:
|
|
|
91
91
|
sparql = ''
|
|
92
92
|
|
|
93
93
|
if self.minCount and self.maxCount and self.minCount == self.maxCount:
|
|
94
|
-
|
|
94
|
+
tmp = Xsd_nonNegativeInteger(self.minCount) # Convert to nonNegativeInteger
|
|
95
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:qualifiedCardinality {tmp.toRdf}'
|
|
95
96
|
else:
|
|
96
97
|
if self.minCount:
|
|
97
|
-
|
|
98
|
+
tmp = Xsd_nonNegativeInteger(self.minCount)
|
|
99
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:minQualifiedCardinality {tmp.toRdf}'
|
|
98
100
|
if self.maxCount:
|
|
99
|
-
|
|
101
|
+
tmp = Xsd_nonNegativeInteger(self.maxCount)
|
|
102
|
+
sparql += f' ;\n{blank:{(indent + 1) * indent_inc}}owl:maxQualifiedCardinality {tmp.toRdf}'
|
|
100
103
|
return sparql
|
|
101
104
|
|
|
102
105
|
#@strict
|
|
@@ -1135,12 +1138,15 @@ class PropertyClass(Model, Notify):
|
|
|
1135
1138
|
sparql += f'{blank:{(indent + 1) * indent_inc}}owl:onProperty {self._property_class_iri.toRdf}'
|
|
1136
1139
|
|
|
1137
1140
|
if haspropdata.minCount and haspropdata.maxCount and haspropdata.minCount == haspropdata.maxCount:
|
|
1138
|
-
|
|
1141
|
+
tmp = Xsd_nonNegativeInteger(haspropdata.minCount)
|
|
1142
|
+
sparql += f' ;\n{blank:{(indent + 1)*indent_inc}}owl:qualifiedCardinality {tmp.toRdf}'
|
|
1139
1143
|
else:
|
|
1140
1144
|
if haspropdata.minCount:
|
|
1141
|
-
|
|
1145
|
+
tmp = Xsd_nonNegativeInteger(haspropdata.minCount)
|
|
1146
|
+
sparql += f' ;\n{blank:{(indent + 1)*indent_inc}}owl:minQualifiedCardinality {tmp.toRdf}'
|
|
1142
1147
|
if haspropdata.maxCount:
|
|
1143
|
-
|
|
1148
|
+
tmp = Xsd_nonNegativeInteger(haspropdata.maxCount)
|
|
1149
|
+
sparql += f' ;\n{blank:{(indent + 1)*indent_inc}}owl:maxQualifiedCardinality {tmp.toRdf}'
|
|
1144
1150
|
#
|
|
1145
1151
|
# (NOTE: owl:onClass and owl:onDataRange can be used only in a restriction and are "local" to the use
|
|
1146
1152
|
# of the property within the given resource. However, rdfs:range is "global" for all use of this property!
|
oldaplib/src/resourceclass.py
CHANGED
|
@@ -983,12 +983,12 @@ class ResourceClass(Model, Notify):
|
|
|
983
983
|
elif p == 'owl:onClass':
|
|
984
984
|
propdict[bnode_id]['to_node_iri'] = r['o']
|
|
985
985
|
elif p == 'owl:minQualifiedCardinality':
|
|
986
|
-
propdict[bnode_id]['min_count'] = r['o']
|
|
986
|
+
propdict[bnode_id]['min_count'] = Xsd_integer(r['o'])
|
|
987
987
|
elif p == 'owl:maxQualifiedCardinality':
|
|
988
|
-
propdict[bnode_id]['max_count'] = r['o']
|
|
988
|
+
propdict[bnode_id]['max_count'] = Xsd_integer(r['o'])
|
|
989
989
|
elif p == 'owl:qualifiedCardinality':
|
|
990
|
-
propdict[bnode_id]['min_count'] = r['o']
|
|
991
|
-
propdict[bnode_id]['max_count'] = r['o']
|
|
990
|
+
propdict[bnode_id]['min_count'] = Xsd_integer(r['o'])
|
|
991
|
+
propdict[bnode_id]['max_count'] = Xsd_integer(r['o'])
|
|
992
992
|
elif p == 'owl:onDataRange':
|
|
993
993
|
propdict[bnode_id]['datatype'] = r['o']
|
|
994
994
|
else:
|
oldaplib/src/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.13"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: oldaplib
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.13
|
|
4
4
|
Summary: Open Media Access Server Library (Linked Open Data middleware/RESTApi)
|
|
5
5
|
License: GNU Affero General Public License version 3
|
|
6
6
|
Author: Lukas Rosenthaler
|
|
@@ -79,4 +79,11 @@ http://oldap.org/<location>/<project>/data#
|
|
|
79
79
|
The project name must be unique to the location and is of
|
|
80
80
|
type [NCName](https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName).
|
|
81
81
|
|
|
82
|
+
## Media object
|
|
83
|
+
|
|
84
|
+
- originalName: `<http://purl.org/dc/terms/originalName>`
|
|
85
|
+
- originalMimeType: `<http://purl.org/dc/terms/format>`
|
|
86
|
+
- mediaserverUri: xsd:anyURI
|
|
87
|
+
- project: `<http://oldap.org/base#project>`
|
|
88
|
+
|
|
82
89
|
|
|
@@ -5,7 +5,7 @@ oldaplib/ontologies/admin.trig,sha256=S53TALvsBvbkV_Put4bUlwk8ZcD-Fj-K6LlsKkiuB9
|
|
|
5
5
|
oldaplib/ontologies/example.trig,sha256=MdRrFBZZ1L6aUDiT6aX4cnXiy-RoZHczF3Exn7aBSmU,1518
|
|
6
6
|
oldaplib/ontologies/oldap.trig,sha256=i2XanqKlhWSIdD17fLu5g0Luq2GORQCcyIfLn9Kummk,60241
|
|
7
7
|
oldaplib/ontologies/oldap.ttl,sha256=qdA0uiSjzVhkc1d5IN2y5ioK1QMzwl-TTnn3M_D1Kh8,29446
|
|
8
|
-
oldaplib/ontologies/shared.trig,sha256=
|
|
8
|
+
oldaplib/ontologies/shared.trig,sha256=s_AqJGC_LCftiJ0KyCGhkoWL8IoLEnAVcfo8Vz9zMjY,17994
|
|
9
9
|
oldaplib/ontologies/standard/.gitsave,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
oldaplib/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
oldaplib/src/cachesingleton.py,sha256=WGhuFER-mTnOJmwaN17fXPAg7zn7GJBm-XadShNUBBk,3687
|
|
@@ -23,7 +23,7 @@ oldaplib/src/enums/adminpermissions.py,sha256=v8Rc83NPSG_s7830-I7CbmKIhOioN2YkSH
|
|
|
23
23
|
oldaplib/src/enums/attributeclass.py,sha256=Lc7OnMMl9vjXj0SuL0l30iEjwC3oWDv_C8PFeTavDGc,3006
|
|
24
24
|
oldaplib/src/enums/datapermissions.py,sha256=0KiDjrPeSpGDAui8Z74sFBdDm64stzcMJx_dVEa2-bo,3437
|
|
25
25
|
oldaplib/src/enums/externalontologyattr.py,sha256=H7SrWrhe1Dkz_t1OFCWZVh3_14lJDltYGh3dOFr1Z6w,807
|
|
26
|
-
oldaplib/src/enums/haspropertyattr.py,sha256=
|
|
26
|
+
oldaplib/src/enums/haspropertyattr.py,sha256=Pwi-520nxue3s1fku9x4FNFBOOKSbYVI9MTVGD5jaeU,726
|
|
27
27
|
oldaplib/src/enums/language.py,sha256=OfQsFpIBj8lGBbZEqVCR_1F-bimPM48vqBl4EKBgggY,4623
|
|
28
28
|
oldaplib/src/enums/oldaplistattr.py,sha256=xuOU3oP35-PFFmlI-jlN28yqdk5lp_OzScKCC1O4IDI,620
|
|
29
29
|
oldaplib/src/enums/oldaplistnodeattr.py,sha256=qokSxE-0FLyWNipjjY3gZJC2bBEt1qS1Z2SFg-gb0kc,722
|
|
@@ -37,7 +37,7 @@ oldaplib/src/enums/userattr.py,sha256=ZRBGGLP5NMvyAER893TzRjfkhZk4jOtS9RsSkYsQM-
|
|
|
37
37
|
oldaplib/src/enums/xsd_datatypes.py,sha256=TGpy2TEaYfmCsSCClSyK76ixNP_hR7nEdJvCT6l-Txk,6253
|
|
38
38
|
oldaplib/src/externalontology.py,sha256=VaQvVlq5muzmQ466c1gKrldXn9Wx_WfOR7pUCjw_cYw,23888
|
|
39
39
|
oldaplib/src/globalconfig.py,sha256=zAJmAMQnojbhj8SZFUaPj7DIHN5g3wUwQQhWPMxjDUg,1306
|
|
40
|
-
oldaplib/src/hasproperty.py,sha256=
|
|
40
|
+
oldaplib/src/hasproperty.py,sha256=VnjLa6VBIH---mwh1mJ_drisDqjPu7By1RhFAVZaT7k,15814
|
|
41
41
|
oldaplib/src/helpers/Notify.py,sha256=9zzO93F4V4lj-xF6b3hpRg1QkI4TR_GYEh3ptsohlfQ,2008
|
|
42
42
|
oldaplib/src/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
43
|
oldaplib/src/helpers/attributechange.py,sha256=aQ5Q9s6U3bVd1WSNQcBpkr5UQVxeP4z_uz0K5_31ZVc,256
|
|
@@ -66,11 +66,11 @@ oldaplib/src/oldaplistnode.py,sha256=NnC2juEGTtEkDO6OlB9PjSw_zTF-wSsRUgEk-6VV9DA
|
|
|
66
66
|
oldaplib/src/oldaplogging.py,sha256=IDSOylms9OSTInYPC4Y2QrTTEzRL0T5I2QssCevOhTU,1242
|
|
67
67
|
oldaplib/src/permissionset.py,sha256=bzzVuZ7O_yVMujziwo32GEJIZYGG3g5gTds4HjLmGtU,31874
|
|
68
68
|
oldaplib/src/project.py,sha256=DNwViRg19zkE1F0zuWqQFK008uTVehVAu7xNbyessig,34207
|
|
69
|
-
oldaplib/src/propertyclass.py,sha256=
|
|
70
|
-
oldaplib/src/resourceclass.py,sha256=
|
|
69
|
+
oldaplib/src/propertyclass.py,sha256=WcRz-yzNOenyTWsYHkh48vaJDFO_0AgH9AMFq-HsiVo,93777
|
|
70
|
+
oldaplib/src/resourceclass.py,sha256=I6m93JhfCh4XAUFgmb6v0fD798DfU7-ImTKrUJk4g-o,102098
|
|
71
71
|
oldaplib/src/user.py,sha256=Z4GXPRkaHXx3glUpPXQdFqYMxQPOuqayDwkTAE5RGjU,48820
|
|
72
72
|
oldaplib/src/userdataclass.py,sha256=FbZkcRt0pKbOeqsZ7HbpwoKE-XPWH2AqpHG1GcsrBPo,12364
|
|
73
|
-
oldaplib/src/version.py,sha256=
|
|
73
|
+
oldaplib/src/version.py,sha256=dakbk6DEOnVi7Zc-bN9tdKomLcWKaxpUWufJE8NWxcY,22
|
|
74
74
|
oldaplib/src/xsd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
oldaplib/src/xsd/floatingpoint.py,sha256=rDReKqh0mXyc4F5wslgTUxbeGf3-PGERyughj5_62YI,8852
|
|
76
76
|
oldaplib/src/xsd/iri.py,sha256=w1Dr0z-REi7yPe3GPGnyzGrLVMvLY03kEeK-AmZ9sxw,8383
|
|
@@ -158,6 +158,6 @@ oldaplib/testdata/source_type.yaml,sha256=dSihKikw3O-IlGf6anj5KWMoBYLaweLVF1Zojm
|
|
|
158
158
|
oldaplib/testdata/test_move_left_of_toL.yaml,sha256=2m1OSQrQFlsCQxeJrjzBAO74LMprNDo_HuyrYGsOeXI,787
|
|
159
159
|
oldaplib/testdata/testlist.yaml,sha256=AT11nXEG81Sfyb-tr1gQV0H_dZBrOCcFuHf7YtL8P2g,1994
|
|
160
160
|
oldaplib/testit.http,sha256=qW7mnr6aNLXFG6lQdLgyhXILOPN6qc5iFVZclLyVvkY,303
|
|
161
|
-
oldaplib-0.3.
|
|
162
|
-
oldaplib-0.3.
|
|
163
|
-
oldaplib-0.3.
|
|
161
|
+
oldaplib-0.3.13.dist-info/METADATA,sha256=InQ1jYzzK_3V9L7oyKW-DG-6x_ZRgZy4_D4r7bqgYto,3061
|
|
162
|
+
oldaplib-0.3.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
163
|
+
oldaplib-0.3.13.dist-info/RECORD,,
|
|
File without changes
|