|
18 | 18 | This module creates a graph object that provides a basic UCO characterization of a single file. The gathered metadata is among the more "durable" file characteristics, i.e. characteristics that would remain consistent when transferring a file between locations. |
19 | 19 | """ |
20 | 20 |
|
21 | | -__version__ = "0.6.0" |
| 21 | +__version__ = "0.7.0" |
22 | 22 |
|
23 | 23 | import argparse |
24 | 24 | import datetime |
|
38 | 38 | NS_UCO_CORE, |
39 | 39 | NS_UCO_OBSERVABLE, |
40 | 40 | NS_UCO_TYPES, |
41 | | - NS_UCO_VOCABULARY, |
42 | 41 | NS_XSD, |
43 | 42 | ) |
44 | 43 |
|
@@ -228,14 +227,9 @@ def create_file_node( |
228 | 227 |
|
229 | 228 | l_hash_method: rdflib.Literal |
230 | 229 | if key in ("sha3_256", "sha3_512"): |
231 | | - l_hash_method = rdflib.Literal( |
232 | | - key.replace("_", "-").upper(), |
233 | | - datatype=NS_UCO_VOCABULARY.HashNameVocab, |
234 | | - ) |
| 230 | + l_hash_method = rdflib.Literal(key.replace("_", "-").upper()) |
235 | 231 | else: |
236 | | - l_hash_method = rdflib.Literal( |
237 | | - key.upper(), datatype=NS_UCO_VOCABULARY.HashNameVocab |
238 | | - ) |
| 232 | + l_hash_method = rdflib.Literal(key.upper()) |
239 | 233 |
|
240 | 234 | hash_value: str = getattr(successful_hashdict, key) |
241 | 235 | l_hash_value = rdflib.Literal(hash_value.upper(), datatype=NS_XSD.hexBinary) |
@@ -300,7 +294,6 @@ def main() -> None: |
300 | 294 | graph.namespace_manager.bind("uco-core", NS_UCO_CORE) |
301 | 295 | graph.namespace_manager.bind("uco-observable", NS_UCO_OBSERVABLE) |
302 | 296 | graph.namespace_manager.bind("uco-types", NS_UCO_TYPES) |
303 | | - graph.namespace_manager.bind("uco-vocabulary", NS_UCO_VOCABULARY) |
304 | 297 | graph.namespace_manager.bind("xsd", NS_XSD) |
305 | 298 |
|
306 | 299 | output_format = None |
|
0 commit comments