kapps-semantic-middleware 0.2.2__tar.gz → 0.2.3__tar.gz
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.
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/CHANGELOG.md +31 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/PKG-INFO +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/CONTEXT.md +1 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/README.md +2 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/algorithm.py +47 -12
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/control_station.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/controller.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/factory.ttl +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/seed.py +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/station_board.py +9 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/templates/station_board.html +33 -3
- {kapps_semantic_middleware-0.2.2/examples → kapps_semantic_middleware-0.2.3/demo/transferunits}/transferunit.ttl +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/01-instantiation-and-lifecycle.md +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/05-operation-coordination.md +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/07-writing-to-the-graph-and-to-devices.md +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/08-provisioning-and-seeding.md +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/09-the-state-dashboard.md +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/concepts.md +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/01-instantiation-and-lifecycle.md +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/05-operation-coordination.md +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/07-writing-to-the-graph-and-to-devices.md +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/08-provisioning-and-seeding.md +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/09-the-state-dashboard.md +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/scenarios/factory.md +1 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_handover.ttl +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_scenario1.ttl +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_scenario2.ttl +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/scenario1_hello_world.ipynb +9 -9
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/scenario1_hello_world.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/scenario2_door.ipynb +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/seed.py +7 -7
- {kapps_semantic_middleware-0.2.2/demo/transferunits → kapps_semantic_middleware-0.2.3/examples}/transferunit.ttl +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/pyproject.toml +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/CONTEXT.md +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/connectors/mqtt_binding.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/connectors/semantic.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/connectors/wiring.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/dashboard.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/middleware.py +11 -11
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/ontology/core.ttl +73 -73
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/ontology/mes.ttl +3 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/ontology/service.ttl +8 -8
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/operation.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/possession.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/registration.py +16 -16
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/vocabulary.py +13 -13
- kapps_semantic_middleware-0.2.3/tests/_text_files.py +63 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/conftest.py +8 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/reports/complete-without-releasing.nq +26 -26
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/reports/skip-reserve.nq +9 -9
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_activity_feed.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_commit_integration.py +20 -20
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_commit_unit.py +21 -21
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_controller_discovery.py +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_controller_view.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_create_integration.py +32 -32
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_create_unit.py +38 -38
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard.py +23 -23
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard_observation.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard_tabs_in_a_browser.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_deregistration_names_by_iri.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_error_actions.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_event_trigger_integration.py +8 -8
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_factory_deregistration.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_factory_smoke.py +2 -3
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_generic_modules.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_handover_integration.py +7 -7
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_intake.py +18 -18
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_intake_integration.py +34 -34
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_issued_operation.py +156 -157
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_launcher_seeding.py +9 -9
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_liveness_integration.py +1 -1
- kapps_semantic_middleware-0.2.2/tests/test_middleware_connector_flavours.py → kapps_semantic_middleware-0.2.3/tests/test_middleware_connector_wiring.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_multiline_records_in_a_browser.py +1 -1
- kapps_semantic_middleware-0.2.3/tests/test_names_no_consumer.py +258 -0
- kapps_semantic_middleware-0.2.3/tests/test_names_no_https_ontology_namespace.py +105 -0
- kapps_semantic_middleware-0.2.3/tests/test_names_no_old_status_property.py +74 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_names_no_vendor.py +3 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_notification_integration.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_notify.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_observation.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_pages_under_a_prefix.py +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_possession_handover.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_queue_durability_integration.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_recursive_rest_router.py +21 -21
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_refused_writes.py +5 -5
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_refused_writes_integration.py +11 -11
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_request_claim_integration.py +11 -11
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_request_claim_unit.py +18 -18
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_rest_binding.py +7 -7
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_scenario1_integration.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_scenario3_roundtrip_integration.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_scenario3_wiring_integration.py +13 -13
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_seeding.py +17 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_semantic_connectors.py +12 -12
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_shape_from_typehints.py +4 -4
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_shipped_stack_validates_shapes.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_station_board_guard.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_stranded_operations.py +10 -10
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_typed_identity.py +1 -1
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_validation_report.py +22 -21
- kapps_semantic_middleware-0.2.3/tests/test_view_query_presets.py +41 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_vocabulary.py +6 -6
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_writers_scope_covers_data.py +2 -2
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/uv.lock +1 -1
- kapps_semantic_middleware-0.2.2/tests/test_names_no_consumer.py +0 -91
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/.env.example +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/.github/workflows/hygiene.yml +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/.github/workflows/publish.yml +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/.gitignore +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/.python-version +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/AGENTS.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/CLAUDE.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/CONTEXT-MAP.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/LICENSE +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/README.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/__main__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/index.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/launcher.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/middleware.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/__main__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/panel.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/static/transferunit.svg +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/templates/panel.html +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/plc/transfer_unit.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/templates/index.html +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/watchdog.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/02-workflow-registration.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/03-state-and-parameters.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/04-connector-binding.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/mechanics/06-views-and-projection.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/_static/custom.css +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/_static/sfb-logo.png +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/_static/switcher.json +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/conf.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/errors.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/02-workflow-registration.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/03-state-and-parameters.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/04-connector-binding.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/06-views-and-projection.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/guide/index.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/index.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/activity.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/connectors/mqtt_binding.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/connectors/rest_binding.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/connectors/semantic.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/connectors/wiring.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/index.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/middleware.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/modes.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/observation.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/possession.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/projection.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/registration.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/rest_router.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/seeding.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/shacl_interop/shape_from_typehints.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/validation_report.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/reference/vocabulary.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/requirements.txt +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/scenarios/index.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/CONTEXT.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/docker/docker-compose.yml +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/docker/graphdb-repo-config.ttl +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/handlers.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/scenario2_door.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/scripts/release_checks.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/_deprecation.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/activity.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/commit.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/connectors/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/connectors/rest_binding.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/credentials.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/dashboard_boxes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/dashboard_logs.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/docs/mqtt-payloads.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/errors.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/examples_cli.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/modes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/observation.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/projection.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/py.typed +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/rest_router.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/seeding.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/shacl_interop/CONTEXT.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/shacl_interop/__init__.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/shacl_interop/shape_from_typehints.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/static/htmx-2.0.4.min.js +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/static/json-enc.js +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/src/kapps_semantic_middleware/validation_report.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/README.md +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/_browser.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/_explicit.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/_hello_process.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/_refusal_view.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/_sse.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_activity_feed_stop.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_algorithm_loop.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_capability_link.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_children_take_the_fixture_dataset.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_controller_rebuild_view.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_core_names_no_possession.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_credentials.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard_guard.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard_logs.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_dashboard_name_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_demo_activity_feed_wiring.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_demo_broker_transport.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_docs_footer_from_license.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_docs_landing_page.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_examples_cli.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_examples_serve_their_middlewares.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_failure_dump_unit.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_favicon_routes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_heartbeat_phase.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_launcher_factory.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_launcher_index_guard.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_launcher_index_links.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_liveness_loops.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_modes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_no_deletion_of_individuals.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_no_direct_writes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_no_pseudo_graph_in_queries.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_northbound_sync_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_notification_handler.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_optional_transport_stacks.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_panel_convergence.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_persistence_factory_warning.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_plc_guard.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_public_errors.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_recursive_rest_router_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_reregistration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_route_docstrings.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_scenario2_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_scenario3_seed_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_service_identity.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_shipped_ontologies_declare_their_classes.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_southbound_echo_integration.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_station_board_read_view.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_station_board_state_route.py +0 -0
- {kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/tests/test_transfer_unit_plc.py +0 -0
|
@@ -12,6 +12,37 @@ work lands, not at release time.
|
|
|
12
12
|
finding exactly one of it, and prose naming it is a second occurrence — which stopped a release
|
|
13
13
|
the first time this file was written.)
|
|
14
14
|
|
|
15
|
+
## 0.2.3 — 2026-10-22
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Breaking: the service ontology's status property is renamed.** `svc:operationStatus` is now
|
|
20
|
+
`svc:hasOperationStatus`, so that a triple reads as a sentence ("op hasOperationStatus
|
|
21
|
+
queued"). There is no alias and no equivalence: stored data that carries the old name is not
|
|
22
|
+
read. Reload the shared graphs (`load_shared_ontologies(db, reload=True)`) before you run on
|
|
23
|
+
the new version; the seeds and the demonstrations do it now. The `OperationStatus` enum keeps
|
|
24
|
+
its name.
|
|
25
|
+
- **Breaking: every ontology namespace uses `http://`.** The copied Core ontology, the service
|
|
26
|
+
and MES ontologies, the transfer-unit demo's CRC namespaces and the example namespaces change
|
|
27
|
+
their scheme from `https` to `http`, in step with the Core ontology. The shared named graphs
|
|
28
|
+
are named by these IRIs, so a reload writes new graphs and leaves the old `https` Core,
|
|
29
|
+
Service and MES graphs on the dataset: drop them once after you upgrade. Stored data that
|
|
30
|
+
carries the old namespaces is not read.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- **The factory demo's station board has a prewritten-query dropdown.** It fills the view
|
|
35
|
+
heuristic with All, Even-indexed or Odd-indexed TransferUnits, or a Custom starter. The default
|
|
36
|
+
view, and what "reset" restores, is now all live TransferUnits rather than the even-indexed
|
|
37
|
+
ones. `build_view_query` takes a `parity` argument ("all", "even", "odd").
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- **The shipped text and tests use the middleware's own vocabulary only.** Examples, test data and
|
|
42
|
+
recorded store reports that named another project's resources and operations now name neutral
|
|
43
|
+
ones (a drill, a planner, a transport line); the check that bans those names scans every
|
|
44
|
+
shipped file, and the changelog's unreleased section.
|
|
45
|
+
|
|
15
46
|
## 0.2.2 — 2026-10-21
|
|
16
47
|
|
|
17
48
|
- **kapps_semantic_middleware requires kapps-ogm 0.3.2 and kapps-triplestore-interface 2.2.2 or
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: kapps-semantic-middleware
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Semantic middleware for industrial data integration, built on transitional-sync-middleware
|
|
5
5
|
Author-email: Etienne Hoffmann <etienne.hoffmann@kit.edu>, Sören Weindel <soeren.weindel@kit.edu>
|
|
6
6
|
Maintainer-email: Etienne Hoffmann <etienne.hoffmann@kit.edu>, Sören Weindel <soeren.weindel@kit.edu>
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/CONTEXT.md
RENAMED
|
@@ -7,8 +7,7 @@ controller, and a person watches it from a browser. Each participant is a separa
|
|
|
7
7
|
|
|
8
8
|
**The demo observes.** In KAPPS a device changes only through a workflow of its service. This demo
|
|
9
9
|
has no unit workflows yet, so nothing in it writes to a device through a unit's served data model:
|
|
10
|
-
the controller reads, and the station board shows what it reads.
|
|
11
|
-
workflows after the paper.
|
|
10
|
+
the controller reads, and the station board shows what it reads.
|
|
12
11
|
|
|
13
12
|
Its decisions are development-repository material and do not ship; what they decided is
|
|
14
13
|
described, without the deliberation, in `docs/mechanics/`.
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/README.md
RENAMED
|
@@ -4,8 +4,7 @@ This demo builds a very small factory on your computer and lets you watch it fro
|
|
|
4
4
|
|
|
5
5
|
**The demo observes.** In KAPPS a machine changes only through a workflow of its service. This
|
|
6
6
|
demo has no machine workflows yet, so the control station reads the machines and changes none.
|
|
7
|
-
|
|
8
|
-
itself, on its own panel page.
|
|
7
|
+
You can still move a belt at the machine itself, on its own panel page.
|
|
9
8
|
|
|
10
9
|
Nothing here is real hardware. Every machine is a Python program that pretends to be one. But the
|
|
11
10
|
parts talk to each other the same way real ones would, so what you see is the real behaviour.
|
|
@@ -184,7 +183,7 @@ The sweep also settles that machine's operations. Each machine has exactly one s
|
|
|
184
183
|
middleware, so when it is swept every operation of that machine that is still **queued** or
|
|
185
184
|
**running** is marked failed: nothing is left to run it. The control station is not affected: it
|
|
186
185
|
registers a service but no workflow, so it never has operations queued to it. The failed operations
|
|
187
|
-
are visible in the graph, as `svc:
|
|
186
|
+
are visible in the graph, as `svc:hasOperationStatus "failed"`, and the issuer of each is notified. The launcher page's
|
|
188
187
|
**watchdog** box shows only that the process is live; its output (click it if it turns red) and the
|
|
189
188
|
terminal show what it ran.
|
|
190
189
|
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/algorithm.py
RENAMED
|
@@ -17,7 +17,7 @@ The algorithm itself is deliberately meaningless -- it demonstrates reach, not r
|
|
|
17
17
|
control. When a light barrier's reading changes, it reads a barrier on one unit and the
|
|
18
18
|
conveyor speed of another, and logs both. **It observes and writes nothing.** In KAPPS a
|
|
19
19
|
device changes only through a workflow of its service; this demo has no unit workflows
|
|
20
|
-
yet, so it has no control to exercise.
|
|
20
|
+
yet, so it has no control to exercise.
|
|
21
21
|
A real material flow controller would route
|
|
22
22
|
parcels across units by reading barriers and deciding which unit to trigger; building one
|
|
23
23
|
is domain work, not middleware work. The graph carries no plant layout, so nothing here
|
|
@@ -113,23 +113,27 @@ def _barrier_snapshot(controller: Controller) -> Dict[str, Tuple[bool, ...]]:
|
|
|
113
113
|
return snapshot
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
def build_view_query() -> str:
|
|
117
|
-
"""Build the SPARQL SELECT query that finds live,
|
|
116
|
+
def build_view_query(parity: str = "all") -> str:
|
|
117
|
+
"""Build the SPARQL SELECT query that finds live TransferUnits, optionally by parity.
|
|
118
|
+
|
|
119
|
+
``parity`` is "all" (the default: every live unit, no parity filter), "even" or "odd".
|
|
120
|
+
The station board's prewritten-query dropdown reaches this through
|
|
121
|
+
:func:`named_view_queries`, and "All TransferUnits" is the board's default view.
|
|
118
122
|
|
|
119
123
|
This realizes the Control Expert's step 1: the view is the query, and the query text supplies
|
|
120
124
|
the domain class and any heuristic. ``Controller.view()`` runs this verbatim and
|
|
121
125
|
returns every IRI it binds to ``?resource``. Nothing in ``controller.py`` assumes
|
|
122
126
|
a domain class or a column beyond ``?resource`` itself.
|
|
123
127
|
|
|
124
|
-
The
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
The parity heuristics are deliberately arbitrary. "even" and "odd" each visibly return
|
|
129
|
+
roughly half the factory when N units are seeded, making the demo's behavior easy to
|
|
130
|
+
verify by inspection. A real algorithm would narrow by area of the plant, topology, or
|
|
131
|
+
workload instead.
|
|
128
132
|
|
|
129
133
|
Live means the resource's Service carries ``svc:address``. The query joins from
|
|
130
134
|
``?resource`` to its Service via ``svc:isServiceOf``, then requires ``?addr`` to be
|
|
131
|
-
bound.
|
|
132
|
-
``...#TransferUnit4`` -> ``4``) and tested for
|
|
135
|
+
bound. For "even" and "odd" the unit index is extracted from the IRI's local name (e.g.
|
|
136
|
+
``...#TransferUnit4`` -> ``4``) and tested for parity arithmetically: SPARQL 1.1
|
|
133
137
|
has no ``%`` modulo operator, so this computes
|
|
134
138
|
``xsd:integer(?suffix) - 2 * FLOOR(xsd:integer(?suffix) / 2)``, which is 0 for an
|
|
135
139
|
even suffix and 1 for an odd one.
|
|
@@ -137,19 +141,50 @@ def build_view_query() -> str:
|
|
|
137
141
|
Returns:
|
|
138
142
|
A SPARQL ``SELECT ?resource`` query string.
|
|
139
143
|
"""
|
|
144
|
+
if parity == "all":
|
|
145
|
+
heuristic = ""
|
|
146
|
+
elif parity in ("even", "odd"):
|
|
147
|
+
target = "0" if parity == "even" else "1"
|
|
148
|
+
heuristic = (
|
|
149
|
+
'BIND(STRAFTER(STR(?resource), "#TransferUnit") AS ?suffix)\n'
|
|
150
|
+
' FILTER(?suffix != "" &&\n'
|
|
151
|
+
f" (xsd:integer(?suffix) - 2 * FLOOR(xsd:integer(?suffix) / 2)) = {target})"
|
|
152
|
+
)
|
|
153
|
+
else:
|
|
154
|
+
raise ValueError(f"parity must be 'all', 'even' or 'odd', got {parity!r}")
|
|
155
|
+
return _live_units_query(heuristic)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def _live_units_query(heuristic: str) -> str:
|
|
159
|
+
"""The fixed frame -- class plus liveness join -- around a heuristic clause."""
|
|
140
160
|
return f"""
|
|
141
161
|
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
|
|
142
162
|
SELECT ?resource WHERE {{
|
|
143
163
|
?resource a <{seed.TRANSFER_UNIT_CLASS}> .
|
|
144
164
|
?svc <{SVC.isServiceOf}> ?resource .
|
|
145
165
|
?svc <{SVC.address}> ?addr .
|
|
146
|
-
|
|
147
|
-
FILTER(?suffix != "" &&
|
|
148
|
-
(xsd:integer(?suffix) - 2 * FLOOR(xsd:integer(?suffix) / 2)) = 0)
|
|
166
|
+
{heuristic}
|
|
149
167
|
}}
|
|
150
168
|
"""
|
|
151
169
|
|
|
152
170
|
|
|
171
|
+
def named_view_queries() -> list[dict[str, str]]:
|
|
172
|
+
"""Prewritten view heuristics for the station board's dropdown.
|
|
173
|
+
|
|
174
|
+
"All TransferUnits" first (the board's default and the target of "reset"), then the
|
|
175
|
+
even/odd parity pair, then a "Custom" starter the Control Expert edits into their own
|
|
176
|
+
heuristic. Each entry is a display name and a full ``SELECT ?resource`` query the board
|
|
177
|
+
drops verbatim into its query field.
|
|
178
|
+
"""
|
|
179
|
+
custom_starter = _live_units_query("# Add your own FILTER here.")
|
|
180
|
+
return [
|
|
181
|
+
{"name": "All TransferUnits", "query": build_view_query("all")},
|
|
182
|
+
{"name": "Even-indexed TransferUnits", "query": build_view_query("even")},
|
|
183
|
+
{"name": "Odd-indexed TransferUnits", "query": build_view_query("odd")},
|
|
184
|
+
{"name": "Custom — edit your own", "query": custom_starter},
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
|
|
153
188
|
def unit_class_scope() -> ClassScope:
|
|
154
189
|
"""Return the ClassScope that roots at tu:TransferUnit and reaches belt/barrier parameters.
|
|
155
190
|
|
|
@@ -149,7 +149,7 @@ async def main() -> None:
|
|
|
149
149
|
# the app's lifespan connecting everything (Controller.wire_view's own docstring).
|
|
150
150
|
default_query = algorithm.build_view_query()
|
|
151
151
|
hits = controller.view(default_query)
|
|
152
|
-
logger.info("The view found %d live
|
|
152
|
+
logger.info("The view found %d live unit(s)", len(hits))
|
|
153
153
|
controller.wire_view(hits, class_scope=algorithm.unit_class_scope())
|
|
154
154
|
|
|
155
155
|
state = algorithm.AlgorithmState()
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/controller.py
RENAMED
|
@@ -23,7 +23,7 @@ Control Expert's steps (``CONTEXT.md``):
|
|
|
23
23
|
after construction and before the app's lifespan starts (before ``run_server``).
|
|
24
24
|
Connectors must exist before the lifespan connects them, so wiring cannot
|
|
25
25
|
wait for an async hook. Every connector it registers is a read leg: the controller's
|
|
26
|
-
connector
|
|
26
|
+
connector sync direction is ``TO_PERSISTENCE``, so recognition never builds a write leg, and
|
|
27
27
|
nothing here can send a PUT to a unit's served data model.
|
|
28
28
|
|
|
29
29
|
The controller still discovers resources by class IRI via ``discover_resources``,
|
|
@@ -135,7 +135,7 @@ class Controller(SemanticMiddleware):
|
|
|
135
135
|
``view()`` runs the caller's SPARQL query and returns the resource IRIs it binds.
|
|
136
136
|
``wire_view()`` recognizes each hit's interface-accessible parameters and registers
|
|
137
137
|
a reading REST connector for every one it finds -- reached over REST, never MQTT
|
|
138
|
-
(``_VIEW_REGISTRY`` excludes it), and never a write leg (the connector
|
|
138
|
+
(``_VIEW_REGISTRY`` excludes it), and never a write leg (the connector sync direction is
|
|
139
139
|
``TO_PERSISTENCE``). Loading happens on startup: each hit's pruned datamodel
|
|
140
140
|
materializes into ``self.units``, keyed by resource IRI string, and each read leg's
|
|
141
141
|
poll keeps it current. An algorithm reads those loaded objects directly.
|
|
@@ -226,7 +226,7 @@ class Controller(SemanticMiddleware):
|
|
|
226
226
|
# Its connectors come from the view, which does not exist yet at this point.
|
|
227
227
|
autoregister_connectors=False,
|
|
228
228
|
# Read legs only. `resolve_direction` takes the most restrictive of a
|
|
229
|
-
# parameter's access mode and this
|
|
229
|
+
# parameter's access mode and this sync direction, so even a read-write belt speed
|
|
230
230
|
# gets no write leg: the controller observes, and a device changes only
|
|
231
231
|
# through a workflow of its service.
|
|
232
232
|
connector_sync_direction=SyncDirection.TO_PERSISTENCE,
|
|
@@ -353,7 +353,7 @@ class Controller(SemanticMiddleware):
|
|
|
353
353
|
class_scope=class_scope,
|
|
354
354
|
resource_class=IRI(str(resource_class)) if resource_class is not None else None,
|
|
355
355
|
registry=registry,
|
|
356
|
-
|
|
356
|
+
sync_direction=self.connector_sync_direction,
|
|
357
357
|
autoregister=True,
|
|
358
358
|
ensure_transport=self.ensure_transport,
|
|
359
359
|
)
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/factory.ttl
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
-
@prefix cfc: <
|
|
5
|
-
@prefix svc: <
|
|
6
|
-
@prefix fac: <
|
|
4
|
+
@prefix cfc: <http://w3id.org/circularfactory/Core#> .
|
|
5
|
+
@prefix svc: <http://w3id.org/circularfactory/Service#> .
|
|
6
|
+
@prefix fac: <http://www.sfb1574.kit.edu/ontologies/Factory#> .
|
|
7
7
|
|
|
8
8
|
fac:ControlStation rdf:type owl:Class ;
|
|
9
9
|
rdfs:subClassOf cfc:Resource ;
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/demo/transferunits/seed.py
RENAMED
|
@@ -23,10 +23,10 @@ from kapps_semantic_middleware.vocabulary import INF, SVC
|
|
|
23
23
|
|
|
24
24
|
# --- Namespaces ------------------------------------------------------------- #
|
|
25
25
|
|
|
26
|
-
TU_NS = "
|
|
27
|
-
TUI_NS = "
|
|
28
|
-
FAC_NS = "
|
|
29
|
-
FACI_NS = "
|
|
26
|
+
TU_NS = "http://www.sfb1574.kit.edu/ontologies/TransferUnit#"
|
|
27
|
+
TUI_NS = "http://www.sfb1574.kit.edu/ontologies/TransferUnitInstances#"
|
|
28
|
+
FAC_NS = "http://www.sfb1574.kit.edu/ontologies/Factory#"
|
|
29
|
+
FACI_NS = "http://www.sfb1574.kit.edu/ontologies/FactoryInstances#"
|
|
30
30
|
|
|
31
31
|
# --- Domain class and property IRIs (tu:) ------------------------------------ #
|
|
32
32
|
|
|
@@ -215,7 +215,7 @@ def seed_factory(db, ogm, units: int) -> None:
|
|
|
215
215
|
units: Number of TransferUnits to create (indices 1..units).
|
|
216
216
|
"""
|
|
217
217
|
clear_dataset(db)
|
|
218
|
-
load_shared_ontologies(db)
|
|
218
|
+
load_shared_ontologies(db, reload=True)
|
|
219
219
|
_load_demo_ontologies(db)
|
|
220
220
|
|
|
221
221
|
for n in range(1, units + 1):
|
|
@@ -7,8 +7,8 @@ panel.py onto a PLC's). The board reads controller.units and calls
|
|
|
7
7
|
controller.rebuild_view() in-process — no second server, no second event loop.
|
|
8
8
|
|
|
9
9
|
The board is a read-only view. It sends nothing to a unit: in KAPPS a device changes only
|
|
10
|
-
through a workflow of its service, and this demo has no unit workflows yet.
|
|
11
|
-
|
|
10
|
+
through a workflow of its service, and this demo has no unit workflows yet.
|
|
11
|
+
``tests/test_station_board_guard.py`` pins that no
|
|
12
12
|
demo file sends a write to a unit's served data model.
|
|
13
13
|
|
|
14
14
|
The split between this file (routes + template) and control_station.py (runner: argparse,
|
|
@@ -75,8 +75,10 @@ TEACH: Dict[str, Dict[str, str]] = {
|
|
|
75
75
|
"view-box": {
|
|
76
76
|
"title": "The editable view heuristic",
|
|
77
77
|
"what": "The frame (class and the ?resource/liveness join) is fixed; the "
|
|
78
|
-
"textarea is the Control Expert's own heuristic. \"
|
|
79
|
-
"
|
|
78
|
+
"textarea is the Control Expert's own heuristic. The \"Prewritten query\" dropdown "
|
|
79
|
+
"fills it with All, Even-indexed, Odd-indexed or a Custom starter; the \"All\" "
|
|
80
|
+
"entry is the default. \"run\" rebuilds immediately; "
|
|
81
|
+
"\"reset\" restores that default. A malformed query or a zero-hit "
|
|
80
82
|
"one is reported here, in place -- neither ever 500s the page.",
|
|
81
83
|
"file": "demo/transferunits/controller.py",
|
|
82
84
|
},
|
|
@@ -263,7 +265,9 @@ def mount_onto(
|
|
|
263
265
|
index.py's boxes, so it carries its own dict rather than importing that one)."""
|
|
264
266
|
template_path = Path(__file__).parent / "templates" / "station_board.html"
|
|
265
267
|
page = template_path.read_text(encoding="utf-8")
|
|
266
|
-
|
|
268
|
+
page = page.replace("__TEACH__", json.dumps(TEACH))
|
|
269
|
+
page = page.replace("__QUERIES__", json.dumps(algorithm.named_view_queries()))
|
|
270
|
+
return HTMLResponse(page)
|
|
267
271
|
|
|
268
272
|
# Reset OpenAPI schema so /docs and /openapi.json describe the routes that actually exist.
|
|
269
273
|
app.openapi_schema = None
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
.view-frame button { padding:7px 14px; border:1px solid var(--line); background:#fff;
|
|
23
23
|
border-radius:5px; font:inherit; cursor:pointer; }
|
|
24
24
|
.view-frame button:hover { background:#f0f0ee; }
|
|
25
|
+
.preset-row { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
|
|
26
|
+
.preset-row label { font-size:13px; color:var(--muted); }
|
|
27
|
+
.preset-row select { padding:6px 10px; border:1px solid var(--line); border-radius:5px;
|
|
28
|
+
font:inherit; background:#fff; cursor:pointer; }
|
|
25
29
|
.error-line { font-size:12px; margin-top:8px; min-height:18px; }
|
|
26
30
|
.error-line.error { color:var(--warn); font-weight:600; }
|
|
27
31
|
.error-line.note { color:var(--muted); }
|
|
@@ -67,17 +71,22 @@
|
|
|
67
71
|
|
|
68
72
|
<main>
|
|
69
73
|
<h1>Station Board</h1>
|
|
70
|
-
<p class="sub">This board shows one card per TransferUnit selected by the
|
|
74
|
+
<p class="sub">This board shows one card per TransferUnit selected by the query below. Pick a prewritten
|
|
75
|
+
query from the dropdown or edit your own; "All TransferUnits" is the default.
|
|
71
76
|
Cards are collapsed by default — <strong>collapsed means display-only</strong>: every value
|
|
72
77
|
stays current behind a shut card, only the visual panel is closed. Click a header to expand.
|
|
73
78
|
<strong>The board observes and writes nothing.</strong> In KAPPS a device changes only
|
|
74
|
-
through a workflow of its service; this demo has none yet
|
|
75
|
-
|
|
79
|
+
through a workflow of its service; this demo has none yet.
|
|
80
|
+
Backend logic lives in
|
|
76
81
|
<code>demo/transferunits/station_board.py</code>; the observing algorithm itself is in
|
|
77
82
|
<code>demo/transferunits/algorithm.py</code>.</p>
|
|
78
83
|
|
|
79
84
|
<div class="card view-frame" data-teach="view-box">
|
|
80
85
|
<div>
|
|
86
|
+
<div class="preset-row">
|
|
87
|
+
<label for="query-preset">Prewritten query</label>
|
|
88
|
+
<select id="query-preset" onchange="applyPreset()"></select>
|
|
89
|
+
</div>
|
|
81
90
|
<pre>SELECT ?resource WHERE {
|
|
82
91
|
?resource a tu:TransferUnit ; svc:hasService ?s .
|
|
83
92
|
?s svc:address ?a .</pre>
|
|
@@ -108,6 +117,7 @@
|
|
|
108
117
|
|
|
109
118
|
<script>
|
|
110
119
|
const TEACH = __TEACH__;
|
|
120
|
+
const QUERIES = __QUERIES__;
|
|
111
121
|
let frozen = false;
|
|
112
122
|
let dirty = false;
|
|
113
123
|
let lastState = null;
|
|
@@ -155,9 +165,28 @@ async function runQuery() {
|
|
|
155
165
|
async function resetQuery() {
|
|
156
166
|
await post('/api/view/reset');
|
|
157
167
|
dirty = false;
|
|
168
|
+
document.getElementById('query-preset').value = '';
|
|
158
169
|
poll();
|
|
159
170
|
}
|
|
160
171
|
|
|
172
|
+
function populatePresets() {
|
|
173
|
+
// Fill the dropdown from the injected QUERIES list (algorithm.named_view_queries()).
|
|
174
|
+
const sel = document.getElementById('query-preset');
|
|
175
|
+
sel.replaceChildren(new Option('— choose a prewritten query —', ''),
|
|
176
|
+
...QUERIES.map((item, i) => new Option(item.name, String(i))));
|
|
177
|
+
sel.options[0].disabled = true;
|
|
178
|
+
sel.value = '';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function applyPreset() {
|
|
182
|
+
// Drop the chosen prewritten query into the field. dirty=true so the next poll does not
|
|
183
|
+
// overwrite it; the Control Expert still presses "run" to apply it.
|
|
184
|
+
const i = parseInt(document.getElementById('query-preset').value, 10);
|
|
185
|
+
if (Number.isNaN(i)) return;
|
|
186
|
+
document.getElementById('query-text').value = QUERIES[i].query;
|
|
187
|
+
dirty = true;
|
|
188
|
+
}
|
|
189
|
+
|
|
161
190
|
async function togglePause() {
|
|
162
191
|
const btn = document.getElementById('pause-btn');
|
|
163
192
|
const paused = btn.textContent === 'pause';
|
|
@@ -302,6 +331,7 @@ async function poll() {
|
|
|
302
331
|
|
|
303
332
|
idle();
|
|
304
333
|
bind(); // Binds the static view-box/algo-bar/show-iris hovers before the first poll.
|
|
334
|
+
populatePresets(); // Fill the prewritten-query dropdown from the injected QUERIES list.
|
|
305
335
|
poll();
|
|
306
336
|
setInterval(poll, 2000);
|
|
307
337
|
</script>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
4
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
-
@prefix cfc: <
|
|
6
|
-
@prefix svc: <
|
|
7
|
-
@prefix inf: <
|
|
8
|
-
@prefix tu: <
|
|
5
|
+
@prefix cfc: <http://w3id.org/circularfactory/Core#> .
|
|
6
|
+
@prefix svc: <http://w3id.org/circularfactory/Service#> .
|
|
7
|
+
@prefix inf: <http://www.sfb1574.kit.edu/ontologies/CrcInterfaces#> .
|
|
8
|
+
@prefix tu: <http://www.sfb1574.kit.edu/ontologies/TransferUnit#> .
|
|
9
9
|
|
|
10
10
|
inf:isInterfaceAccessibleParameter rdf:type owl:ObjectProperty ;
|
|
11
11
|
rdfs:label "is interface-accessible parameter" ;
|
|
@@ -24,7 +24,7 @@ def my_starter(host: str, port: int) -> None:
|
|
|
24
24
|
|
|
25
25
|
mw = SemanticMiddleware(
|
|
26
26
|
mode="resource",
|
|
27
|
-
resource_iri=IRI("
|
|
27
|
+
resource_iri=IRI("http://example.org/kapps-demo#my_resource"),
|
|
28
28
|
ensure_transport=my_starter,
|
|
29
29
|
)
|
|
30
30
|
```
|
|
@@ -167,7 +167,7 @@ HTTP 500 and such a workflow is run by the intake.
|
|
|
167
167
|
from kapps_ogm import Node
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
@mw.workflow(capability_class=
|
|
170
|
+
@mw.workflow(capability_class=TRANSPORT_CAPABILITY, workflow_class=TRANSPORT_WORKFLOW)
|
|
171
171
|
def workpiece_transport(transport: Node) -> None:
|
|
172
172
|
... # move the workpiece; commit the transport's own transitions with mw.commit()
|
|
173
173
|
|
|
@@ -18,7 +18,7 @@ from kapps_semantic_middleware.vocabulary import SVC
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def status(value):
|
|
21
|
-
return [Update(instance_iri=op, data={str(SVC.
|
|
21
|
+
return [Update(instance_iri=op, data={str(SVC.hasOperationStatus): [value]})]
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
async with mw.commit(
|
|
@@ -88,13 +88,13 @@ The generic core knows only `svc:` and standard RDF. A rule of the circular fact
|
|
|
88
88
|
|
|
89
89
|
Without its required input, a predefined scope raises `ValueError` when `mw.create()` is entered, before the body runs and before any write. The body must not set a property that its scope sets: that raises `ValueError` at the exit, and nothing is written. A domain module gives a scope of its own as a `PredefinedScope` (from `kapps_semantic_middleware.commit`), whose `changes()` returns a `ScopeChanges`: the data that the scope adds to the `Create`, and the further changes. `AGENTS.md` lists which modules are specific to the circular factory.
|
|
90
90
|
|
|
91
|
-
###
|
|
91
|
+
### A participant's decision snapshot
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
A participant claims an Operation, decides, and records its decision in a snapshot, an instance with an identity of its own. The snapshot joins the commit that makes the Operation `done`:
|
|
94
94
|
|
|
95
95
|
```python
|
|
96
96
|
with mw.claim_next(operation_scope) as claimed:
|
|
97
|
-
decision =
|
|
97
|
+
decision = decide(claimed.operation)
|
|
98
98
|
with mw.create(EX.DecisionSnapshot, snapshot_scope) as snapshot:
|
|
99
99
|
snapshot.update({str(EX.decision): [decision], str(EX.aboutOperation): [claimed.iri]})
|
|
100
100
|
claimed.result = decision
|
|
@@ -112,7 +112,7 @@ from kapps_semantic_middleware.possession import workpiece
|
|
|
112
112
|
|
|
113
113
|
transport_rule = operation(transport_scope, capability=transport_capability)
|
|
114
114
|
with mw.create(EX.Transport, transport_rule) as transport:
|
|
115
|
-
transport.update({str(SVC.
|
|
115
|
+
transport.update({str(SVC.hasOperationStatus): ["queued"]})
|
|
116
116
|
with mw.create(EX.Workpiece, workpiece(workpiece_scope, possessor=mw.resource)) as piece:
|
|
117
117
|
pass
|
|
118
118
|
transport.update({str(EX.hasWorkpiece): [piece.iri]})
|
|
@@ -30,8 +30,8 @@ load_shared_ontologies(db)
|
|
|
30
30
|
|
|
31
31
|
mw = SemanticMiddleware(
|
|
32
32
|
mode=Mode.RESOURCE,
|
|
33
|
-
resource_iri=IRI("
|
|
34
|
-
service_class=IRI("
|
|
33
|
+
resource_iri=IRI("http://example.org/kapps-demo#my_resource"),
|
|
34
|
+
service_class=IRI("http://example.org/kapps-demo#MyService"),
|
|
35
35
|
ogm=ogm,
|
|
36
36
|
)
|
|
37
37
|
```
|
|
@@ -37,8 +37,8 @@ The page's title and its heading name the instance's resource, as in "Module 1
|
|
|
37
37
|
With several dashboards open, each browser tab shows which instance it belongs to.
|
|
38
38
|
|
|
39
39
|
The name is the resource's `rdfs:label`. A resource without one is named by the local name of its
|
|
40
|
-
IRI, the part after the last `#` or `/`: `…#
|
|
41
|
-
"
|
|
40
|
+
IRI, the part after the last `#` or `/`: `…#Station1` gives
|
|
41
|
+
"Station1 — dashboard". An instance that represents no resource keeps the title
|
|
42
42
|
"Middleware Dashboard".
|
|
43
43
|
|
|
44
44
|
A resource may carry several labels. The page uses the same one every time. A label without a
|
|
@@ -25,10 +25,10 @@ A store without that ruleset returns fewer statements to the reads that are infe
|
|
|
25
25
|
```{glossary}
|
|
26
26
|
|
|
27
27
|
Service
|
|
28
|
-
A distributed runtime entity wrapped by a single middleware instance, such as a door controller or a
|
|
28
|
+
A distributed runtime entity wrapped by a single middleware instance, such as a door controller or a drilling-resource controller. Typed via a domain-specific subclass that must pre-exist in the ontology. One Service per middleware instance, not per Resource; several instances may be bound to one Resource.
|
|
29
29
|
|
|
30
30
|
Resource
|
|
31
|
-
The physical or logical thing a Service wraps, such as a door, a transformer cell, or a
|
|
31
|
+
The physical or logical thing a Service wraps, such as a door, a transformer cell, or a drill. Required at construction time in resource mode.
|
|
32
32
|
|
|
33
33
|
Mode
|
|
34
34
|
A construction-time choice governing what the middleware instance is for: `"resource"` wraps one Resource and exposes its Workflows and StateProperties; `"server"` is reserved and not built: constructing one raises; `"watchdog"` wraps no Resource and sweeps stale addresses from the graph.
|
|
@@ -29,7 +29,7 @@ def my_starter(host: str, port: int) -> None:
|
|
|
29
29
|
|
|
30
30
|
mw = SemanticMiddleware(
|
|
31
31
|
mode="resource",
|
|
32
|
-
resource_iri=IRI("
|
|
32
|
+
resource_iri=IRI("http://example.org/kapps-demo#my_resource"),
|
|
33
33
|
ensure_transport=my_starter,
|
|
34
34
|
)
|
|
35
35
|
```
|
|
@@ -172,7 +172,7 @@ HTTP 500 and such a workflow is run by the intake.
|
|
|
172
172
|
from kapps_ogm import Node
|
|
173
173
|
|
|
174
174
|
|
|
175
|
-
@mw.workflow(capability_class=
|
|
175
|
+
@mw.workflow(capability_class=TRANSPORT_CAPABILITY, workflow_class=TRANSPORT_WORKFLOW)
|
|
176
176
|
def workpiece_transport(transport: Node) -> None:
|
|
177
177
|
... # move the workpiece; commit the transport's own transitions with mw.commit()
|
|
178
178
|
|
|
@@ -23,7 +23,7 @@ from kapps_semantic_middleware.vocabulary import SVC
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
def status(value):
|
|
26
|
-
return [Update(instance_iri=op, data={str(SVC.
|
|
26
|
+
return [Update(instance_iri=op, data={str(SVC.hasOperationStatus): [value]})]
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
async with mw.commit(
|
|
@@ -93,13 +93,13 @@ The generic core knows only `svc:` and standard RDF. A rule of the circular fact
|
|
|
93
93
|
|
|
94
94
|
Without its required input, a predefined scope raises `ValueError` when `mw.create()` is entered, before the body runs and before any write. The body must not set a property that its scope sets: that raises `ValueError` at the exit, and nothing is written. A domain module gives a scope of its own as a `PredefinedScope` (from `kapps_semantic_middleware.commit`), whose `changes()` returns a `ScopeChanges`: the data that the scope adds to the `Create`, and the further changes. `AGENTS.md` lists which modules are specific to the circular factory.
|
|
95
95
|
|
|
96
|
-
###
|
|
96
|
+
### A participant's decision snapshot
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
A participant claims an Operation, decides, and records its decision in a snapshot, an instance with an identity of its own. The snapshot joins the commit that makes the {term}`Operation` `done`:
|
|
99
99
|
|
|
100
100
|
```python
|
|
101
101
|
with mw.claim_next(operation_scope) as claimed:
|
|
102
|
-
decision =
|
|
102
|
+
decision = decide(claimed.operation)
|
|
103
103
|
with mw.create(EX.DecisionSnapshot, snapshot_scope) as snapshot:
|
|
104
104
|
snapshot.update({str(EX.decision): [decision], str(EX.aboutOperation): [claimed.iri]})
|
|
105
105
|
claimed.result = decision
|
|
@@ -117,7 +117,7 @@ from kapps_semantic_middleware.possession import workpiece
|
|
|
117
117
|
|
|
118
118
|
transport_rule = operation(transport_scope, capability=transport_capability)
|
|
119
119
|
with mw.create(EX.Transport, transport_rule) as transport:
|
|
120
|
-
transport.update({str(SVC.
|
|
120
|
+
transport.update({str(SVC.hasOperationStatus): ["queued"]})
|
|
121
121
|
with mw.create(EX.Workpiece, workpiece(workpiece_scope, possessor=mw.resource)) as piece:
|
|
122
122
|
pass
|
|
123
123
|
transport.update({str(EX.hasWorkpiece): [piece.iri]})
|
|
@@ -30,8 +30,8 @@ load_shared_ontologies(db)
|
|
|
30
30
|
|
|
31
31
|
mw = SemanticMiddleware(
|
|
32
32
|
mode=Mode.RESOURCE,
|
|
33
|
-
resource_iri=IRI("
|
|
34
|
-
service_class=IRI("
|
|
33
|
+
resource_iri=IRI("http://example.org/kapps-demo#my_resource"),
|
|
34
|
+
service_class=IRI("http://example.org/kapps-demo#MyService"),
|
|
35
35
|
ogm=ogm,
|
|
36
36
|
)
|
|
37
37
|
```
|
|
@@ -28,7 +28,7 @@ registry = enable_dashboard(middleware, register_default_boxes=False)
|
|
|
28
28
|
|
|
29
29
|
The page's title and its heading name the instance's resource, as in "Module 1 — dashboard". With several dashboards open, each browser tab shows which instance it belongs to.
|
|
30
30
|
|
|
31
|
-
The name is the resource's `rdfs:label`. A resource without one is named by the local name of its IRI, the part after the last `#` or `/`: `…#
|
|
31
|
+
The name is the resource's `rdfs:label`. A resource without one is named by the local name of its IRI, the part after the last `#` or `/`: `…#Station1` gives "Station1 — dashboard". An instance that represents no resource keeps the title "Middleware Dashboard".
|
|
32
32
|
|
|
33
33
|
A resource may carry several labels. The page uses the same one every time. A label without a language tag comes first, then an English one (`@en`, `@en-GB`, …), then the others. Within each group the first language tag in code-point order wins, and within one tag the first label in code-point order. A value that is an IRI, or that holds only white space, is not a name.
|
|
34
34
|
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/docs/site/scenarios/factory.md
RENAMED
|
@@ -4,8 +4,7 @@ This demo builds a very small factory on your computer and lets you watch it fro
|
|
|
4
4
|
|
|
5
5
|
**The demo observes.** In KAPPS a machine changes only through a workflow of its service. This
|
|
6
6
|
demo has no machine workflows yet, so the control station reads the machines and changes none.
|
|
7
|
-
|
|
8
|
-
itself, on its own panel page.
|
|
7
|
+
You can still move a belt at the machine itself, on its own panel page.
|
|
9
8
|
|
|
10
9
|
Nothing here is real hardware. Every machine is a Python program that pretends to be one. But the
|
|
11
10
|
parts talk to each other the same way real ones would, so what you see is the real behaviour.
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_handover.ttl
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
-
@prefix cfc: <
|
|
5
|
-
@prefix ex: <
|
|
4
|
+
@prefix cfc: <http://w3id.org/circularfactory/Core#> .
|
|
5
|
+
@prefix ex: <http://example.org/kapps-demo#> .
|
|
6
6
|
|
|
7
7
|
#################################################################
|
|
8
8
|
# Self-contained ground-truth ontology for the handover scenario ONLY.
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_scenario1.ttl
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
-
@prefix cfc: <
|
|
5
|
-
@prefix svc: <
|
|
6
|
-
@prefix ex: <
|
|
4
|
+
@prefix cfc: <http://w3id.org/circularfactory/Core#> .
|
|
5
|
+
@prefix svc: <http://w3id.org/circularfactory/Service#> .
|
|
6
|
+
@prefix ex: <http://example.org/kapps-demo#> .
|
|
7
7
|
|
|
8
8
|
#################################################################
|
|
9
9
|
# Self-contained ground-truth ontology for Scenario 1 (hello-world) ONLY.
|
{kapps_semantic_middleware-0.2.2 → kapps_semantic_middleware-0.2.3}/examples/demo_scenario2.ttl
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
2
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
3
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
-
@prefix cfc: <
|
|
5
|
-
@prefix svc: <
|
|
6
|
-
@prefix ex: <
|
|
4
|
+
@prefix cfc: <http://w3id.org/circularfactory/Core#> .
|
|
5
|
+
@prefix svc: <http://w3id.org/circularfactory/Service#> .
|
|
6
|
+
@prefix ex: <http://example.org/kapps-demo#> .
|
|
7
7
|
|
|
8
8
|
#################################################################
|
|
9
9
|
# Self-contained ground-truth ontology for Scenario 2 (decentralized door) ONLY.
|