We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d0aa4 commit 1d98d04Copy full SHA for 1d98d04
1 file changed
cmem_plugin_pyshacl/plugin_pyshacl.py
@@ -57,6 +57,7 @@
57
SHUI_SHAPE_CATALOG,
58
THESAURUS_PROJECT,
59
]
60
+CBD_LINES = 50
61
62
63
def e_t(start: float) -> float:
@@ -485,11 +486,11 @@ def check_object( # noqa: C901 PLR0912
485
486
if label:
487
res_val = str(label)
488
if not res_val:
- # first 50 lines of turtle CBD
489
+ # first [CBD_LINES] lines of turtle CBD
490
res_val = graph.cbd(obj).serialize(format="turtle")
491
cbd_lines = res_val.split("\n")
- if len(cbd_lines) > 50: # noqa: PLR2004
492
- res_val = "\n".join(cbd_lines[:50]) + "\n..."
+ if len(cbd_lines) > CBD_LINES:
493
+ res_val = "\n".join(cbd_lines[:CBD_LINES]) + "\n..."
494
elif isinstance(obj, Literal):
495
if pred == SH.value:
496
res_val = f'"{obj}"^^<{obj.datatype}>' if obj.datatype else f'"{obj}"'
0 commit comments