oldaplib 0.3.15__py3-none-any.whl → 0.3.16__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.
@@ -315,11 +315,20 @@ class PropertyClass(Model, Notify):
315
315
  if self._attributes.get(PropClassAttr.DATATYPE) is not None and self._attributes.get(PropClassAttr.CLASS) is not None:
316
316
  raise OldapErrorInconsistency(f'It\'s not possible to use both DATATYPE="{self._attributes[PropClassAttr.DATATYPE]}" and CLASS={self._attributes[PropClassAttr.CLASS]} restrictions.')
317
317
 
318
- # setting property type for OWL which distinguished between Data- and Object-properties
319
318
  if not self._attributes.get(PropClassAttr.TYPE):
320
319
  self._attributes[PropClassAttr.TYPE] = ObservableSet(notifier=self.notifier, notify_data=PropClassAttr.TYPE)
321
- if self._statementProperty:
320
+
321
+ #
322
+ # process the statement property stuff
323
+ #
324
+ if self._statementProperty and OwlPropertyType.StatementProperty not in self._attributes[PropClassAttr.TYPE]:
322
325
  self._attributes[PropClassAttr.TYPE].add(OwlPropertyType.StatementProperty)
326
+ if not self._statementProperty and OwlPropertyType.StatementProperty in self._attributes[PropClassAttr.TYPE]:
327
+ self._statementProperty = Xsd_boolean(True)
328
+
329
+ #
330
+ # setting property type for OWL which distinguished between Data- and Object-properties
331
+ #
323
332
  if self._attributes.get(PropClassAttr.CLASS) is not None:
324
333
  if OwlPropertyType.OwlDataProperty in self._attributes[PropClassAttr.TYPE]:
325
334
  raise OldapErrorInconsistency(f'Property {self._property_class_iri} cannot be both a link property and a data property.')
oldaplib/src/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.3.15"
1
+ __version__ = "0.3.16"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: oldaplib
3
- Version: 0.3.15
3
+ Version: 0.3.16
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
@@ -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=feWze8I0FxIgXGCn0jlBMVu69xULj43KIceP8GL0J9s,94266
69
+ oldaplib/src/propertyclass.py,sha256=Tg33hRcLj4lPiV1xsCmClQJ_4eeQM3xgjJuDqSUaAd0,94611
70
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=gfCyWXKIm8Pcp9T835VgQrEZyolnHdfkmrdCNFY3zyg,22
73
+ oldaplib/src/version.py,sha256=1dz5rh5GIjluSgoXpRuzvPun2sYIJApenXhltdKxmbg,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.15.dist-info/METADATA,sha256=XhFAj7WMCjQDXGb-d-a1l2oWZNqu5TX49cn_fHW1ZAI,3061
162
- oldaplib-0.3.15.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
163
- oldaplib-0.3.15.dist-info/RECORD,,
161
+ oldaplib-0.3.16.dist-info/METADATA,sha256=HUF_cfHaAbG73HuItW0PJCwBS5vLtA60ngM7FOmCFMo,3061
162
+ oldaplib-0.3.16.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
163
+ oldaplib-0.3.16.dist-info/RECORD,,