Skip to content

Commit 0e875c9

Browse files
committed
Remove xsd:long usage
References: * [AC-183] Apply minimal CASE-Utilities-Python updates to use CASE 0.4.0 and UCO 0.6.0 * [UCO OC-19] (CP-24) UCO might not need xsd:long Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 034874c commit 0e875c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

case_utils/case_file/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def create_file_node(graph, filepath, node_iri=None, node_prefix=DEFAULT_PREFIX,
8787
graph.add((
8888
n_file_facet,
8989
NS_UCO_OBSERVABLE.sizeInBytes,
90-
rdflib.Literal(file_stat.st_size, datatype=NS_XSD.long)
90+
rdflib.Literal(int(file_stat.st_size))
9191
))
9292
graph.add((
9393
n_file,
@@ -174,7 +174,7 @@ def create_file_node(graph, filepath, node_iri=None, node_prefix=DEFAULT_PREFIX,
174174
graph.add((
175175
n_contentdata_facet,
176176
NS_UCO_OBSERVABLE.sizeInBytes,
177-
rdflib.Literal(successful_hashdict["filesize"], datatype=NS_XSD.long)
177+
rdflib.Literal(successful_hashdict["filesize"])
178178
))
179179

180180
# Add confirmed hashes into graph.

0 commit comments

Comments
 (0)