@@ -81,7 +81,7 @@ def controlled_dictionary_object_to_node(
81
81
controlled_dict : typing .Dict [str , rdflib .Literal ],
82
82
) -> rdflib .URIRef :
83
83
n_controlled_dictionary = ns_base [
84
- "controlled-dictionary -" + case_utils .local_uuid .local_uuid ()
84
+ "ControlledDictionary -" + case_utils .local_uuid .local_uuid ()
85
85
]
86
86
graph .add ((n_controlled_dictionary , NS_RDF .type , NS_UCO_TYPES .ControlledDictionary ))
87
87
for key in sorted (controlled_dict .keys ()):
@@ -92,7 +92,7 @@ def controlled_dictionary_object_to_node(
92
92
_logger .info ("v_value = %r." % v_value )
93
93
raise
94
94
n_entry = ns_base [
95
- "controlled-dictionary-entry -" + case_utils .local_uuid .local_uuid ()
95
+ "ControlledDictionaryEntry -" + case_utils .local_uuid .local_uuid ()
96
96
]
97
97
graph .add ((n_controlled_dictionary , NS_UCO_TYPES .entry , n_entry ))
98
98
graph .add ((n_entry , NS_RDF .type , NS_UCO_TYPES .ControlledDictionaryEntry ))
@@ -114,7 +114,7 @@ def manufacturer_name_to_node(
114
114
"""
115
115
n_manufacturer : typing .Optional [rdflib .URIRef ] = None
116
116
if printconv_name is not None or raw_name is not None :
117
- n_manufacturer = ns_base ["identity -" + case_utils .local_uuid .local_uuid ()]
117
+ n_manufacturer = ns_base ["Identity -" + case_utils .local_uuid .local_uuid ()]
118
118
graph .add ((n_manufacturer , NS_RDF .type , NS_UCO_IDENTITY .Identity ))
119
119
120
120
if printconv_name is not None :
@@ -411,9 +411,9 @@ def _load_xml_file_into_dict(
411
411
)
412
412
413
413
# Determine slug by MIME type.
414
- self .oo_slug = "file -" # The prefix "oo_" means generic observable object.
414
+ self .oo_slug = "File -" # The prefix "oo_" means generic observable object.
415
415
if self .mime_type == "image/jpeg" :
416
- self .oo_slug = "picture -"
416
+ self .oo_slug = "Picture -"
417
417
else :
418
418
_logger .warning ("TODO - MIME type %r not yet implemented." % self .mime_type )
419
419
@@ -509,7 +509,7 @@ def n_camera_object(self) -> rdflib.URIRef:
509
509
"""
510
510
if self ._n_camera_object is None :
511
511
self ._n_camera_object = self .ns_base [
512
- "device -" + case_utils .local_uuid .local_uuid ()
512
+ "Device -" + case_utils .local_uuid .local_uuid ()
513
513
]
514
514
self .graph .add (
515
515
(self ._n_camera_object , NS_RDF .type , NS_UCO_OBSERVABLE .ObservableObject )
@@ -523,7 +523,7 @@ def n_camera_object_device_facet(self) -> rdflib.URIRef:
523
523
"""
524
524
if self ._n_camera_object_device_facet is None :
525
525
self ._n_camera_object_device_facet = self .ns_base [
526
- "device-facet -" + case_utils .local_uuid .local_uuid ()
526
+ "DeviceFacet -" + case_utils .local_uuid .local_uuid ()
527
527
]
528
528
self .graph .add (
529
529
(
@@ -548,7 +548,7 @@ def n_content_data_facet(self) -> rdflib.URIRef:
548
548
"""
549
549
if self ._n_content_data_facet is None :
550
550
self ._n_content_data_facet = self .ns_base [
551
- "content-data-facet -" + case_utils .local_uuid .local_uuid ()
551
+ "ContentDataFacet -" + case_utils .local_uuid .local_uuid ()
552
552
]
553
553
self .graph .add (
554
554
(
@@ -591,7 +591,7 @@ def n_exif_facet(self) -> rdflib.URIRef:
591
591
"""
592
592
if self ._n_exif_facet is None :
593
593
self ._n_exif_facet = self .ns_base [
594
- "exif-facet -" + case_utils .local_uuid .local_uuid ()
594
+ "EXIFFacet -" + case_utils .local_uuid .local_uuid ()
595
595
]
596
596
self .graph .add (
597
597
(self ._n_exif_facet , NS_RDF .type , NS_UCO_OBSERVABLE .EXIFFacet )
@@ -608,7 +608,7 @@ def n_file_facet(self) -> rdflib.URIRef:
608
608
"""
609
609
if self ._n_file_facet is None :
610
610
self ._n_file_facet = self .ns_base [
611
- "file-facet -" + case_utils .local_uuid .local_uuid ()
611
+ "FileFacet -" + case_utils .local_uuid .local_uuid ()
612
612
]
613
613
self .graph .add (
614
614
(self ._n_file_facet , NS_RDF .type , NS_UCO_OBSERVABLE .FileFacet )
@@ -625,7 +625,7 @@ def n_location_object(self) -> rdflib.URIRef:
625
625
"""
626
626
if self ._n_location_object is None :
627
627
self ._n_location_object = self .ns_base [
628
- "location -" + case_utils .local_uuid .local_uuid ()
628
+ "Location -" + case_utils .local_uuid .local_uuid ()
629
629
]
630
630
self .graph .add (
631
631
(self ._n_location_object , NS_RDF .type , NS_UCO_LOCATION .Location )
@@ -639,7 +639,7 @@ def n_location_object_latlong_facet(self) -> rdflib.URIRef:
639
639
"""
640
640
if self ._n_location_object_latlong_facet is None :
641
641
self ._n_location_object_latlong_facet = self .ns_base [
642
- "lat-long-coordinates-facet -" + case_utils .local_uuid .local_uuid ()
642
+ "LatLongCoordinatesFacet -" + case_utils .local_uuid .local_uuid ()
643
643
]
644
644
self .graph .add (
645
645
(
@@ -684,7 +684,7 @@ def n_raster_picture_facet(self) -> rdflib.URIRef:
684
684
"""
685
685
if self ._n_raster_picture_facet is None :
686
686
self ._n_raster_picture_facet = self .ns_base [
687
- "raster-picture-facet -" + case_utils .local_uuid .local_uuid ()
687
+ "RasterPictureFacet -" + case_utils .local_uuid .local_uuid ()
688
688
]
689
689
self .graph .add (
690
690
(
@@ -709,7 +709,7 @@ def n_relationship_object_location(self) -> rdflib.URIRef:
709
709
"""
710
710
if self ._n_relationship_object_location is None :
711
711
self ._n_relationship_object_location = self .ns_base [
712
- "relationship -" + case_utils .local_uuid .local_uuid ()
712
+ "Relationship -" + case_utils .local_uuid .local_uuid ()
713
713
]
714
714
self .graph .add (
715
715
(
@@ -755,7 +755,7 @@ def n_unix_file_permissions_facet(self) -> rdflib.URIRef:
755
755
"""
756
756
if self ._n_unix_file_permissions_facet is None :
757
757
self ._n_unix_file_permissions_facet = self .ns_base [
758
- "unix-file-permissions-facet -" + case_utils .local_uuid .local_uuid ()
758
+ "UNIXFilePermissionsFacet -" + case_utils .local_uuid .local_uuid ()
759
759
]
760
760
self .graph .add (
761
761
(
0 commit comments