oldaplib 0.3.25__py3-none-any.whl → 0.3.26__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/src/objectfactory.py +14 -3
- oldaplib/src/version.py +1 -1
- oldaplib/test/test_objectfactory.py +0 -1
- {oldaplib-0.3.25.dist-info → oldaplib-0.3.26.dist-info}/METADATA +1 -1
- {oldaplib-0.3.25.dist-info → oldaplib-0.3.26.dist-info}/RECORD +6 -6
- {oldaplib-0.3.25.dist-info → oldaplib-0.3.26.dist-info}/WHEEL +0 -0
oldaplib/src/objectfactory.py
CHANGED
|
@@ -1152,14 +1152,18 @@ class ResourceInstance:
|
|
|
1152
1152
|
sparql = context.sparql_context
|
|
1153
1153
|
|
|
1154
1154
|
sparql += f"""
|
|
1155
|
-
SELECT ?subject ?graph ?path ?permval
|
|
1155
|
+
SELECT ?subject ?graph ?path ?permval ?originalName ?serverUrl ?protocol ?originalMimeType
|
|
1156
1156
|
WHERE {{
|
|
1157
1157
|
VALUES ?inputImageId {{ {mediaObjectId.toRdf} }}
|
|
1158
1158
|
|
|
1159
1159
|
GRAPH ?graph {{
|
|
1160
1160
|
?subject shared:imageId ?inputImageId .
|
|
1161
1161
|
?subject rdf:type shared:MediaObject .
|
|
1162
|
+
?subject shared:originalName ?originalName .
|
|
1163
|
+
?subject shared:originalMimeType ?originalMimeType .
|
|
1164
|
+
?subject shared:serverUrl ?serverUrl .
|
|
1162
1165
|
?subject shared:path ?path .
|
|
1166
|
+
?subject shared:protocol ?protocol .
|
|
1163
1167
|
?subject oldap:grantsPermission ?permset .
|
|
1164
1168
|
}}
|
|
1165
1169
|
GRAPH oldap:admin {{
|
|
@@ -1176,8 +1180,15 @@ class ResourceInstance:
|
|
|
1176
1180
|
raise
|
|
1177
1181
|
res = QueryProcessor(context, jsonres)
|
|
1178
1182
|
if len(res) == 0 or len(res) > 1:
|
|
1179
|
-
|
|
1180
|
-
return {'iri': res[0]['subject'],
|
|
1183
|
+
raise OldapErrorNotFound(f'Media object with id {mediaObjectId} not found.')
|
|
1184
|
+
return {'iri': res[0]['subject'],
|
|
1185
|
+
'originalName': res[0]['originalName'],
|
|
1186
|
+
'originalMimeType': res[0]['originalMimeType'],
|
|
1187
|
+
'serverUrl': res[0]['serverUrl'],
|
|
1188
|
+
'protocol': res[0]['protocol'],
|
|
1189
|
+
'graph': res[0]['graph'],
|
|
1190
|
+
'path': res[0]['path'],
|
|
1191
|
+
'permval': res[0]['permval']}
|
|
1181
1192
|
|
|
1182
1193
|
|
|
1183
1194
|
def toJsonObject(self) -> dict[str, list[str] | str]:
|
oldaplib/src/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.26"
|
|
@@ -59,7 +59,7 @@ oldaplib/src/helpers/tools.py,sha256=sNbiOLucTGNFzZmiWwPLFOb80VTXQH0Zd9uCGubhzAk
|
|
|
59
59
|
oldaplib/src/iconnection.py,sha256=XlOc2Kh4tK_UOHydLQwlWjUFLUze-Aq_vEZpf9KS1-s,3677
|
|
60
60
|
oldaplib/src/in_project.py,sha256=2KuhHPj8DNveFRBeImrRfxlCOYhBK-mcxXYUp6s--j8,10672
|
|
61
61
|
oldaplib/src/model.py,sha256=VACR3T6zJYFaE5J1PFFdP0OSwhbu4sahoLMWg6_L_rE,19267
|
|
62
|
-
oldaplib/src/objectfactory.py,sha256=
|
|
62
|
+
oldaplib/src/objectfactory.py,sha256=qAoBunuZLl7c0eoTdqnGOyAyEbpAd9n3XUVNy2aNVGk,66368
|
|
63
63
|
oldaplib/src/oldaplist.py,sha256=sGAvEEJukRCjM70G0NFaR-L9YPleQTOtdWGExj3oYL8,42933
|
|
64
64
|
oldaplib/src/oldaplist_helpers.py,sha256=1Gur0nS1PCKb9iUtCKPUFDOYjw6vvAwYpe-G3DdxlEc,14213
|
|
65
65
|
oldaplib/src/oldaplistnode.py,sha256=NnC2juEGTtEkDO6OlB9PjSw_zTF-wSsRUgEk-6VV9DA,87344
|
|
@@ -70,7 +70,7 @@ oldaplib/src/propertyclass.py,sha256=OuzCSCRp8Qfz-PolmoH7FARfTEvWJd42ghLgvPsgT78
|
|
|
70
70
|
oldaplib/src/resourceclass.py,sha256=uzPhwTBdWmB228R1FUddB4XaZcOfBAPAPYn-ZPZkeF0,102551
|
|
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=Qx0UoE0uiKm9Exmc4sgdm-zsNEYk4Q1cPGLwdK6_XBA,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
|
|
@@ -126,7 +126,7 @@ oldaplib/test/test_hasproperty.py,sha256=r991g8kBTfv1CGs9Hf0fli-AUp7Ob7rOHWYD74h
|
|
|
126
126
|
oldaplib/test/test_in_project.py,sha256=DYT-guwRQ9crnfEt7cQZxoEMxThin7QeymNce3jaZx4,7779
|
|
127
127
|
oldaplib/test/test_langstring.py,sha256=37BeKiQzj63G-SyS_paK_SEG7ulRbGrE89Mz40UB_bE,15146
|
|
128
128
|
oldaplib/test/test_language_in.py,sha256=ELqHO-YIsZSCPF3E3rWde4J7rERL7En7sV_pzQ00zgs,8826
|
|
129
|
-
oldaplib/test/test_objectfactory.py,sha256=
|
|
129
|
+
oldaplib/test/test_objectfactory.py,sha256=Pg1MUVDXUEY9gvYooYx5FFtgL774GeXg_PWIJh_quGE,36772
|
|
130
130
|
oldaplib/test/test_observable_dict.py,sha256=GxD0sM0nsVfVRBu92SFGkJ6--YXq4ibBWI4IpjZZzDU,1396
|
|
131
131
|
oldaplib/test/test_observable_set.py,sha256=JWZSoAsr8XIEBXPVgSVJjQQEEc8uSAme5IrFYLYVVXw,6313
|
|
132
132
|
oldaplib/test/test_oldaplist.py,sha256=9wo3tEOHt5bIuXyvSSyTzjhtdKrQHiiAA6EfVBuq4wI,20114
|
|
@@ -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.26.dist-info/METADATA,sha256=U9b_ymONaicZGqeiSmXlNEwU3k_OUlRjuUwRt3LXzac,3010
|
|
162
|
+
oldaplib-0.3.26.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
163
|
+
oldaplib-0.3.26.dist-info/RECORD,,
|
|
File without changes
|