Skip to content

Commit 1dc8894

Browse files
authored
Merge pull request #17 from casework/fix_endianness_vocab_usage
Fix Endianness vocab. usage
2 parents 80688f0 + a4e4854 commit 1dc8894

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

exifread_case/exifread_case.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def filecontent_object_to_node(graph, n_content_facet, file_information):
119119
:param file_information: Dictionary containing information about file being analysed
120120
:return: None
121121
"""
122-
byte_order_facet = rdflib.URIRef(get_node_iri(ns=ns_kb, prefix="byteorder-"))
123122
file_hash_facet = rdflib.URIRef(get_node_iri(ns=ns_kb, prefix="hash-"))
124123
graph.add((
125124
n_content_facet,
@@ -129,17 +128,7 @@ def filecontent_object_to_node(graph, n_content_facet, file_information):
129128
graph.add((
130129
n_content_facet,
131130
NS_UCO_OBSERVABLE.byteOrder,
132-
byte_order_facet
133-
))
134-
graph.add((
135-
byte_order_facet,
136-
NS_RDF.type,
137-
NS_UCO_VOCABULARY.EndiannessTypeVocab,
138-
))
139-
graph.add((
140-
byte_order_facet,
141-
NS_UCO_VOCABULARY.value,
142-
rdflib.Literal("Big-endian")
131+
rdflib.Literal("Big-endian", datatype=NS_UCO_VOCABULARY.EndiannessTypeVocab)
143132
))
144133
if 'mimetype' in file_information.keys():
145134
graph.add((

0 commit comments

Comments
 (0)