-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknowledge-graph
1827 lines (1640 loc) · 51.6 KB
/
knowledge-graph
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Start new chat
Projects
Starred
Scrypted Plugins
Recents
Transferring Knowledge Graph Data to SQLite
Joining Data Without SQLite
Installing Python Requests Library
Analyzing Programming Best Practices
Docker Compose vs .env Files
Untangling a Complex Codebase
Verifying Sync Between Local and Remote Repositories
Adding Vulnerabilities to Security Scanner
View all
Professional plan
DM
Help & support
DM
Transferring Knowledge Graph Data to SQLite
DM
add data from memory graph to sqlte
I'll help you create code to read data from the knowledge graph and store it in SQLite. First, let's read the current graph data and then create appropriate SQL tables and insert the data.
View Result from read_graph from memory (local)
{}
{
"entities": [
{
"type": "entity",
"name": "Hikvision",
"entityType": "Plugin",
"observations": [
"Supports cameras and NVRs",
"Implements VideoCamera, Camera, Intercom, Reboot, ObjectDetector interfaces",
"Supports two-way audio via ONVIF or Hikvision protocols",
"Package version 0.0.151",
"Requires @scrypted/prebuffer-mixin plugin dependency"
]
},
{
"type": "entity",
"name": "VideoCamera",
"entityType": "Interface",
"observations": [
"Core interface for video streaming capabilities",
"Provides getVideoStream and getVideoStreamOptions methods",
"Used for capturing video streams from cameras"
]
},
{
"type": "entity",
"name": "Intercom",
"entityType": "Interface",
"observations": [
"Interface for two-way audio communication",
"Provides startIntercom and stopIntercom methods",
"Used for doorbell and camera audio interaction"
]
},
{
"type": "entity",
"name": "ObjectDetector",
"entityType": "Interface",
"observations": [
"Interface for object detection capabilities",
"Provides methods for detecting and tracking objects",
"Used for smart detection features"
]
},
{
"type": "entity",
"name": "RTSP",
"entityType": "Protocol",
"observations": [
"Real Time Streaming Protocol for media streams",
"Supports video streaming over TCP/UDP",
"Used for camera video streams"
]
},
{
"type": "entity",
"name": "HikvisionCamera",
"entityType": "Class",
"observations": [
"Main camera implementation class",
"Extends RtspSmartCamera",
"Handles video streaming, two-way audio, and object detection"
]
},
{
"type": "entity",
"name": "RtspProvider",
"entityType": "Class",
"observations": [
"Base class for RTSP-based camera providers",
"Handles RTSP stream setup and management"
]
},
{
"type": "entity",
"name": "MotionSensor",
"entityType": "Interface",
"observations": [
"Interface for motion detection capabilities",
"Provides motion events",
"Used for camera motion detection"
]
},
{
"type": "entity",
"name": "TwoWayAudio",
"entityType": "Feature",
"observations": [
"Supports both ONVIF and Hikvision protocols",
"Requires G.711ulaw codec for compatibility",
"Used for intercom functionality"
]
},
{
"type": "entity",
"name": "VAPIX",
"entityType": "Protocol",
"observations": [
"Hikvision camera control protocol",
"Used for device configuration and control",
"Version 3 supported"
]
},
{
"type": "entity",
"name": "StreamProfile",
"entityType": "Configuration",
"observations": [
"Configures video stream parameters",
"Supports multiple stream profiles per camera",
"Used for different streaming quality settings"
]
},
{
"type": "entity",
"name": "DeviceSettings",
"entityType": "Configuration",
"observations": [
"Camera device settings",
"Includes IP address, username, password",
"Controls HTTP port and channel settings"
]
},
{
"type": "entity",
"name": "MotionDetection",
"entityType": "Feature",
"observations": [
"Hardware-based motion detection",
"Requires motion detection grid configuration",
"Provides motion events to Scrypted"
]
},
{
"type": "entity",
"name": "NVRSupport",
"entityType": "Feature",
"observations": [
"Support for Hikvision NVR devices",
"Uses channel numbers for camera identification",
"Supports multiple substreams per camera"
]
},
{
"type": "entity",
"name": "StreamManagement",
"entityType": "CoreConcept",
"observations": [
"Handles configuration and access to different video streams/profiles",
"Must handle main streams and sub-streams",
"Needs to map available resolutions, codecs, framerates"
]
},
{
"type": "entity",
"name": "EventHandling",
"entityType": "CoreConcept",
"observations": [
"Manages motion detection and other events from camera",
"Must handle event subscription and reconnection",
"Needs to map camera-specific events to Scrypted interfaces"
]
},
{
"type": "entity",
"name": "AxisStreamProfiles",
"entityType": "Implementation",
"observations": [
"Uses VAPIX Stream Profile API for stream management",
"Profiles contain collections of parameters including codecs, resolutions, framerates",
"Scene Profile settings affect all streams",
"Can query and manage profiles through VAPIX Parameter Management API"
]
},
{
"type": "entity",
"name": "AxisOnvifProfiles",
"entityType": "Implementation",
"observations": [
"ONVIF Media Profiles exist separately from VAPIX Stream Profiles",
"Need to query both VAPIX and ONVIF for complete stream management",
"Some settings only available through ONVIF profiles"
]
},
{
"type": "entity",
"name": "RtspSmartCamera",
"entityType": "BaseClass",
"observations": [
"Base class used by most camera plugins",
"Handles RTSP connection management",
"Provides snapshot and streaming capabilities",
"Manages connection settings and credentials"
]
},
{
"type": "entity",
"name": "CameraProvider",
"entityType": "BaseClass",
"observations": [
"Handles device discovery and creation",
"Manages initial device setup and validation",
"Provides provider-wide settings and capabilities"
]
},
{
"type": "entity",
"name": "DeviceInterfaces",
"entityType": "CoreConcept",
"observations": [
"Camera plugins commonly implement Camera, VideoCamera, MotionSensor",
"Optional interfaces include PanTiltZoom, Intercom",
"Interface availability must be determined from device capabilities"
]
},
{
"type": "entity",
"name": "StreamConfiguration",
"entityType": "CoreConcept",
"observations": [
"Must handle different stream qualities (main, substream)",
"Must map available codecs and resolutions",
"Must construct proper RTSP/stream URLs",
"Must handle authentication"
]
},
{
"type": "entity",
"name": "AxisMediaProfiles",
"entityType": "Implementation",
"observations": [
"Can be accessed through /axis-cgi/param.cgi endpoint",
"Need to query available media sources",
"Media profiles contain: resolution, fps, codec, compression",
"Profiles persist across camera reboots",
"Can have different profiles for live view and recording"
]
},
{
"type": "entity",
"name": "AxisStreamConfig",
"entityType": "Implementation",
"observations": [
"RTSP URL format: rtsp://host/axis-media/media.amp",
"Stream parameters passed through URL query string",
"Parameters include: videocodec, resolution, compression, fps",
"Scene profiles affect all streams"
]
},
{
"type": "entity",
"name": "AxisEvents",
"entityType": "Implementation",
"observations": [
"Events available through VAPIX /axis-cgi/event.cgi",
"Some events only available through ONVIF",
"Motion detection can use VAPIX VMD or ONVIF events",
"Event reconnection handling is crucial"
]
},
{
"type": "entity",
"name": "StreamDiscovery",
"entityType": "CoreConcept",
"observations": [
"Initial stream discovery happens during device creation",
"Streams are cached and refreshed periodically",
"Must handle connection failures gracefully",
"Different plugins use different discovery mechanisms"
]
},
{
"type": "entity",
"name": "OnvifStreamDiscovery",
"entityType": "Implementation",
"observations": [
"Uses ONVIF Media service to query profiles",
"Filters profiles to H264 streams only",
"Maps ONVIF profile metadata to RtspStreamOptions",
"Handles profile selection based on stream purpose"
]
},
{
"type": "entity",
"name": "RtspStreamOptions",
"entityType": "CoreStructure",
"observations": [
"Contains URL construction logic",
"Maps video/audio codecs",
"Handles authentication parameters",
"Provides stream metadata (resolution, fps, etc)"
]
},
{
"type": "entity",
"name": "StreamManagementState",
"entityType": "CoreStructure",
"observations": [
"Tracks available streams",
"Maps stream IDs to profile data",
"Maintains stream state (active/inactive)",
"Handles stream switching"
]
},
{
"type": "entity",
"name": "StreamHandlingHikvision",
"entityType": "Implementation",
"observations": [
"Uses detectedChannels Promise<Map> to track available streams",
"Caches channel information",
"Filters by camera number for NVR support",
"Maps channel capabilities including width, height, codec",
"Constructs RTSP URLs with appropriate parameters"
]
},
{
"type": "entity",
"name": "StreamHandlingPatterns",
"entityType": "Pattern",
"observations": [
"Common pattern: Cache stream info in Promise<Map>",
"Handle device-specific stream enumeration",
"Map raw device capabilities to MediaStreamOptions",
"Support stream selection/filtering",
"Construct appropriate RTSP URLs"
]
},
{
"type": "entity",
"name": "OnvifStreamHandling",
"entityType": "Implementation",
"observations": [
"Uses rtspMediaStreamOptions Promise to cache streams",
"Streams discovered through ONVIF Media service",
"Maps ONVIF profiles to MediaStreamOptions",
"Handles stream reconfiguration through setVideoStreamOptions",
"Includes codec configuration capabilities"
]
},
{
"type": "entity",
"name": "OnvifCodecConfiguration",
"entityType": "Implementation",
"observations": [
"Configures video codecs through ONVIF API",
"Handles automatic stream configuration",
"Supports H264 profiles and settings",
"Maps ONVIF codec parameters to stream options"
]
},
{
"type": "entity",
"name": "OnvifDeviceCreation",
"entityType": "Implementation",
"observations": [
"Handles initial device setup and validation",
"Probes for device capabilities including PTZ",
"Supports automatic codec configuration",
"Manages device settings and credentials"
]
},
{
"type": "entity",
"name": "UnifiStreamHandling",
"entityType": "Implementation",
"observations": [
"Uses channel-based stream configuration",
"Maps camera channels to MediaStreamOptions",
"Supports bitrate control and IDR interval",
"Marks streams as 'scrypted' compatible",
"Handles direct RTSP access"
]
},
{
"type": "entity",
"name": "UnifiStreamConfiguration",
"entityType": "Implementation",
"observations": [
"Direct mapping of channel properties",
"Supports bitrate range configuration",
"Includes audio codec specification",
"Provides stream naming and identification"
]
},
{
"type": "entity",
"name": "ChannelBasedStreams",
"entityType": "Pattern",
"observations": [
"Common pattern for multi-stream cameras",
"Each channel represents different quality settings",
"Maps hardware channels to stream options",
"Includes stream metadata like resolution and FPS"
]
},
{
"type": "entity",
"name": "BaseCameraPlugin",
"entityType": "CoreStructure",
"observations": [
"Extends RtspSmartCamera",
"Implements Camera, VideoCamera interfaces",
"Handles common camera operations",
"Manages device state and settings"
]
},
{
"type": "entity",
"name": "StreamDiscoveryPattern",
"entityType": "CorePattern",
"observations": [
"Uses Promise<Map> for caching stream info",
"Discovers streams on first request",
"Maps hardware capabilities to MediaStreamOptions",
"Handles different stream qualities and profiles"
]
},
{
"type": "entity",
"name": "StreamUrlConstruction",
"entityType": "CorePattern",
"observations": [
"Builds RTSP URLs based on protocol requirements",
"Handles authentication parameters",
"Manages stream parameters in URL",
"Maps stream IDs to URLs"
]
},
{
"type": "entity",
"name": "MediaStreamMapping",
"entityType": "CorePattern",
"observations": [
"Maps native stream/profile format to MediaStreamOptions",
"Includes video codec, resolution, fps info",
"Handles audio stream configuration",
"Maps stream IDs and capabilities"
]
},
{
"type": "entity",
"name": "DeviceCapabilityManagement",
"entityType": "CorePattern",
"observations": [
"Detects supported device features",
"Enables/disables interfaces based on capabilities",
"Manages PTZ, two-way audio, events support",
"Updates device state based on capabilities"
]
},
{
"type": "entity",
"name": "EventHandlingPattern",
"entityType": "CorePattern",
"observations": [
"Subscribes to device events (motion, etc)",
"Handles event reconnection",
"Maps device events to Scrypted interfaces",
"Maintains event state"
]
},
{
"type": "entity",
"name": "SettingsManagement",
"entityType": "CorePattern",
"observations": [
"Handles device configuration settings",
"Validates and applies settings changes",
"Manages credentials and network settings",
"Handles stream configuration settings"
]
},
{
"type": "entity",
"name": "HikvisionImplementation",
"entityType": "Implementation",
"observations": [
"Uses detectedChannels Promise<Map>",
"Handles NVR channel discovery",
"Maps channels to streams",
"NVR-specific stream filtering"
]
},
{
"type": "entity",
"name": "OnvifImplementation",
"entityType": "Implementation",
"observations": [
"Uses ONVIF Media service",
"Handles profile discovery",
"Supports codec configuration",
"Maps ONVIF profiles to streams"
]
},
{
"type": "entity",
"name": "UnifiImplementation",
"entityType": "Implementation",
"observations": [
"Uses channel-based configuration",
"Direct RTSP stream access",
"Supports bitrate control",
"Marks streams as scrypted-compatible"
]
},
{
"type": "entity",
"name": "AxisImplementation",
"entityType": "Implementation",
"observations": [
"Uses ONVIF media profiles",
"H264 stream filtering",
"Standard RTSP URL format",
"Profile-based stream configuration"
]
},
{
"type": "entity",
"name": "DeviceDiscoveryPattern",
"entityType": "CorePattern",
"observations": [
"Auto-discovery of network devices",
"Discovery timeout management",
"Device mapping and tracking",
"Discovery event handling"
]
},
{
"type": "entity",
"name": "DeviceAdoptionPattern",
"entityType": "CorePattern",
"observations": [
"Converts discovered to managed devices",
"Handles settings during adoption",
"Manages auto-configuration",
"Cleanup of discovery state"
]
},
{
"type": "entity",
"name": "AutoConfigurationPattern",
"entityType": "CorePattern",
"observations": [
"Automatic codec/stream configuration",
"Initial and on-demand configuration",
"Handles device-specific setup",
"Configuration error handling"
]
},
{
"type": "entity",
"name": "MixinManagementPattern",
"entityType": "CorePattern",
"observations": [
"Dynamic mixin handling",
"Capability-based mixin addition",
"Mixin lifecycle management",
"Interface updates for mixins"
]
},
{
"type": "entity",
"name": "InterfaceManagementPattern",
"entityType": "CorePattern",
"observations": [
"Dynamic interface updates",
"Capability-driven interfaces",
"Settings-based interface changes",
"Interface state management"
]
},
{
"type": "entity",
"name": "AmcrestImplementation",
"entityType": "Implementation",
"observations": [
"Uses Promise<Map> for stream discovery",
"Handles channel-based streams",
"Stores vsos JSON for caching",
"Has settings-driven interface updates",
"Implements both ONVIF and native audio"
]
},
{
"type": "entity",
"name": "CommonImplementationElements",
"entityType": "Pattern",
"observations": [
"All use Promise<Map> for stream caching",
"All implement updateDevice for interface management",
"All handle device capabilities dynamically",
"All support stream discovery",
"All implement proper error handling"
]
},
{
"type": "entity",
"name": "John",
"entityType": "Person",
"observations": [
"Software engineer",
"Lives in Seattle"
]
},
{
"type": "entity",
"name": "Python",
"entityType": "ProgrammingLanguage",
"observations": [
"High-level language",
"Created by Guido van Rossum"
]
}
],
"relations": [
{
"type": "relation",
"from": "Hikvision",
"to": "VideoCamera",
"relationType": "implements"
},
{
"type": "relation",
"from": "Hikvision",
"to": "Intercom",
"relationType": "implements"
},
{
"type": "relation",
"from": "Hikvision",
"to": "ObjectDetector",
"relationType": "implements"
},
{
"type": "relation",
"from": "Hikvision",
"to": "RTSP",
"relationType": "uses"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "RtspProvider",
"relationType": "extends"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "MotionSensor",
"relationType": "implements"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "TwoWayAudio",
"relationType": "supports"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "VAPIX",
"relationType": "uses"
},
{
"type": "relation",
"from": "Hikvision",
"to": "HikvisionCamera",
"relationType": "provides"
},
{
"type": "relation",
"from": "TwoWayAudio",
"to": "Intercom",
"relationType": "implements"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "StreamProfile",
"relationType": "configures"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "DeviceSettings",
"relationType": "uses"
},
{
"type": "relation",
"from": "HikvisionCamera",
"to": "MotionDetection",
"relationType": "implements"
},
{
"type": "relation",
"from": "Hikvision",
"to": "NVRSupport",
"relationType": "provides"
},
{
"type": "relation",
"from": "MotionDetection",
"to": "MotionSensor",
"relationType": "implements"
},
{
"type": "relation",
"from": "StreamProfile",
"to": "RTSP",
"relationType": "configures"
},
{
"type": "relation",
"from": "StreamManagement",
"to": "AxisStreamProfiles",
"relationType": "implements"
},
{
"type": "relation",
"from": "StreamManagement",
"to": "AxisOnvifProfiles",
"relationType": "implements"
},
{
"type": "relation",
"from": "AxisStreamProfiles",
"to": "AxisOnvifProfiles",
"relationType": "complementsWith"
},
{
"type": "relation",
"from": "StreamConfiguration",
"to": "RtspSmartCamera",
"relationType": "dependsOn"
},
{
"type": "relation",
"from": "StreamConfiguration",
"to": "StreamManagement",
"relationType": "implements"
},
{
"type": "relation",
"from": "RtspSmartCamera",
"to": "DeviceInterfaces",
"relationType": "provides"
},
{
"type": "relation",
"from": "CameraProvider",
"to": "RtspSmartCamera",
"relationType": "creates"
},
{
"type": "relation",
"from": "AxisMediaProfiles",
"to": "StreamConfiguration",
"relationType": "implements"
},
{
"type": "relation",
"from": "AxisStreamConfig",
"to": "AxisMediaProfiles",
"relationType": "configures"
},
{
"type": "relation",
"from": "AxisEvents",
"to": "EventHandling",
"relationType": "implements"
},
{
"type": "relation",
"from": "StreamHandlingHikvision",
"to": "StreamHandlingPatterns",
"relationType": "implements"
},
{
"type": "relation",
"from": "StreamHandlingPatterns",
"to": "StreamConfiguration",
"relationType": "defines"
},
{
"type": "relation",
"to": "StreamHandlingPatterns",
"from": "OnvifStreamHandling",
"relationType": "implements"
},
{
"type": "relation",
"to": "OnvifStreamHandling",
"from": "OnvifCodecConfiguration",
"relationType": "configures"
},
{
"type": "relation",
"to": "StreamConfiguration",
"from": "OnvifStreamHandling",
"relationType": "implements"
},
{
"type": "relation",
"to": "StreamHandlingPatterns",
"from": "ChannelBasedStreams",
"relationType": "extends"
},
{
"type": "relation",
"to": "UnifiStreamHandling",
"from": "UnifiStreamConfiguration",
"relationType": "configures"
},
{
"type": "relation",
"to": "ChannelBasedStreams",
"from": "UnifiStreamHandling",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "StreamDiscoveryPattern",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "StreamUrlConstruction",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "MediaStreamMapping",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "DeviceCapabilityManagement",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "EventHandlingPattern",
"relationType": "implements"
},
{
"type": "relation",
"from": "BaseCameraPlugin",
"to": "SettingsManagement",
"relationType": "implements"
},
{
"type": "relation",
"from": "StreamDiscoveryPattern",
"to": "MediaStreamMapping",
"relationType": "uses"
},
{
"type": "relation",
"from": "StreamDiscoveryPattern",
"to": "StreamUrlConstruction",
"relationType": "produces"
},
{
"type": "relation",
"from": "DeviceCapabilityManagement",
"to": "SettingsManagement",
"relationType": "configures"
},
{
"type": "relation",
"from": "HikvisionImplementation",
"to": "BaseCameraPlugin",
"relationType": "extends"
},
{
"type": "relation",
"from": "OnvifImplementation",
"to": "BaseCameraPlugin",
"relationType": "extends"
},
{
"type": "relation",
"from": "UnifiImplementation",
"to": "BaseCameraPlugin",
"relationType": "extends"
},
{
"type": "relation",
"from": "AxisImplementation",
"to": "BaseCameraPlugin",
"relationType": "extends"
},
{
"type": "relation",
"from": "AxisImplementation",
"to": "OnvifImplementation",
"relationType": "uses"
},
{
"type": "relation",
"from": "HikvisionImplementation",
"to": "StreamDiscoveryPattern",
"relationType": "implements"
},
{
"type": "relation",
"from": "OnvifImplementation",
"to": "StreamDiscoveryPattern",
"relationType": "implements"
},
{
"type": "relation",
"from": "UnifiImplementation",
"to": "StreamDiscoveryPattern",
"relationType": "implements"
},
{
"type": "relation",
"from": "AxisImplementation",
"to": "StreamDiscoveryPattern",
"relationType": "implements"
},
{
"type": "relation",
"to": "DeviceDiscoveryPattern",
"from": "DeviceAdoptionPattern",
"relationType": "uses"
},
{
"type": "relation",
"to": "AutoConfigurationPattern",
"from": "DeviceAdoptionPattern",
"relationType": "uses"
},
{
"type": "relation",
"to": "InterfaceManagementPattern",
"from": "MixinManagementPattern",
"relationType": "updates"
},
{
"type": "relation",
"to": "BaseCameraPlugin",
"from": "DeviceDiscoveryPattern",
"relationType": "extends"
},
{
"type": "relation",
"to": "BaseCameraPlugin",
"from": "AutoConfigurationPattern",
"relationType": "supports"
},
{
"type": "relation",
"to": "CommonImplementationElements",