You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit df0bf33
Browse filesBrowse the repository at this point in the historyBrowse files
f"ERROR: Resource '{resource.label}' (ID: {resource.id}) has an invalid resource type "
286
+
f"'{resource.restype}'. Is your syntax correct? Remember the rules:\n"
287
+
f" - DSP-API internals: <resource restype=\"restype\"> (will be interpreted as 'knora-api:restype')\n"
288
+
f" - current ontology: <resource restype=\":restype\"> ('restype' must be defined in the 'resources' section of your ontology)\n"
289
+
f" - other ontology: <resource restype=\"other:restype\"> (not yet implemented: 'other' must be defined in the same JSON project file than your ontology)")
f"ERROR: Resource '{resource.label}' (ID: {resource.id}) has an invalid property '{propname}'. "
296
+
f"Is your syntax correct? Remember the rules:\n"
297
+
f" - DSP-API internals: <text-prop name=\"propname\"> (will be interpreted as 'knora-api:propname')\n"
298
+
f" - current ontology: <text-prop name=\":propname\"> ('propname' must be defined in the 'properties' section of your ontology)\n"
299
+
f" - other ontology: <text-prop name=\"other:propname\"> (not yet implemented: 'other' must be defined in the same JSON project file than your ontology)")
300
+
exit(1)
301
+
302
+
print("The resource types and properties in your XML are consistent with the ontology.")
303
+
277
304
# temporarily remove circular references, but only if not an incremental upload
0 commit comments