@unrdf/kgc-probe 26.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +414 -0
- package/package.json +81 -0
- package/src/agents/index.mjs +1402 -0
- package/src/artifact.mjs +405 -0
- package/src/cli.mjs +932 -0
- package/src/config.mjs +115 -0
- package/src/guards.mjs +1213 -0
- package/src/index.mjs +347 -0
- package/src/merge.mjs +196 -0
- package/src/observation.mjs +193 -0
- package/src/orchestrator.mjs +315 -0
- package/src/probe.mjs +58 -0
- package/src/probes/CONCURRENCY-PROBE.md +256 -0
- package/src/probes/README.md +275 -0
- package/src/probes/concurrency.mjs +1175 -0
- package/src/probes/filesystem.mjs +731 -0
- package/src/probes/filesystem.test.mjs +244 -0
- package/src/probes/network.mjs +503 -0
- package/src/probes/performance.mjs +816 -0
- package/src/probes/persistence.mjs +785 -0
- package/src/probes/runtime.mjs +589 -0
- package/src/probes/tooling.mjs +454 -0
- package/src/probes/tooling.test.mjs +372 -0
- package/src/probes/verify-execution.mjs +131 -0
- package/src/probes/verify-guards.mjs +73 -0
- package/src/probes/wasm.mjs +715 -0
- package/src/receipt.mjs +197 -0
- package/src/receipts/index.mjs +813 -0
- package/src/reporter.example.mjs +223 -0
- package/src/reporter.mjs +555 -0
- package/src/reporters/markdown.mjs +355 -0
- package/src/reporters/rdf.mjs +383 -0
- package/src/storage/index.mjs +827 -0
- package/src/types.mjs +1028 -0
- package/src/utils/errors.mjs +397 -0
- package/src/utils/index.mjs +32 -0
- package/src/utils/logger.mjs +236 -0
- package/src/vocabulary.ttl +169 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@prefix kgc: <https://unrdf.org/kgc/probe#> .
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
6
|
+
@prefix dcterms: <http://purl.org/dc/terms/> .
|
|
7
|
+
|
|
8
|
+
# =============================================================================
|
|
9
|
+
# KGC Probe Vocabulary
|
|
10
|
+
# =============================================================================
|
|
11
|
+
#
|
|
12
|
+
# This vocabulary defines the core terms used by KGC Probe for representing
|
|
13
|
+
# runtime observations, derived capabilities, and detected constraints.
|
|
14
|
+
#
|
|
15
|
+
# Design principles:
|
|
16
|
+
# - Minimal: Only essential terms, no overengineering
|
|
17
|
+
# - Provenance-focused: Every claim links to evidence (observations)
|
|
18
|
+
# - RDFS/OWL compatible: Standard semantics for tooling integration
|
|
19
|
+
#
|
|
20
|
+
# Version: 0.1.0
|
|
21
|
+
# Author: KGC Probe Agent 10 (Reporter & RDF Modeler)
|
|
22
|
+
# License: MIT
|
|
23
|
+
# =============================================================================
|
|
24
|
+
|
|
25
|
+
# -----------------------------------------------------------------------------
|
|
26
|
+
# Ontology Metadata
|
|
27
|
+
# -----------------------------------------------------------------------------
|
|
28
|
+
|
|
29
|
+
<https://unrdf.org/kgc/probe#> a owl:Ontology ;
|
|
30
|
+
dcterms:title "KGC Probe Vocabulary" ;
|
|
31
|
+
dcterms:description "Vocabulary for runtime environment probing and knowledge graph construction" ;
|
|
32
|
+
dcterms:creator "KGC Probe Multi-Agent System" ;
|
|
33
|
+
dcterms:created "2025-12-27"^^xsd:date ;
|
|
34
|
+
rdfs:label "KGC Probe Vocabulary" ;
|
|
35
|
+
rdfs:comment "Defines terms for observations, capabilities, and constraints in runtime environments" .
|
|
36
|
+
|
|
37
|
+
# -----------------------------------------------------------------------------
|
|
38
|
+
# Classes
|
|
39
|
+
# -----------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
kgc:Observation a owl:Class ;
|
|
42
|
+
rdfs:label "Observation" ;
|
|
43
|
+
rdfs:comment "An atomic unit of knowledge extracted from runtime environment probing" ;
|
|
44
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
45
|
+
|
|
46
|
+
kgc:Capability a owl:Class ;
|
|
47
|
+
rdfs:label "Capability" ;
|
|
48
|
+
rdfs:comment "A feature or resource available in the runtime environment (derived from observations)" ;
|
|
49
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
50
|
+
|
|
51
|
+
kgc:Constraint a owl:Class ;
|
|
52
|
+
rdfs:label "Constraint" ;
|
|
53
|
+
rdfs:comment "A limitation or boundary detected in the runtime environment (derived from observations)" ;
|
|
54
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
55
|
+
|
|
56
|
+
# -----------------------------------------------------------------------------
|
|
57
|
+
# Properties - Core
|
|
58
|
+
# -----------------------------------------------------------------------------
|
|
59
|
+
|
|
60
|
+
kgc:domain a owl:DatatypeProperty ;
|
|
61
|
+
rdfs:label "domain" ;
|
|
62
|
+
rdfs:comment "The domain/category of the observation (e.g., 'runtime', 'filesystem', 'concurrency')" ;
|
|
63
|
+
rdfs:domain kgc:Observation ;
|
|
64
|
+
rdfs:range xsd:string ;
|
|
65
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
66
|
+
|
|
67
|
+
kgc:method a owl:DatatypeProperty ;
|
|
68
|
+
rdfs:label "method" ;
|
|
69
|
+
rdfs:comment "The probe method that generated this observation (e.g., 'runtime.node-version')" ;
|
|
70
|
+
rdfs:domain kgc:Observation ;
|
|
71
|
+
rdfs:range xsd:string ;
|
|
72
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
73
|
+
|
|
74
|
+
kgc:timestamp a owl:DatatypeProperty ;
|
|
75
|
+
rdfs:label "timestamp" ;
|
|
76
|
+
rdfs:comment "ISO 8601 timestamp when the observation was recorded" ;
|
|
77
|
+
rdfs:domain kgc:Observation ;
|
|
78
|
+
rdfs:range xsd:dateTime ;
|
|
79
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
80
|
+
|
|
81
|
+
kgc:hash a owl:DatatypeProperty ;
|
|
82
|
+
rdfs:label "hash" ;
|
|
83
|
+
rdfs:comment "Deterministic SHA-256 hash of observation content for provenance tracking" ;
|
|
84
|
+
rdfs:domain kgc:Observation ;
|
|
85
|
+
rdfs:range xsd:string ;
|
|
86
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
87
|
+
|
|
88
|
+
kgc:outputs a owl:DatatypeProperty ;
|
|
89
|
+
rdfs:label "outputs" ;
|
|
90
|
+
rdfs:comment "JSON-serialized outputs/data from the probe method" ;
|
|
91
|
+
rdfs:domain kgc:Observation ;
|
|
92
|
+
rdfs:range rdf:JSON ;
|
|
93
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
94
|
+
|
|
95
|
+
# -----------------------------------------------------------------------------
|
|
96
|
+
# Properties - Optional Observation Metadata
|
|
97
|
+
# -----------------------------------------------------------------------------
|
|
98
|
+
|
|
99
|
+
kgc:guardDecision a owl:DatatypeProperty ;
|
|
100
|
+
rdfs:label "guard decision" ;
|
|
101
|
+
rdfs:comment "Security guard decision: 'allowed' or 'denied'" ;
|
|
102
|
+
rdfs:domain kgc:Observation ;
|
|
103
|
+
rdfs:range xsd:string ;
|
|
104
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
105
|
+
|
|
106
|
+
kgc:error a owl:DatatypeProperty ;
|
|
107
|
+
rdfs:label "error" ;
|
|
108
|
+
rdfs:comment "Error message if the probe method failed or encountered a limit" ;
|
|
109
|
+
rdfs:domain kgc:Observation ;
|
|
110
|
+
rdfs:range xsd:string ;
|
|
111
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
112
|
+
|
|
113
|
+
kgc:severity a owl:DatatypeProperty ;
|
|
114
|
+
rdfs:label "severity" ;
|
|
115
|
+
rdfs:comment "Observation severity level (trace, debug, info, warn, error, fatal)" ;
|
|
116
|
+
rdfs:domain kgc:Observation ;
|
|
117
|
+
rdfs:range xsd:string ;
|
|
118
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
119
|
+
|
|
120
|
+
# -----------------------------------------------------------------------------
|
|
121
|
+
# Properties - Capabilities
|
|
122
|
+
# -----------------------------------------------------------------------------
|
|
123
|
+
|
|
124
|
+
kgc:name a owl:DatatypeProperty ;
|
|
125
|
+
rdfs:label "name" ;
|
|
126
|
+
rdfs:comment "Capability name (e.g., 'concurrency.worker_threads')" ;
|
|
127
|
+
rdfs:domain kgc:Capability ;
|
|
128
|
+
rdfs:range xsd:string ;
|
|
129
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
130
|
+
|
|
131
|
+
kgc:available a owl:DatatypeProperty ;
|
|
132
|
+
rdfs:label "available" ;
|
|
133
|
+
rdfs:comment "Boolean indicating if the capability is available in the runtime" ;
|
|
134
|
+
rdfs:domain kgc:Capability ;
|
|
135
|
+
rdfs:range xsd:boolean ;
|
|
136
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
137
|
+
|
|
138
|
+
# -----------------------------------------------------------------------------
|
|
139
|
+
# Properties - Constraints
|
|
140
|
+
# -----------------------------------------------------------------------------
|
|
141
|
+
|
|
142
|
+
kgc:constraintType a owl:DatatypeProperty ;
|
|
143
|
+
rdfs:label "constraint type" ;
|
|
144
|
+
rdfs:comment "Type of constraint (e.g., 'guard-denial', 'memory-limit', 'stack-depth-limit')" ;
|
|
145
|
+
rdfs:domain kgc:Constraint ;
|
|
146
|
+
rdfs:range xsd:string ;
|
|
147
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
148
|
+
|
|
149
|
+
kgc:description a owl:DatatypeProperty ;
|
|
150
|
+
rdfs:label "description" ;
|
|
151
|
+
rdfs:comment "Human-readable description of the constraint" ;
|
|
152
|
+
rdfs:domain kgc:Constraint ;
|
|
153
|
+
rdfs:range xsd:string ;
|
|
154
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
155
|
+
|
|
156
|
+
# -----------------------------------------------------------------------------
|
|
157
|
+
# Properties - Provenance
|
|
158
|
+
# -----------------------------------------------------------------------------
|
|
159
|
+
|
|
160
|
+
kgc:derivedFrom a owl:ObjectProperty ;
|
|
161
|
+
rdfs:label "derived from" ;
|
|
162
|
+
rdfs:comment "Links a derived claim (Capability or Constraint) to the observation(s) that support it" ;
|
|
163
|
+
rdfs:domain [ a owl:Class ; owl:unionOf ( kgc:Capability kgc:Constraint ) ] ;
|
|
164
|
+
rdfs:range kgc:Observation ;
|
|
165
|
+
rdfs:isDefinedBy <https://unrdf.org/kgc/probe#> .
|
|
166
|
+
|
|
167
|
+
# -----------------------------------------------------------------------------
|
|
168
|
+
# End of Vocabulary
|
|
169
|
+
# -----------------------------------------------------------------------------
|