eyeling 1.24.8 → 1.24.9
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/examples/act-alarm-bit-interoperability.n3 +4 -4
- package/examples/act-barley-seed-lineage.n3 +4 -4
- package/examples/act-docking-abort.n3 +4 -4
- package/examples/act-gravity-mediator-witness.n3 +4 -4
- package/examples/act-isolation-breach.n3 +4 -4
- package/examples/act-photosynthetic-exciton-transfer.n3 +4 -4
- package/examples/act-sensor-memory-reset.n3 +4 -4
- package/examples/act-tunnel-junction-wake-switch.n3 +4 -4
- package/examples/act-yeast-self-reproduction.n3 +4 -4
- package/examples/annotation.n3 +1 -1
- package/examples/auroracare.n3 +22 -22
- package/examples/backward-recursion.n3 +1 -1
- package/examples/barley-seed-becoming.n3 +4 -4
- package/examples/bmi.n3 +4 -4
- package/examples/builtin-coverage.n3 +1 -1
- package/examples/calidor.n3 +1 -1
- package/examples/collection.n3 +1 -1
- package/examples/complex-matrix-stability.n3 +4 -4
- package/examples/context-association.n3 +1 -1
- package/examples/control-system.n3 +4 -4
- package/examples/deep-taxonomy-10.n3 +4 -4
- package/examples/deep-taxonomy-100.n3 +4 -4
- package/examples/deep-taxonomy-1000.n3 +4 -4
- package/examples/deep-taxonomy-10000.n3 +4 -4
- package/examples/deep-taxonomy-100000.n3 +2 -2
- package/examples/delfour.n3 +1 -1
- package/examples/digital-product-passport.n3 +1 -1
- package/examples/dijkstra-risk-path.n3 +1 -1
- package/examples/easter.n3 +4 -4
- package/examples/eco-route-insight.n3 +1 -1
- package/examples/flandor.n3 +1 -1
- package/examples/french-cities.n3 +4 -4
- package/examples/fundamental-theorem-arithmetic.n3 +4 -4
- package/examples/genetic-algorithm-knapsack.n3 +1 -1
- package/examples/genetic-algorithm.n3 +1 -1
- package/examples/genetic-knapsack-selection.n3 +1 -1
- package/examples/gps.n3 +4 -4
- package/examples/harborsmr.n3 +4 -4
- package/examples/input/ontology-question-generation.trig +79 -0
- package/examples/interop-demo.n3 +1 -1
- package/examples/matrix-mechanics.n3 +1 -1
- package/examples/medior.n3 +1 -1
- package/examples/n3-speaks-for-itself.n3 +1 -1
- package/examples/odrl-dpv-ehds-risk-ranked.n3 +1 -1
- package/examples/odrl-dpv-healthcare-risk-ranked.n3 +1 -1
- package/examples/odrl-dpv-risk-ranked.n3 +1 -1
- package/examples/odrl-risk-mitigation.n3 +1 -1
- package/examples/odrl-risk.n3 +1 -1
- package/examples/ontology-question-generation.n3 +409 -0
- package/examples/output/act-alarm-bit-interoperability.md +7 -3
- package/examples/output/act-barley-seed-lineage.md +7 -3
- package/examples/output/act-docking-abort.md +7 -3
- package/examples/output/act-gravity-mediator-witness.md +7 -3
- package/examples/output/act-isolation-breach.md +7 -3
- package/examples/output/act-photosynthetic-exciton-transfer.md +7 -3
- package/examples/output/act-sensor-memory-reset.md +7 -3
- package/examples/output/act-tunnel-junction-wake-switch.md +7 -3
- package/examples/output/act-yeast-self-reproduction.md +7 -3
- package/examples/output/annotation.md +6 -0
- package/examples/output/auroracare.md +25 -21
- package/examples/output/backward-recursion.md +5 -0
- package/examples/output/barley-seed-becoming.md +7 -3
- package/examples/output/bmi.md +7 -3
- package/examples/output/builtin-coverage.md +6 -0
- package/examples/output/calidor.md +4 -0
- package/examples/output/collection.md +6 -0
- package/examples/output/complex-matrix-stability.md +7 -3
- package/examples/output/context-association.md +5 -0
- package/examples/output/control-system.md +7 -3
- package/examples/output/deep-taxonomy-10.md +7 -3
- package/examples/output/deep-taxonomy-100.md +7 -3
- package/examples/output/deep-taxonomy-1000.md +7 -3
- package/examples/output/deep-taxonomy-10000.md +7 -3
- package/examples/output/deep-taxonomy-100000.md +7 -3
- package/examples/output/delfour.md +4 -0
- package/examples/output/digital-product-passport.md +4 -0
- package/examples/output/dijkstra-risk-path.md +5 -0
- package/examples/output/easter.md +34 -30
- package/examples/output/eco-route-insight.md +5 -0
- package/examples/output/flandor.md +4 -0
- package/examples/output/french-cities.md +7 -3
- package/examples/output/fundamental-theorem-arithmetic.md +7 -3
- package/examples/output/genetic-algorithm-knapsack.md +4 -0
- package/examples/output/genetic-algorithm.md +4 -0
- package/examples/output/genetic-knapsack-selection.md +5 -0
- package/examples/output/gps.md +7 -3
- package/examples/output/harborsmr.md +7 -3
- package/examples/output/interop-demo.md +4 -0
- package/examples/output/matrix-mechanics.md +4 -0
- package/examples/output/medior.md +4 -0
- package/examples/output/n3-speaks-for-itself.md +4 -0
- package/examples/output/odrl-dpv-ehds-risk-ranked.md +4 -0
- package/examples/output/odrl-dpv-healthcare-risk-ranked.md +4 -0
- package/examples/output/odrl-dpv-risk-ranked.md +4 -0
- package/examples/output/odrl-risk-mitigation.md +4 -0
- package/examples/output/odrl-risk.md +4 -0
- package/examples/output/ontology-question-generation.md +31 -0
- package/examples/output/parcellocker.md +7 -3
- package/examples/output/pn-junction-tunneling.md +4 -0
- package/examples/output/queens.md +4 -0
- package/examples/output/rc-discharge-envelope.md +5 -0
- package/examples/output/rdf-dataset.md +5 -0
- package/examples/output/rdf-message-flow.md +5 -0
- package/examples/output/rdf-messages.md +5 -0
- package/examples/output/resto.md +7 -3
- package/examples/output/school-placement-audit.md +5 -0
- package/examples/output/smoke-arithmetic.md +5 -0
- package/examples/output/sqrt2-cauchy.md +4 -0
- package/examples/output/sqrt2-dedekind.md +4 -0
- package/examples/output/sudoku.md +4 -0
- package/examples/output/transcendental-numbers-stretched.md +4 -0
- package/examples/output/transistor-switch.md +4 -0
- package/examples/output/triple-terms.md +5 -0
- package/examples/output/tunnel-junction-wake-switch-becoming.md +7 -3
- package/examples/output/wind-turbine.md +7 -3
- package/examples/parcellocker.n3 +2 -2
- package/examples/pn-junction-tunneling.n3 +1 -1
- package/examples/queens.n3 +1 -1
- package/examples/rc-discharge-envelope.n3 +1 -1
- package/examples/rdf-dataset.n3 +1 -1
- package/examples/rdf-message-flow.n3 +1 -1
- package/examples/rdf-messages.n3 +1 -1
- package/examples/resto.n3 +4 -4
- package/examples/school-placement-audit.n3 +1 -1
- package/examples/smoke-arithmetic.n3 +1 -1
- package/examples/sqrt2-cauchy.n3 +1 -1
- package/examples/sqrt2-dedekind.n3 +1 -1
- package/examples/sudoku.n3 +5 -5
- package/examples/transcendental-numbers-stretched.n3 +1 -1
- package/examples/transistor-switch.n3 +1 -1
- package/examples/triple-terms.n3 +1 -1
- package/examples/tunnel-junction-wake-switch-becoming.n3 +4 -4
- package/examples/wind-turbine.n3 +4 -4
- package/package.json +1 -1
package/examples/output/gps.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# gps
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../gps.n3)
|
|
6
|
+
|
|
3
7
|
GPS — Goal driven route planning
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
Take the direct route via Brugge.
|
|
7
11
|
Recommended route: Gent → Brugge → Oostende
|
|
8
12
|
|
|
9
|
-
Reason Why
|
|
13
|
+
## Reason Why
|
|
10
14
|
From Gent to Oostende, the planner found two routes in this small map. The direct route (Gent → Brugge → Oostende) takes 2400 seconds at cost 0.01, with belief 0.9408 and comfort 0.99. The alternative (Gent → Kortrijk → Brugge → Oostende) takes 4100 seconds at cost 0.018, with belief 0.903168 and comfort 0.9801. So the direct route is faster, cheaper, more reliable, and slightly more comfortable.
|
|
11
15
|
|
|
12
|
-
Check
|
|
16
|
+
## Check
|
|
13
17
|
C1 OK - the direct Gent → Brugge → Oostende route was derived.
|
|
14
18
|
C2 OK - the alternative Gent → Kortrijk → Brugge → Oostende route was derived.
|
|
15
19
|
C3 OK - the recommended route is faster than the alternative.
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# harborsmr
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../harborsmr.n3)
|
|
6
|
+
|
|
3
7
|
HarborSMR — bounded flexible-export insight for port electrolysis
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
PERMIT
|
|
7
11
|
The port hydrogen hub may use the SMR insight to run PEM electrolyzer train 2 at 16 MW from 14:00 to 18:00.
|
|
8
12
|
|
|
9
|
-
Reason Why
|
|
13
|
+
## Reason Why
|
|
10
14
|
The operator shares only a narrow, expiring insight that a temporary 18 MW flexible-export window is available. The request is for electrolysis dispatch only, the requested 16 MW fits inside the permitted window, safety margins are above threshold, no outage blocks the window, and the policy forbids redistribution for market resale. Raw reactor telemetry stays local.
|
|
11
15
|
|
|
12
|
-
Check
|
|
16
|
+
## Check
|
|
13
17
|
C1 OK - reserve margin exceeds the dispatch threshold
|
|
14
18
|
C2 OK - cooling margin exceeds the dispatch threshold
|
|
15
19
|
C3 OK - no planned outage blocks the window
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# odrl-dpv-healthcare-risk-ranked
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../odrl-dpv-healthcare-risk-ranked.n3)
|
|
6
|
+
|
|
3
7
|
## Ranked DPV Risk Report (Healthcare & Life Sciences)
|
|
4
8
|
Agreement: Example Healthcare & Life-Sciences Data Use Agreement
|
|
5
9
|
Profile: Example patient profile
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# odrl-risk-mitigation
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../odrl-risk-mitigation.n3)
|
|
6
|
+
|
|
3
7
|
## Risk report for Example Platform Agreement (with fixes) (profile: Carol (example consumer))
|
|
4
8
|
1) score=100 (https://example.org/odrl-mitigation-demo#High), clause D6 — Provider can delete user data. This clause is risky because it allows the provider to delete the consumer’s data. Clause D6: We may delete your data at our discretion.
|
|
5
9
|
2) score=93 (https://example.org/odrl-mitigation-demo#High), clause D5 — No data export / portability. This clause is risky because it prohibits exporting data, undermining portability. Clause D5: You may not export or download your data from the service.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# odrl-risk
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../odrl-risk.n3)
|
|
6
|
+
|
|
3
7
|
## Risk report for Example SaaS Agreement (profile: Alice (example consumer))
|
|
4
8
|
1) score=100 (https://example.org/agreement#High), clause C2 — Provider can delete user data. This clause is risky because it allows the provider to remove (delete) the consumer’s data. Clause C2: We may delete your data at our discretion, with or without notice.
|
|
5
9
|
2) score=95 (https://example.org/agreement#High), clause C3 — Data sharing without consent. This clause is risky because it permits data sharing without an explicit consent requirement. Clause C3: We may share your data with partners for any purpose.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ontology-question-generation
|
|
2
|
+
|
|
3
|
+
This example uses N3 rules to generate candidate competency questions from OWL/RDFS ontology patterns. The rules derive structured `q:CompetencyQuestion` resources and render this Markdown with `log:outputString`.
|
|
4
|
+
|
|
5
|
+
## Source files
|
|
6
|
+
|
|
7
|
+
- [N3 rules](../ontology-question-generation.n3)
|
|
8
|
+
- [Input ontology TriG](../input/ontology-question-generation.trig)
|
|
9
|
+
|
|
10
|
+
## Detected competency questions
|
|
11
|
+
|
|
12
|
+
- **Class population** — Which things are instances of `employee`?
|
|
13
|
+
- **Class population** — Which things are instances of `organization`?
|
|
14
|
+
- **Class population** — Which things are instances of `person`?
|
|
15
|
+
- **Class population** — Which things are instances of `project`?
|
|
16
|
+
- **Subclass distinction** — What distinguishes `employee` from a general `person`?
|
|
17
|
+
- **Object property** — For a given `employee`, which `project` is related by `assigned to`?
|
|
18
|
+
- **Object property** — For a given `organization`, which `person` is related by `employs`?
|
|
19
|
+
- **Object property** — For a given `person`, which `organization` is related by `works for`?
|
|
20
|
+
- **Datatype property** — What is the `birth date` value of a given `person`?
|
|
21
|
+
- **Datatype property** — What is the `legal name` value of a given `organization`?
|
|
22
|
+
- **Existential restriction** — For each `employee`, which `organization` must exist via `works for`?
|
|
23
|
+
- **Minimum cardinality** — Does every `employee` need at least `1` value for `assigned to`?
|
|
24
|
+
- **Disjointness** — Can something ever be both an `organization` and a `person`?
|
|
25
|
+
- **Functional property** — Can one subject have multiple values for `birth date`?
|
|
26
|
+
- **Inverse property** — If `x` has `works for` `y`, should `y` have `employs` `x`?
|
|
27
|
+
- **Subproperty** — When `principal employer` holds, should `works for` also hold?
|
|
28
|
+
|
|
29
|
+
## RDF shape behind the Markdown
|
|
30
|
+
|
|
31
|
+
Each rendered line is backed by a structured generated resource with a pattern, slots, an answer shape, and priority. That means a later layer can verbalize the same generated questions as Markdown, SPARQL skeletons, SHACL prompts, UI forms, or documentation checks.
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# parcellocker
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../parcellocker.n3)
|
|
6
|
+
|
|
3
7
|
ParcelLocker — One-time parcel pickup by a friend
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
PERMIT
|
|
7
11
|
Noah may collect Maya's parcel from locker B17.
|
|
8
12
|
|
|
9
|
-
Reason Why
|
|
13
|
+
## Reason Why
|
|
10
14
|
Maya created a one-time authorization for Noah only, for this parcel only, at this locker only, and for pickup only. The token is active, the parcel is ready, and the same authorization does not reveal billing details or allow redirection.
|
|
11
15
|
|
|
12
|
-
Check
|
|
16
|
+
## Check
|
|
13
17
|
C1 OK - requester matches the named delegate
|
|
14
18
|
C2 OK - requested parcel matches the authorized parcel
|
|
15
19
|
C3 OK - requested locker matches the authorized locker
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# pn-junction-tunneling
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../pn-junction-tunneling.n3)
|
|
6
|
+
|
|
3
7
|
## Answer
|
|
4
8
|
In this toy PN-junction tunneling model, heavy doping narrows the depletion region enough for a tunneling window that rises to a peak and then falls, producing a negative-differential region.
|
|
5
9
|
case : pn-junction-tunneling
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# rdf-message-flow
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../rdf-message-flow.n3)
|
|
6
|
+
- [Input TriG](../input/rdf-message-flow.trig)
|
|
7
|
+
|
|
3
8
|
## Answer
|
|
4
9
|
Continuous RDF Message flow accepted: 5 ordered messages moved through the ingest → validate → interpret → route → sink pipeline. The threshold was 26, so results 21 and 22 were archived, the heartbeat kept the stream alive, and results 28 and 29 were emitted as alerts.
|
|
5
10
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# rdf-messages
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../rdf-messages.n3)
|
|
6
|
+
- [Input TriG](../input/rdf-messages.trig)
|
|
7
|
+
|
|
3
8
|
## Answer
|
|
4
9
|
RDF Message log accepted: 3 explicit message boundaries are preserved. Message :m002 is an empty heartbeat, and the local blank-node label _:b0 is safely reused in separate messages.
|
|
5
10
|
|
package/examples/output/resto.md
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
# resto
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../resto.n3)
|
|
6
|
+
|
|
3
7
|
RESTdesc — Restaurant finder
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
A restaurant was found and reserved.
|
|
7
11
|
Restaurant: Maximiliaan
|
|
8
12
|
Date: 2026-04-08
|
|
9
13
|
Seating: outside terrace
|
|
10
14
|
|
|
11
|
-
Reason Why
|
|
15
|
+
## Reason Why
|
|
12
16
|
The plan resolved the person's address, turned it into a map point, checked the local weather, selected a suitable restaurant, and then created a reservation. Because the weather came back mild and stable (22 C and 1016 mbar), the chosen seating stayed outdoors.
|
|
13
17
|
|
|
14
|
-
Check
|
|
18
|
+
## Check
|
|
15
19
|
C1 OK - the preferences service resolved the person's address.
|
|
16
20
|
C2 OK - the location service turned the address into map coordinates.
|
|
17
21
|
C3 OK - the weather services supplied temperature and pressure for that location.
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# transistor-switch
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../transistor-switch.n3)
|
|
6
|
+
|
|
3
7
|
## Answer
|
|
4
8
|
In this toy transistor-switch model, a low input leaves the transistor in cutoff (OFF) and a high input drives it into saturation (ON), so the load behaves like an on/off branch rather than a linear amplifier.
|
|
5
9
|
case : transistor-switch
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# tunnel-junction-wake-switch-becoming
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../tunnel-junction-wake-switch-becoming.n3)
|
|
6
|
+
|
|
3
7
|
tunnel-junction wake switch — becoming
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
YES for the tunnel junction.
|
|
7
11
|
NO for the conventional low-bias PN junction in the same wake-switch regime.
|
|
8
12
|
|
|
9
|
-
Reason Why
|
|
13
|
+
## Reason Why
|
|
10
14
|
The tunnel junction can be read as a becoming under low forward bias. Because it is modeled as a heavily doped narrow PN junction with overlapping states, it can become a quantum-transfer state. In that regime it can become a sub-threshold current state, and under peak-to-valley scanning it can also become a negative differential response state. As a wake-switch device, that lets it become an ultra-low-bias switching state and finally a leak-alarm wake-serving state. By contrast, the conventional junction lacks the structural conditions needed for the same transition into quantum transfer, so the later wake-serving becoming is blocked as well.
|
|
11
15
|
|
|
12
|
-
Check
|
|
16
|
+
## Check
|
|
13
17
|
B1 OK - the tunnel junction can become a quantum-transfer state
|
|
14
18
|
B2 OK - the tunnel junction is classified as tunneling-dominant
|
|
15
19
|
B3 OK - the tunnel junction can become a sub-threshold current state
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
# wind-turbine
|
|
2
2
|
|
|
3
|
+
## Source files
|
|
4
|
+
|
|
5
|
+
- [N3 rules](../wind-turbine.n3)
|
|
6
|
+
|
|
3
7
|
Wind turbine — Predictive maintenance
|
|
4
8
|
|
|
5
|
-
Answer
|
|
9
|
+
## Answer
|
|
6
10
|
Act now: schedule an urgent inspection and gearbox maintenance.
|
|
7
11
|
|
|
8
|
-
Reason Why
|
|
12
|
+
## Reason Why
|
|
9
13
|
North field turbine reports vibration 0.42 against a threshold of 0.35, temperature 78 against a threshold of 75, and rotor speed 1650 against a critical limit of 1800. Both vibration and temperature are above their safety thresholds, so the turbine shows a combined warning pattern. The gearbox is also degraded, so maintenance is needed even though the rotor speed is still below the critical RPM limit.
|
|
10
14
|
|
|
11
|
-
Check
|
|
15
|
+
## Check
|
|
12
16
|
C1 OK - measured vibration is above the vibration threshold.
|
|
13
17
|
C2 OK - measured temperature is above the temperature threshold.
|
|
14
18
|
C3 OK - a high-vibration anomaly was inferred from the readings.
|
package/examples/parcellocker.n3
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@prefix : <https://example.org/parcellocker#> .
|
|
12
12
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
13
13
|
|
|
14
|
-
:000_md_title log:outputString "# parcellocker\n\n" .
|
|
14
|
+
:000_md_title log:outputString "# parcellocker\n\n## Source files\n\n- [N3 rules](../parcellocker.n3)\n\n" .
|
|
15
15
|
|
|
16
16
|
# -----
|
|
17
17
|
# Facts
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
|
|
104
104
|
{ :case :decision :Permit . }
|
|
105
105
|
=> {
|
|
106
|
-
:out log:outputString "ParcelLocker — One-time parcel pickup by a friend\n\
|
|
106
|
+
:out log:outputString "ParcelLocker — One-time parcel pickup by a friend\n\n## Answer\nPERMIT\nNoah may collect Maya's parcel from locker B17.\n\n## Reason Why\nMaya created a one-time authorization for Noah only, for this parcel only, at this locker only, and for pickup only. The token is active, the parcel is ready, and the same authorization does not reveal billing details or allow redirection.\n\n## Check\nC1 OK - requester matches the named delegate\nC2 OK - requested parcel matches the authorized parcel\nC3 OK - requested locker matches the authorized locker\nC4 OK - requested action is parcel collection\nC5 OK - requested purpose is pickup only\nC6 OK - authorization is active\nC7 OK - authorization is single-use\nC8 OK - parcel is ready for pickup\nC9 OK - billing details stay hidden\nC10 OK - parcel redirection is not allowed\n" .
|
|
107
107
|
} .
|
|
108
108
|
|
|
109
109
|
# ----------------
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
( "peak current proxy : %s\n" ?peakCurrent ) string:format ?peakCurrentLine .
|
|
137
137
|
}
|
|
138
138
|
=> {
|
|
139
|
-
:01-answer-1 log:outputString "# pn-junction-tunneling\n\n## Answer\n" .
|
|
139
|
+
:01-answer-1 log:outputString "# pn-junction-tunneling\n\n## Source files\n\n- [N3 rules](../pn-junction-tunneling.n3)\n\n## Answer\n" .
|
|
140
140
|
:01-answer-2 log:outputString "In this toy PN-junction tunneling model, heavy doping narrows the depletion region enough for a tunneling window that rises to a peak and then falls, producing a negative-differential region.\n" .
|
|
141
141
|
:01-answer-3 log:outputString "case : pn-junction-tunneling\n" .
|
|
142
142
|
:01-answer-4 log:outputString ?peakBiasLine .
|
package/examples/queens.n3
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
:run :n ?N; :maxPrint ?MaxPrint.
|
|
17
17
|
(?N ?MaxPrint) :render ?Report.
|
|
18
18
|
} log:query {
|
|
19
|
-
:000_md_title log:outputString "# queens\n\n" .
|
|
19
|
+
:000_md_title log:outputString "# queens\n\n## Source files\n\n- [N3 rules](../queens.n3)\n\n" .
|
|
20
20
|
:answer log:outputString ?Report.
|
|
21
21
|
}.
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
{
|
|
45
45
|
:case :exactDecaySymbol ?Symbol; :decayLower ?Lower; :decayUpper ?Upper; :firstBelowToleranceStep ?Step.
|
|
46
46
|
?Step :index ?Index; :timeSeconds ?Time; :upperVoltage ?Voltage.
|
|
47
|
-
("# rc-discharge-envelope\n\n## Answer\nexact decay symbol : %s\ncertified decay interval : [%.10f, %.10f]\nfirst below tolerance step : %d\nfirst below tolerance time : %.3f s\nupper voltage at step %d : %.6f V\n\n## Explanation\nThe physical decay factor is exp(-1/4), but the example uses a finite double interval as the certificate. Because the interval lies strictly between 0 and 1, the capacitor voltage envelope contracts each sample. The upper envelope is the safety-relevant bound: once it falls below 1.0 V, every compatible exact trajectory is below tolerance." ?Symbol ?Lower ?Upper ?Index ?Time ?Index ?Voltage) string:format ?Block.
|
|
47
|
+
("# rc-discharge-envelope\n\n## Source files\n\n- [N3 rules](../rc-discharge-envelope.n3)\n- [Input TriG](../input/rc-discharge-envelope.trig)\n\n## Answer\nexact decay symbol : %s\ncertified decay interval : [%.10f, %.10f]\nfirst below tolerance step : %d\nfirst below tolerance time : %.3f s\nupper voltage at step %d : %.6f V\n\n## Explanation\nThe physical decay factor is exp(-1/4), but the example uses a finite double interval as the certificate. Because the interval lies strictly between 0 and 1, the capacitor voltage envelope contracts each sample. The upper envelope is the safety-relevant bound: once it falls below 1.0 V, every compatible exact trajectory is below tolerance." ?Symbol ?Lower ?Upper ?Index ?Time ?Index ?Voltage) string:format ?Block.
|
|
48
48
|
} => { :report log:outputString ?Block. }.
|
package/examples/rdf-dataset.n3
CHANGED
|
@@ -26,5 +26,5 @@ VERSION "1.2"
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
# Markdown rendering via log:outputString.
|
|
29
|
-
:__md_output :text "# rdf-dataset\n\nVERSION \"1.2\"\n\n@prefix : <https://eyereasoner.github.io/eyeling/examples/rdf-dataset#> .\n\n:workOrder :entails <<( :sensor :needs :inspection )>> .\n" .
|
|
29
|
+
:__md_output :text "# rdf-dataset\n\n## Source files\n\n- [N3 rules](../rdf-dataset.n3)\n- [Input TriG](../input/rdf-dataset.trig)\n\nVERSION \"1.2\"\n\n@prefix : <https://eyereasoner.github.io/eyeling/examples/rdf-dataset#> .\n\n:workOrder :entails <<( :sensor :needs :inspection )>> .\n" .
|
|
30
30
|
{ :__md_output :text ?text } log:query { :__md_output log:outputString ?text } .
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
:m005 :atStage :sink;
|
|
135
135
|
msg:payloadResult ?FifthResult;
|
|
136
136
|
:route :alertSink.
|
|
137
|
-
("# rdf-message-flow\n\n## Answer\nContinuous RDF Message flow accepted: %d ordered messages moved through the ingest → validate → interpret → route → sink pipeline. The threshold was %d, so results %s and %s were archived, the heartbeat kept the stream alive, and results %s and %s were emitted as alerts.\n\n## Explanation\nThe N3 source starts only :m001 at ingress. Each message must reach :sink before the continuous-flow rule releases its msg:nextMessage. Observation payloads are inspected with log:includes inside each message formula, while the empty heartbeat uses the same envelope and routing stages without a payload. This models messages flowing through a live stream while preserving message boundaries." ?Count ?Threshold ?FirstResult ?SecondResult ?FourthResult ?FifthResult) string:format ?Block.
|
|
137
|
+
("# rdf-message-flow\n\n## Source files\n\n- [N3 rules](../rdf-message-flow.n3)\n- [Input TriG](../input/rdf-message-flow.trig)\n\n## Answer\nContinuous RDF Message flow accepted: %d ordered messages moved through the ingest → validate → interpret → route → sink pipeline. The threshold was %d, so results %s and %s were archived, the heartbeat kept the stream alive, and results %s and %s were emitted as alerts.\n\n## Explanation\nThe N3 source starts only :m001 at ingress. Each message must reach :sink before the continuous-flow rule releases its msg:nextMessage. Observation payloads are inspected with log:includes inside each message formula, while the empty heartbeat uses the same envelope and routing stages without a payload. This models messages flowing through a live stream while preserving message boundaries." ?Count ?Threshold ?FirstResult ?SecondResult ?FourthResult ?FifthResult) string:format ?Block.
|
|
138
138
|
} => {
|
|
139
139
|
:rdfMessageFlowExample log:outputString ?Block.
|
|
140
140
|
:rdfMessageFlowExample :demonstrates :ContinuousFlow, :BackPressureRelease, :AtomicMessageContext, :HeartbeatInFlow, :ThresholdRouting.
|
package/examples/rdf-messages.n3
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
:BlankNodeScope :reusedLabel ?Label;
|
|
98
98
|
:isPerMessage true.
|
|
99
99
|
:MessageContext :differentObservationsStayContextual true.
|
|
100
|
-
("# rdf-messages\n\n## Answer\nRDF Message log accepted: %d explicit message boundaries are preserved. Message :m002 is an empty heartbeat, and the local blank-node label %s is safely reused in separate messages.\n\n## Explanation\nThe N3 source models an RDF Message Log as an ordered sequence of RDF Messages. Each non-empty message has a formula-valued payload that is inspected with log:includes, so the observation data stays inside the message boundary instead of being treated as one global graph. The two temperature results, %s and %s, are different observations from the same stream but are contextualized by their message boundaries." ?Count ?Label ?FirstResult ?SecondResult) string:format ?Block.
|
|
100
|
+
("# rdf-messages\n\n## Source files\n\n- [N3 rules](../rdf-messages.n3)\n- [Input TriG](../input/rdf-messages.trig)\n\n## Answer\nRDF Message log accepted: %d explicit message boundaries are preserved. Message :m002 is an empty heartbeat, and the local blank-node label %s is safely reused in separate messages.\n\n## Explanation\nThe N3 source models an RDF Message Log as an ordered sequence of RDF Messages. Each non-empty message has a formula-valued payload that is inspected with log:includes, so the observation data stays inside the message boundary instead of being treated as one global graph. The two temperature results, %s and %s, are different observations from the same stream but are contextualized by their message boundaries." ?Count ?Label ?FirstResult ?SecondResult) string:format ?Block.
|
|
101
101
|
} => {
|
|
102
102
|
:rdfMessagesExample log:outputString ?Block.
|
|
103
103
|
:rdfMessagesExample :demonstrates :ExplicitBoundaries, :AtomicMessageContext, :EmptyHeartbeat, :MessageScopedBlankNodes, :ReplayableMessageLog.
|
package/examples/resto.n3
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@prefix string: <http://www.w3.org/2000/10/swap/string#>.
|
|
23
23
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
24
24
|
|
|
25
|
-
:000_md_title log:outputString "# resto\n\n" .
|
|
25
|
+
:000_md_title log:outputString "# resto\n\n## Source files\n\n- [N3 rules](../resto.n3)\n\n" .
|
|
26
26
|
|
|
27
27
|
# ----------------
|
|
28
28
|
# Initial question
|
|
@@ -290,15 +290,15 @@
|
|
|
290
290
|
:Check :c8 ?C8.
|
|
291
291
|
(
|
|
292
292
|
"RESTdesc — Restaurant finder\n\n"
|
|
293
|
-
"Answer\n"
|
|
293
|
+
"## Answer\n"
|
|
294
294
|
?Outcome "\n"
|
|
295
295
|
"Restaurant: " ?RestaurantName "\n"
|
|
296
296
|
"Date: " ?Date "\n"
|
|
297
297
|
"Seating: " ?Seating "\n\n"
|
|
298
|
-
"Reason Why\n"
|
|
298
|
+
"## Reason Why\n"
|
|
299
299
|
"The plan resolved the person's address, turned it into a map point, checked the local weather, selected a suitable restaurant, and then created a reservation. "
|
|
300
300
|
"Because the weather came back mild and stable (22 C and 1016 mbar), the chosen seating stayed outdoors.\n\n"
|
|
301
|
-
"Check\n"
|
|
301
|
+
"## Check\n"
|
|
302
302
|
"C1 " ?C1 "\n"
|
|
303
303
|
"C2 " ?C2 "\n"
|
|
304
304
|
"C3 " ?C3 "\n"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
{
|
|
44
44
|
:Audit :result ?Result; :affectedChildren ?Affected; :largestHiddenDetour ?Detour; :recommendedAssignments ?Assignments.
|
|
45
|
-
("# school-placement-audit\n\n## Answer\naudit result : %s\nchildren affected by straight-line rule : %s\nlargest hidden detour : %s\nrecommended assignments : %s\nexplanation requested : yes\n\n## Explanation\nThe support-tool rule chooses the school with the smallest straight-line distance, using preference rank only as a tie-breaker. The independent audit recomputes each candidate with walking-route distance plus 600 m per preference step. Any provisional assignment that is not the audited best, or that requires more than 2500 m of walking, is flagged. Ada and Björn look close to Centrum on a map, but their walking routes cross barriers and exceed the walking limit; Davi is also better served by the first-preference Haga route. This illustrates why a decision-support label is not enough: route geometry, preferences, and audit records must be inspectable." ?Result ?Affected ?Detour ?Assignments) string:format ?Block.
|
|
45
|
+
("# school-placement-audit\n\n## Source files\n\n- [N3 rules](../school-placement-audit.n3)\n- [Input TriG](../input/school-placement-audit.trig)\n\n## Answer\naudit result : %s\nchildren affected by straight-line rule : %s\nlargest hidden detour : %s\nrecommended assignments : %s\nexplanation requested : yes\n\n## Explanation\nThe support-tool rule chooses the school with the smallest straight-line distance, using preference rank only as a tie-breaker. The independent audit recomputes each candidate with walking-route distance plus 600 m per preference step. Any provisional assignment that is not the audited best, or that requires more than 2500 m of walking, is flagged. Ada and Björn look close to Centrum on a map, but their walking routes cross barriers and exceed the walking limit; Davi is also better served by the first-preference Haga route. This illustrates why a decision-support label is not enough: route geometry, preferences, and audit records must be inspectable." ?Result ?Affected ?Detour ?Assignments) string:format ?Block.
|
|
46
46
|
} => {
|
|
47
47
|
:schoolPlacementAudit log:outputString ?Block.
|
|
48
48
|
:schoolPlacementAudit :reports :Audit.
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
} .
|
|
17
17
|
|
|
18
18
|
{ :Case :product ?Product.
|
|
19
|
-
("# smoke-arithmetic\n\n## Answer\nproduct = %s\n\n## Explanation\nThe compiled rule multiplies :x and :y using math:product." ?Product) string:format ?Block.
|
|
19
|
+
("# smoke-arithmetic\n\n## Source files\n\n- [N3 rules](../smoke-arithmetic.n3)\n- [Input TriG](../input/smoke-arithmetic.trig)\n\n## Answer\nproduct = %s\n\n## Explanation\nThe compiled rule multiplies :x and :y using math:product." ?Product) string:format ?Block.
|
|
20
20
|
} => { :out01 log:outputString ?Block. } .
|
package/examples/sqrt2-cauchy.n3
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
14
14
|
@prefix string:<http://www.w3.org/2000/10/swap/string#>.
|
|
15
15
|
|
|
16
|
-
:000_md_title log:outputString "# sqrt2-cauchy\n\n" .
|
|
16
|
+
:000_md_title log:outputString "# sqrt2-cauchy\n\n## Source files\n\n- [N3 rules](../sqrt2-cauchy.n3)\n\n" .
|
|
17
17
|
|
|
18
18
|
:sqrt2Real a :Real;
|
|
19
19
|
:representedBy :sqrt2Seq.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
10
10
|
@prefix string: <http://www.w3.org/2000/10/swap/string#>.
|
|
11
11
|
|
|
12
|
-
:000_md_title log:outputString "# sqrt2-dedekind\n\n" .
|
|
12
|
+
:000_md_title log:outputString "# sqrt2-dedekind\n\n## Source files\n\n- [N3 rules](../sqrt2-dedekind.n3)\n\n" .
|
|
13
13
|
|
|
14
14
|
# -----------------------------------------------------------------
|
|
15
15
|
# Data: a finite sample of rationals (decimal tokens are rationals)
|