wger-agent 2.2.2__tar.gz → 2.2.4__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.
- {wger_agent-2.2.2/wger_agent.egg-info → wger_agent-2.2.4}/PKG-INFO +5 -5
- {wger_agent-2.2.2 → wger_agent-2.2.4}/README.md +1 -1
- {wger_agent-2.2.2 → wger_agent-2.2.4}/pyproject.toml +4 -7
- wger_agent-2.2.4/requirements.txt +1 -0
- wger_agent-2.2.4/tests/test_default_content_surfaces.py +43 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_fleet_name.py +2 -13
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_kg_ingest.py +2 -2
- wger_agent-2.2.4/wger_agent/connector_sources.py +554 -0
- wger_agent-2.2.4/wger_agent/connectors/__init__.py +1 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/mcp_server.py +1 -1
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/certification.json +0 -3
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/wellness.ttl +2 -2
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/prompts/fitness_specialist.json +0 -2
- {wger_agent-2.2.2 → wger_agent-2.2.4/wger_agent.egg-info}/PKG-INFO +5 -5
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent.egg-info/SOURCES.txt +2 -2
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent.egg-info/entry_points.txt +0 -3
- wger_agent-2.2.4/wger_agent.egg-info/requires.txt +14 -0
- wger_agent-2.2.2/requirements.txt +0 -1
- wger_agent-2.2.2/wger_agent/connectors/__init__.py +0 -8
- wger_agent-2.2.2/wger_agent/connectors/mcp_source_presets.json +0 -33
- wger_agent-2.2.2/wger_agent/connectors/tool_schema_fingerprints.json +0 -9
- wger_agent-2.2.2/wger_agent.egg-info/requires.txt +0 -14
- {wger_agent-2.2.2 → wger_agent-2.2.4}/LICENSE +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/MANIFEST.in +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/scripts/security_contract.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/scripts/security_sanitizer.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/scripts/verify_api_integration.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/setup.cfg +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/conftest.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_bug_cx_046_ctx_await.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_coverage_booster.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_init.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/tests/test_init_dynamics.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/__main__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_base.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_body.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_configs.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_exercises.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_nutrition.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_routine.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_user_system.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api/api_client_workout_sessions.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/api_client.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/auth.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/kg_ingest.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/mcp/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/mcp/mcp_server.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/mcp/tools.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/mcp_config.json +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/fixtures/records.json +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/mappings/source.yaml +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/migrations/manifest.json +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/ontology/shapes/connector.shacl.ttl +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/prompts/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/__init__.py +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/SKILL.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/WORKFLOW.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/_images_logo.png.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/administration_auth_proxy.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/administration_commands.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/administration_gym.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/administration_settings.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/api_api.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/api_routines.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/changelog.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/contributing.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/development_backend.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/development_frontend.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/development_mobile_app.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/en_latest.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/manual_routines.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/production_docker.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/production_installation.html.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-operations/SKILL.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-operations/agents/openai.yaml +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-operations/references/catalog.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-exercise-library/SKILL.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-exercise-library/WORKFLOW.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-nutrition-tracking/SKILL.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-nutrition-tracking/WORKFLOW.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-workout-routines/SKILL.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-workout-routines/WORKFLOW.md +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent.egg-info/dependency_links.txt +0 -0
- {wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wger-agent
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Wger Workout Manager — exercise database, workout routines, nutrition plans, body measurements, and progress tracking.
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: <3.15,>=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
15
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
16
16
|
Requires-Dist: requests>=2.34.2
|
|
17
17
|
Provides-Extra: mcp
|
|
18
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
18
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
19
19
|
Provides-Extra: all
|
|
20
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
20
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
|
|
21
21
|
Provides-Extra: test
|
|
22
22
|
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
23
23
|
Requires-Dist: pytest>=9.1.1; extra == "test"
|
|
@@ -47,7 +47,7 @@ Dynamic: license-file
|
|
|
47
47
|

|
|
48
48
|

|
|
49
49
|
|
|
50
|
-
*Version: 2.2.
|
|
50
|
+
*Version: 2.2.4*
|
|
51
51
|
|
|
52
52
|
> **Documentation** — Installation, deployment, usage across the MCP, API, and agent
|
|
53
53
|
> interfaces, and guidance for provisioning the Wger Workout Manager platform are
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|

|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
*Version: 2.2.
|
|
23
|
+
*Version: 2.2.4*
|
|
24
24
|
|
|
25
25
|
> **Documentation** — Installation, deployment, usage across the MCP, API, and agent
|
|
26
26
|
> interfaces, and guidance for provisioning the Wger Workout Manager platform are
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "wger-agent"
|
|
7
|
-
version = "2.2.
|
|
7
|
+
version = "2.2.4"
|
|
8
8
|
description = "Wger Workout Manager — exercise database, workout routines, nutrition plans, body measurements, and progress tracking."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
11
|
requires-python = ">=3.12, <3.15"
|
|
12
|
-
dependencies = [ "agent-connector-sdk[mcp]>=0.
|
|
12
|
+
dependencies = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0", "requests>=2.34.2",]
|
|
13
13
|
[[project.authors]]
|
|
14
14
|
name = "Project Maintainers"
|
|
15
15
|
email = "maintainers@users.noreply.github.com"
|
|
@@ -18,8 +18,8 @@ email = "maintainers@users.noreply.github.com"
|
|
|
18
18
|
text = "MIT"
|
|
19
19
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
|
-
mcp = [ "agent-connector-sdk[mcp]>=0.
|
|
22
|
-
all = [ "agent-connector-sdk[mcp]>=0.
|
|
21
|
+
mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
|
|
22
|
+
all = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
|
|
23
23
|
test = [
|
|
24
24
|
"pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
|
|
25
25
|
|
|
@@ -35,9 +35,6 @@ wger-agent = "wger_agent.prompts"
|
|
|
35
35
|
[project.entry-points."agent_connector_sdk.ontology_providers"]
|
|
36
36
|
wger-agent = "wger_agent.ontology"
|
|
37
37
|
|
|
38
|
-
[project.entry-points."agent_connector_sdk.source_connector_providers"]
|
|
39
|
-
wger-agent = "wger_agent.connectors"
|
|
40
|
-
|
|
41
38
|
# The one declared connector identity: the fleet name (SDK-CONNECTOR-CONTROL-R071).
|
|
42
39
|
[project.entry-points."agent_connector_sdk.connector"]
|
|
43
40
|
wger-mcp = "wger_agent"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agent-connector-sdk[mcp]>=0.4.1,<1.0.0
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""CONN-WGER-AGENT-CONNECTOR-CONTENT-R001: the server lists its packaged skills, ontology and prompts by default."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import asyncio
|
|
6
|
+
import importlib
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
from fastmcp import Client
|
|
11
|
+
|
|
12
|
+
PACKAGE = "wger_agent"
|
|
13
|
+
ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.spec("CONN-WGER-AGENT-CONNECTOR-CONTENT-R001")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _server():
|
|
19
|
+
namespace = {"__name__": PACKAGE + ".mcp_server"}
|
|
20
|
+
exec(
|
|
21
|
+
"from agent_connector_sdk.mcp.server import create_mcp_server\n"
|
|
22
|
+
"result = create_mcp_server('wger-mcp', version='0', command_args=[])",
|
|
23
|
+
namespace,
|
|
24
|
+
)
|
|
25
|
+
return namespace["result"][1]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def _listings():
|
|
29
|
+
async with Client(_server()) as client:
|
|
30
|
+
resources = {str(r.uri) for r in await client.list_resources()}
|
|
31
|
+
prompts = {p.name for p in await client.list_prompts()}
|
|
32
|
+
return resources, prompts
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def test_default_content_surfaces() -> None:
|
|
36
|
+
resources, prompts = asyncio.run(_listings())
|
|
37
|
+
if list(ROOT.glob("skills/*/SKILL.md")):
|
|
38
|
+
assert any(u.startswith("skill://") for u in resources)
|
|
39
|
+
if list(ROOT.glob("ontology/*.ttl")):
|
|
40
|
+
assert any(u.startswith("ontology://wger-mcp/") for u in resources)
|
|
41
|
+
for path in ROOT.glob("prompts/*.json"):
|
|
42
|
+
if not path.name.startswith("_"):
|
|
43
|
+
assert path.stem in prompts
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from agent_connector_sdk.connector_identity import connector_name
|
|
5
6
|
import ast
|
|
6
|
-
import json
|
|
7
|
-
import re
|
|
8
7
|
import tomllib
|
|
9
8
|
from pathlib import Path
|
|
10
9
|
|
|
@@ -38,16 +37,6 @@ def test_connector_name_is_the_fleet_name() -> None:
|
|
|
38
37
|
assert pyproject["project"]["entry-points"]["agent_connector_sdk.connector"] == {
|
|
39
38
|
FLEET: "wger_agent"
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
if not manifest_path.is_file():
|
|
43
|
-
manifest_path = ROOT / "connector_manifest.yml"
|
|
44
|
-
manifest = manifest_path.read_text(encoding="utf-8")
|
|
45
|
-
match = re.search(r'^\s*"?connector"?\s*:\s*"?([^"\s,]+)', manifest, re.MULTILINE)
|
|
46
|
-
assert match is not None and match.group(1) == FLEET
|
|
47
|
-
fingerprints = PACKAGE / "connectors" / "tool_schema_fingerprints.json"
|
|
48
|
-
if fingerprints.is_file():
|
|
49
|
-
assert (
|
|
50
|
-
json.loads(fingerprints.read_text(encoding="utf-8"))["connector"] == FLEET
|
|
51
|
-
)
|
|
40
|
+
assert connector_name("wger_agent") == FLEET
|
|
52
41
|
for module in sorted(PACKAGE.glob("*.py")):
|
|
53
42
|
assert all(name == FLEET for name in _call_connectors(module)), module.name
|
|
@@ -70,7 +70,7 @@ async def test_ingest_entities_writes_nodes_and_edges(ingest):
|
|
|
70
70
|
record_ids = {record.record_id for record in request.records}
|
|
71
71
|
assert record_ids == {"a", "b"}
|
|
72
72
|
assert request.relationships[0].relation_reference.endswith(
|
|
73
|
-
"
|
|
73
|
+
"relations/WorkoutSession/sessionOfRoutine"
|
|
74
74
|
)
|
|
75
75
|
|
|
76
76
|
|
|
@@ -116,7 +116,7 @@ async def test_ingest_workout_sessions_links_routine(ingest):
|
|
|
116
116
|
request = transport.requests[0]
|
|
117
117
|
assert any(r.record_id == "wellness:session:9" for r in request.records)
|
|
118
118
|
assert request.relationships[0].relation_reference.endswith(
|
|
119
|
-
"
|
|
119
|
+
"relations/WorkoutSession/sessionOfRoutine"
|
|
120
120
|
)
|
|
121
121
|
|
|
122
122
|
|
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
"""Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
|
|
2
|
+
|
|
3
|
+
Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: E501
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from agent_connector_sdk.ingest.live_declaration import source_meta
|
|
10
|
+
from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
|
|
11
|
+
|
|
12
|
+
CONNECTOR = "wger-mcp"
|
|
13
|
+
|
|
14
|
+
SOURCES = (
|
|
15
|
+
source_meta(
|
|
16
|
+
tool="wger_get_exercises",
|
|
17
|
+
source_id="wger-exercises",
|
|
18
|
+
record_type="Exercise",
|
|
19
|
+
id_field="id",
|
|
20
|
+
cursor_field="last_update",
|
|
21
|
+
preset={
|
|
22
|
+
"doc_type": "exercise",
|
|
23
|
+
"page_kind": "offset",
|
|
24
|
+
"page_param": "offset",
|
|
25
|
+
"page_size_param": "limit",
|
|
26
|
+
"pagination": "offset",
|
|
27
|
+
"params_style": "args",
|
|
28
|
+
},
|
|
29
|
+
records_path="results",
|
|
30
|
+
server="wger-mcp",
|
|
31
|
+
text_field="description",
|
|
32
|
+
title_field="name",
|
|
33
|
+
),
|
|
34
|
+
source_meta(
|
|
35
|
+
tool="wger_get_nutrition_plans",
|
|
36
|
+
source_id="wger-nutrition-plans",
|
|
37
|
+
record_type="NutritionPlan",
|
|
38
|
+
id_field="id",
|
|
39
|
+
cursor_field="creation_date",
|
|
40
|
+
preset={
|
|
41
|
+
"doc_type": "nutrition_plan",
|
|
42
|
+
"page_kind": "offset",
|
|
43
|
+
"page_param": "offset",
|
|
44
|
+
"page_size_param": "limit",
|
|
45
|
+
"pagination": "offset",
|
|
46
|
+
"params_style": "args",
|
|
47
|
+
},
|
|
48
|
+
records_path="results",
|
|
49
|
+
server="wger-mcp",
|
|
50
|
+
text_field="description",
|
|
51
|
+
title_field="description",
|
|
52
|
+
),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
SCHEMA_MAPPINGS = {
|
|
56
|
+
"BodyMeasurement": {
|
|
57
|
+
"fields": {
|
|
58
|
+
"bodyFatPercent": "xsd:float",
|
|
59
|
+
"bodyWeightKg": "xsd:float",
|
|
60
|
+
"calories": "xsd:float",
|
|
61
|
+
"caloriesBurned": "xsd:float",
|
|
62
|
+
"carbGrams": "xsd:float",
|
|
63
|
+
"durationMinutes": "xsd:integer",
|
|
64
|
+
"fatGrams": "xsd:float",
|
|
65
|
+
"fiberGrams": "xsd:float",
|
|
66
|
+
"goalEnergy": "xsd:float",
|
|
67
|
+
"goalProtein": "xsd:float",
|
|
68
|
+
"mealType": "xsd:string",
|
|
69
|
+
"measurementDate": "xsd:date",
|
|
70
|
+
"muscleMassKg": "xsd:float",
|
|
71
|
+
"proteinGrams": "xsd:float",
|
|
72
|
+
"reps": "xsd:integer",
|
|
73
|
+
"sodiumMg": "xsd:float",
|
|
74
|
+
"sugarGrams": "xsd:float",
|
|
75
|
+
"weightKg": "xsd:float",
|
|
76
|
+
},
|
|
77
|
+
"ontology_class": "Observation",
|
|
78
|
+
},
|
|
79
|
+
"CalorieExpenditure": {
|
|
80
|
+
"fields": {
|
|
81
|
+
"bodyFatPercent": "xsd:float",
|
|
82
|
+
"bodyWeightKg": "xsd:float",
|
|
83
|
+
"calories": "xsd:float",
|
|
84
|
+
"caloriesBurned": "xsd:float",
|
|
85
|
+
"carbGrams": "xsd:float",
|
|
86
|
+
"durationMinutes": "xsd:integer",
|
|
87
|
+
"fatGrams": "xsd:float",
|
|
88
|
+
"fiberGrams": "xsd:float",
|
|
89
|
+
"goalEnergy": "xsd:float",
|
|
90
|
+
"goalProtein": "xsd:float",
|
|
91
|
+
"mealType": "xsd:string",
|
|
92
|
+
"measurementDate": "xsd:date",
|
|
93
|
+
"muscleMassKg": "xsd:float",
|
|
94
|
+
"proteinGrams": "xsd:float",
|
|
95
|
+
"reps": "xsd:integer",
|
|
96
|
+
"sodiumMg": "xsd:float",
|
|
97
|
+
"sugarGrams": "xsd:float",
|
|
98
|
+
"weightKg": "xsd:float",
|
|
99
|
+
},
|
|
100
|
+
"ontology_class": "Observation",
|
|
101
|
+
},
|
|
102
|
+
"DailyNutrientSummary": {
|
|
103
|
+
"fields": {
|
|
104
|
+
"bodyFatPercent": "xsd:float",
|
|
105
|
+
"bodyWeightKg": "xsd:float",
|
|
106
|
+
"calories": "xsd:float",
|
|
107
|
+
"caloriesBurned": "xsd:float",
|
|
108
|
+
"carbGrams": "xsd:float",
|
|
109
|
+
"durationMinutes": "xsd:integer",
|
|
110
|
+
"fatGrams": "xsd:float",
|
|
111
|
+
"fiberGrams": "xsd:float",
|
|
112
|
+
"goalEnergy": "xsd:float",
|
|
113
|
+
"goalProtein": "xsd:float",
|
|
114
|
+
"mealType": "xsd:string",
|
|
115
|
+
"measurementDate": "xsd:date",
|
|
116
|
+
"muscleMassKg": "xsd:float",
|
|
117
|
+
"proteinGrams": "xsd:float",
|
|
118
|
+
"reps": "xsd:integer",
|
|
119
|
+
"sodiumMg": "xsd:float",
|
|
120
|
+
"sugarGrams": "xsd:float",
|
|
121
|
+
"weightKg": "xsd:float",
|
|
122
|
+
},
|
|
123
|
+
"ontology_class": "NutrientProfile",
|
|
124
|
+
},
|
|
125
|
+
"Exercise": {
|
|
126
|
+
"fields": {
|
|
127
|
+
"bodyFatPercent": "xsd:float",
|
|
128
|
+
"bodyWeightKg": "xsd:float",
|
|
129
|
+
"calories": "xsd:float",
|
|
130
|
+
"caloriesBurned": "xsd:float",
|
|
131
|
+
"carbGrams": "xsd:float",
|
|
132
|
+
"durationMinutes": "xsd:integer",
|
|
133
|
+
"fatGrams": "xsd:float",
|
|
134
|
+
"fiberGrams": "xsd:float",
|
|
135
|
+
"goalEnergy": "xsd:float",
|
|
136
|
+
"goalProtein": "xsd:float",
|
|
137
|
+
"mealType": "xsd:string",
|
|
138
|
+
"measurementDate": "xsd:date",
|
|
139
|
+
"muscleMassKg": "xsd:float",
|
|
140
|
+
"proteinGrams": "xsd:float",
|
|
141
|
+
"reps": "xsd:integer",
|
|
142
|
+
"sodiumMg": "xsd:float",
|
|
143
|
+
"sugarGrams": "xsd:float",
|
|
144
|
+
"weightKg": "xsd:float",
|
|
145
|
+
},
|
|
146
|
+
"ontology_class": "Action",
|
|
147
|
+
},
|
|
148
|
+
"ExerciseSet": {
|
|
149
|
+
"fields": {
|
|
150
|
+
"bodyFatPercent": "xsd:float",
|
|
151
|
+
"bodyWeightKg": "xsd:float",
|
|
152
|
+
"calories": "xsd:float",
|
|
153
|
+
"caloriesBurned": "xsd:float",
|
|
154
|
+
"carbGrams": "xsd:float",
|
|
155
|
+
"durationMinutes": "xsd:integer",
|
|
156
|
+
"fatGrams": "xsd:float",
|
|
157
|
+
"fiberGrams": "xsd:float",
|
|
158
|
+
"goalEnergy": "xsd:float",
|
|
159
|
+
"goalProtein": "xsd:float",
|
|
160
|
+
"mealType": "xsd:string",
|
|
161
|
+
"measurementDate": "xsd:date",
|
|
162
|
+
"muscleMassKg": "xsd:float",
|
|
163
|
+
"proteinGrams": "xsd:float",
|
|
164
|
+
"reps": "xsd:integer",
|
|
165
|
+
"sodiumMg": "xsd:float",
|
|
166
|
+
"sugarGrams": "xsd:float",
|
|
167
|
+
"weightKg": "xsd:float",
|
|
168
|
+
},
|
|
169
|
+
"ontology_class": "BFO_0000015",
|
|
170
|
+
},
|
|
171
|
+
"FitnessGoal": {
|
|
172
|
+
"fields": {
|
|
173
|
+
"bodyFatPercent": "xsd:float",
|
|
174
|
+
"bodyWeightKg": "xsd:float",
|
|
175
|
+
"calories": "xsd:float",
|
|
176
|
+
"caloriesBurned": "xsd:float",
|
|
177
|
+
"carbGrams": "xsd:float",
|
|
178
|
+
"durationMinutes": "xsd:integer",
|
|
179
|
+
"fatGrams": "xsd:float",
|
|
180
|
+
"fiberGrams": "xsd:float",
|
|
181
|
+
"goalEnergy": "xsd:float",
|
|
182
|
+
"goalProtein": "xsd:float",
|
|
183
|
+
"mealType": "xsd:string",
|
|
184
|
+
"measurementDate": "xsd:date",
|
|
185
|
+
"muscleMassKg": "xsd:float",
|
|
186
|
+
"proteinGrams": "xsd:float",
|
|
187
|
+
"reps": "xsd:integer",
|
|
188
|
+
"sodiumMg": "xsd:float",
|
|
189
|
+
"sugarGrams": "xsd:float",
|
|
190
|
+
"weightKg": "xsd:float",
|
|
191
|
+
},
|
|
192
|
+
"ontology_class": "Goal",
|
|
193
|
+
},
|
|
194
|
+
"Ingredient": {
|
|
195
|
+
"fields": {
|
|
196
|
+
"bodyFatPercent": "xsd:float",
|
|
197
|
+
"bodyWeightKg": "xsd:float",
|
|
198
|
+
"calories": "xsd:float",
|
|
199
|
+
"caloriesBurned": "xsd:float",
|
|
200
|
+
"carbGrams": "xsd:float",
|
|
201
|
+
"durationMinutes": "xsd:integer",
|
|
202
|
+
"fatGrams": "xsd:float",
|
|
203
|
+
"fiberGrams": "xsd:float",
|
|
204
|
+
"goalEnergy": "xsd:float",
|
|
205
|
+
"goalProtein": "xsd:float",
|
|
206
|
+
"mealType": "xsd:string",
|
|
207
|
+
"measurementDate": "xsd:date",
|
|
208
|
+
"muscleMassKg": "xsd:float",
|
|
209
|
+
"proteinGrams": "xsd:float",
|
|
210
|
+
"reps": "xsd:integer",
|
|
211
|
+
"sodiumMg": "xsd:float",
|
|
212
|
+
"sugarGrams": "xsd:float",
|
|
213
|
+
"weightKg": "xsd:float",
|
|
214
|
+
},
|
|
215
|
+
"ontology_class": "BFO_0000004",
|
|
216
|
+
},
|
|
217
|
+
"MealEntry": {
|
|
218
|
+
"fields": {
|
|
219
|
+
"bodyFatPercent": "xsd:float",
|
|
220
|
+
"bodyWeightKg": "xsd:float",
|
|
221
|
+
"calories": "xsd:float",
|
|
222
|
+
"caloriesBurned": "xsd:float",
|
|
223
|
+
"carbGrams": "xsd:float",
|
|
224
|
+
"durationMinutes": "xsd:integer",
|
|
225
|
+
"fatGrams": "xsd:float",
|
|
226
|
+
"fiberGrams": "xsd:float",
|
|
227
|
+
"goalEnergy": "xsd:float",
|
|
228
|
+
"goalProtein": "xsd:float",
|
|
229
|
+
"mealType": "xsd:string",
|
|
230
|
+
"measurementDate": "xsd:date",
|
|
231
|
+
"muscleMassKg": "xsd:float",
|
|
232
|
+
"proteinGrams": "xsd:float",
|
|
233
|
+
"reps": "xsd:integer",
|
|
234
|
+
"sodiumMg": "xsd:float",
|
|
235
|
+
"sugarGrams": "xsd:float",
|
|
236
|
+
"weightKg": "xsd:float",
|
|
237
|
+
},
|
|
238
|
+
"ontology_class": "BFO_0000015",
|
|
239
|
+
},
|
|
240
|
+
"MealPlan": {
|
|
241
|
+
"fields": {
|
|
242
|
+
"bodyFatPercent": "xsd:float",
|
|
243
|
+
"bodyWeightKg": "xsd:float",
|
|
244
|
+
"calories": "xsd:float",
|
|
245
|
+
"caloriesBurned": "xsd:float",
|
|
246
|
+
"carbGrams": "xsd:float",
|
|
247
|
+
"durationMinutes": "xsd:integer",
|
|
248
|
+
"fatGrams": "xsd:float",
|
|
249
|
+
"fiberGrams": "xsd:float",
|
|
250
|
+
"goalEnergy": "xsd:float",
|
|
251
|
+
"goalProtein": "xsd:float",
|
|
252
|
+
"mealType": "xsd:string",
|
|
253
|
+
"measurementDate": "xsd:date",
|
|
254
|
+
"muscleMassKg": "xsd:float",
|
|
255
|
+
"proteinGrams": "xsd:float",
|
|
256
|
+
"reps": "xsd:integer",
|
|
257
|
+
"sodiumMg": "xsd:float",
|
|
258
|
+
"sugarGrams": "xsd:float",
|
|
259
|
+
"weightKg": "xsd:float",
|
|
260
|
+
},
|
|
261
|
+
"ontology_class": "Procedure",
|
|
262
|
+
},
|
|
263
|
+
"NutrientProfile": {
|
|
264
|
+
"fields": {
|
|
265
|
+
"bodyFatPercent": "xsd:float",
|
|
266
|
+
"bodyWeightKg": "xsd:float",
|
|
267
|
+
"calories": "xsd:float",
|
|
268
|
+
"caloriesBurned": "xsd:float",
|
|
269
|
+
"carbGrams": "xsd:float",
|
|
270
|
+
"durationMinutes": "xsd:integer",
|
|
271
|
+
"fatGrams": "xsd:float",
|
|
272
|
+
"fiberGrams": "xsd:float",
|
|
273
|
+
"goalEnergy": "xsd:float",
|
|
274
|
+
"goalProtein": "xsd:float",
|
|
275
|
+
"mealType": "xsd:string",
|
|
276
|
+
"measurementDate": "xsd:date",
|
|
277
|
+
"muscleMassKg": "xsd:float",
|
|
278
|
+
"proteinGrams": "xsd:float",
|
|
279
|
+
"reps": "xsd:integer",
|
|
280
|
+
"sodiumMg": "xsd:float",
|
|
281
|
+
"sugarGrams": "xsd:float",
|
|
282
|
+
"weightKg": "xsd:float",
|
|
283
|
+
},
|
|
284
|
+
"ontology_class": "Observation",
|
|
285
|
+
},
|
|
286
|
+
"NutritionPlan": {
|
|
287
|
+
"fields": {
|
|
288
|
+
"bodyFatPercent": "xsd:float",
|
|
289
|
+
"bodyWeightKg": "xsd:float",
|
|
290
|
+
"calories": "xsd:float",
|
|
291
|
+
"caloriesBurned": "xsd:float",
|
|
292
|
+
"carbGrams": "xsd:float",
|
|
293
|
+
"durationMinutes": "xsd:integer",
|
|
294
|
+
"fatGrams": "xsd:float",
|
|
295
|
+
"fiberGrams": "xsd:float",
|
|
296
|
+
"goalEnergy": "xsd:float",
|
|
297
|
+
"goalProtein": "xsd:float",
|
|
298
|
+
"mealType": "xsd:string",
|
|
299
|
+
"measurementDate": "xsd:date",
|
|
300
|
+
"muscleMassKg": "xsd:float",
|
|
301
|
+
"proteinGrams": "xsd:float",
|
|
302
|
+
"reps": "xsd:integer",
|
|
303
|
+
"sodiumMg": "xsd:float",
|
|
304
|
+
"sugarGrams": "xsd:float",
|
|
305
|
+
"weightKg": "xsd:float",
|
|
306
|
+
},
|
|
307
|
+
"ontology_class": "Procedure",
|
|
308
|
+
},
|
|
309
|
+
"NutritionTarget": {
|
|
310
|
+
"fields": {
|
|
311
|
+
"bodyFatPercent": "xsd:float",
|
|
312
|
+
"bodyWeightKg": "xsd:float",
|
|
313
|
+
"calories": "xsd:float",
|
|
314
|
+
"caloriesBurned": "xsd:float",
|
|
315
|
+
"carbGrams": "xsd:float",
|
|
316
|
+
"durationMinutes": "xsd:integer",
|
|
317
|
+
"fatGrams": "xsd:float",
|
|
318
|
+
"fiberGrams": "xsd:float",
|
|
319
|
+
"goalEnergy": "xsd:float",
|
|
320
|
+
"goalProtein": "xsd:float",
|
|
321
|
+
"mealType": "xsd:string",
|
|
322
|
+
"measurementDate": "xsd:date",
|
|
323
|
+
"muscleMassKg": "xsd:float",
|
|
324
|
+
"proteinGrams": "xsd:float",
|
|
325
|
+
"reps": "xsd:integer",
|
|
326
|
+
"sodiumMg": "xsd:float",
|
|
327
|
+
"sugarGrams": "xsd:float",
|
|
328
|
+
"weightKg": "xsd:float",
|
|
329
|
+
},
|
|
330
|
+
"ontology_class": "Goal",
|
|
331
|
+
},
|
|
332
|
+
"Recipe": {
|
|
333
|
+
"fields": {
|
|
334
|
+
"bodyFatPercent": "xsd:float",
|
|
335
|
+
"bodyWeightKg": "xsd:float",
|
|
336
|
+
"calories": "xsd:float",
|
|
337
|
+
"caloriesBurned": "xsd:float",
|
|
338
|
+
"carbGrams": "xsd:float",
|
|
339
|
+
"durationMinutes": "xsd:integer",
|
|
340
|
+
"fatGrams": "xsd:float",
|
|
341
|
+
"fiberGrams": "xsd:float",
|
|
342
|
+
"goalEnergy": "xsd:float",
|
|
343
|
+
"goalProtein": "xsd:float",
|
|
344
|
+
"mealType": "xsd:string",
|
|
345
|
+
"measurementDate": "xsd:date",
|
|
346
|
+
"muscleMassKg": "xsd:float",
|
|
347
|
+
"proteinGrams": "xsd:float",
|
|
348
|
+
"reps": "xsd:integer",
|
|
349
|
+
"sodiumMg": "xsd:float",
|
|
350
|
+
"sugarGrams": "xsd:float",
|
|
351
|
+
"weightKg": "xsd:float",
|
|
352
|
+
},
|
|
353
|
+
"ontology_class": "CreativeWork",
|
|
354
|
+
},
|
|
355
|
+
"ShoppingList": {
|
|
356
|
+
"fields": {
|
|
357
|
+
"bodyFatPercent": "xsd:float",
|
|
358
|
+
"bodyWeightKg": "xsd:float",
|
|
359
|
+
"calories": "xsd:float",
|
|
360
|
+
"caloriesBurned": "xsd:float",
|
|
361
|
+
"carbGrams": "xsd:float",
|
|
362
|
+
"durationMinutes": "xsd:integer",
|
|
363
|
+
"fatGrams": "xsd:float",
|
|
364
|
+
"fiberGrams": "xsd:float",
|
|
365
|
+
"goalEnergy": "xsd:float",
|
|
366
|
+
"goalProtein": "xsd:float",
|
|
367
|
+
"mealType": "xsd:string",
|
|
368
|
+
"measurementDate": "xsd:date",
|
|
369
|
+
"muscleMassKg": "xsd:float",
|
|
370
|
+
"proteinGrams": "xsd:float",
|
|
371
|
+
"reps": "xsd:integer",
|
|
372
|
+
"sodiumMg": "xsd:float",
|
|
373
|
+
"sugarGrams": "xsd:float",
|
|
374
|
+
"weightKg": "xsd:float",
|
|
375
|
+
},
|
|
376
|
+
"ontology_class": "Dataset",
|
|
377
|
+
},
|
|
378
|
+
"WellnessScore": {
|
|
379
|
+
"fields": {
|
|
380
|
+
"bodyFatPercent": "xsd:float",
|
|
381
|
+
"bodyWeightKg": "xsd:float",
|
|
382
|
+
"calories": "xsd:float",
|
|
383
|
+
"caloriesBurned": "xsd:float",
|
|
384
|
+
"carbGrams": "xsd:float",
|
|
385
|
+
"durationMinutes": "xsd:integer",
|
|
386
|
+
"fatGrams": "xsd:float",
|
|
387
|
+
"fiberGrams": "xsd:float",
|
|
388
|
+
"goalEnergy": "xsd:float",
|
|
389
|
+
"goalProtein": "xsd:float",
|
|
390
|
+
"mealType": "xsd:string",
|
|
391
|
+
"measurementDate": "xsd:date",
|
|
392
|
+
"muscleMassKg": "xsd:float",
|
|
393
|
+
"proteinGrams": "xsd:float",
|
|
394
|
+
"reps": "xsd:integer",
|
|
395
|
+
"sodiumMg": "xsd:float",
|
|
396
|
+
"sugarGrams": "xsd:float",
|
|
397
|
+
"weightKg": "xsd:float",
|
|
398
|
+
},
|
|
399
|
+
"ontology_class": "OutcomeEvaluation",
|
|
400
|
+
},
|
|
401
|
+
"WorkoutRoutine": {
|
|
402
|
+
"fields": {
|
|
403
|
+
"bodyFatPercent": "xsd:float",
|
|
404
|
+
"bodyWeightKg": "xsd:float",
|
|
405
|
+
"calories": "xsd:float",
|
|
406
|
+
"caloriesBurned": "xsd:float",
|
|
407
|
+
"carbGrams": "xsd:float",
|
|
408
|
+
"durationMinutes": "xsd:integer",
|
|
409
|
+
"fatGrams": "xsd:float",
|
|
410
|
+
"fiberGrams": "xsd:float",
|
|
411
|
+
"goalEnergy": "xsd:float",
|
|
412
|
+
"goalProtein": "xsd:float",
|
|
413
|
+
"mealType": "xsd:string",
|
|
414
|
+
"measurementDate": "xsd:date",
|
|
415
|
+
"muscleMassKg": "xsd:float",
|
|
416
|
+
"proteinGrams": "xsd:float",
|
|
417
|
+
"reps": "xsd:integer",
|
|
418
|
+
"sodiumMg": "xsd:float",
|
|
419
|
+
"sugarGrams": "xsd:float",
|
|
420
|
+
"weightKg": "xsd:float",
|
|
421
|
+
},
|
|
422
|
+
"ontology_class": "Procedure",
|
|
423
|
+
},
|
|
424
|
+
"WorkoutSession": {
|
|
425
|
+
"fields": {
|
|
426
|
+
"bodyFatPercent": "xsd:float",
|
|
427
|
+
"bodyWeightKg": "xsd:float",
|
|
428
|
+
"calories": "xsd:float",
|
|
429
|
+
"caloriesBurned": "xsd:float",
|
|
430
|
+
"carbGrams": "xsd:float",
|
|
431
|
+
"durationMinutes": "xsd:integer",
|
|
432
|
+
"fatGrams": "xsd:float",
|
|
433
|
+
"fiberGrams": "xsd:float",
|
|
434
|
+
"goalEnergy": "xsd:float",
|
|
435
|
+
"goalProtein": "xsd:float",
|
|
436
|
+
"mealType": "xsd:string",
|
|
437
|
+
"measurementDate": "xsd:date",
|
|
438
|
+
"muscleMassKg": "xsd:float",
|
|
439
|
+
"proteinGrams": "xsd:float",
|
|
440
|
+
"reps": "xsd:integer",
|
|
441
|
+
"sodiumMg": "xsd:float",
|
|
442
|
+
"sugarGrams": "xsd:float",
|
|
443
|
+
"weightKg": "xsd:float",
|
|
444
|
+
},
|
|
445
|
+
"ontology_class": "BFO_0000015",
|
|
446
|
+
},
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
RESOURCES = (
|
|
450
|
+
{
|
|
451
|
+
"id_prefix": "bodymeasurement",
|
|
452
|
+
"label": "Body Measurement",
|
|
453
|
+
"name": "BodyMeasurement",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"id_prefix": "calorieexpenditure",
|
|
457
|
+
"label": "Calorie Expenditure",
|
|
458
|
+
"name": "CalorieExpenditure",
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"id_prefix": "dailynutrientsummary",
|
|
462
|
+
"label": "Daily Nutrient Summary",
|
|
463
|
+
"name": "DailyNutrientSummary",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"id_prefix": "exercise",
|
|
467
|
+
"label": "Exercise",
|
|
468
|
+
"name": "Exercise",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id_prefix": "exerciseset",
|
|
472
|
+
"label": "Exercise Set",
|
|
473
|
+
"name": "ExerciseSet",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id_prefix": "fitnessgoal",
|
|
477
|
+
"label": "Fitness Goal",
|
|
478
|
+
"name": "FitnessGoal",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"id_prefix": "ingredient",
|
|
482
|
+
"label": "Ingredient",
|
|
483
|
+
"name": "Ingredient",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id_prefix": "mealentry",
|
|
487
|
+
"label": "Meal Entry",
|
|
488
|
+
"name": "MealEntry",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"id_prefix": "mealplan",
|
|
492
|
+
"label": "Meal Plan",
|
|
493
|
+
"name": "MealPlan",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id_prefix": "nutrientprofile",
|
|
497
|
+
"label": "Nutrient Profile",
|
|
498
|
+
"name": "NutrientProfile",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"id_prefix": "nutritionplan",
|
|
502
|
+
"label": "Nutrition Plan",
|
|
503
|
+
"name": "NutritionPlan",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"id_prefix": "nutritiontarget",
|
|
507
|
+
"label": "Nutrition Target",
|
|
508
|
+
"name": "NutritionTarget",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"id_prefix": "recipe",
|
|
512
|
+
"label": "Recipe",
|
|
513
|
+
"name": "Recipe",
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"id_prefix": "shoppinglist",
|
|
517
|
+
"label": "Shopping List",
|
|
518
|
+
"name": "ShoppingList",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id_prefix": "wellnessscore",
|
|
522
|
+
"label": "Wellness Score",
|
|
523
|
+
"name": "WellnessScore",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"id_prefix": "workoutroutine",
|
|
527
|
+
"label": "Workout Routine",
|
|
528
|
+
"name": "WorkoutRoutine",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"id_prefix": "workoutsession",
|
|
532
|
+
"label": "Workout Session",
|
|
533
|
+
"name": "WorkoutSession",
|
|
534
|
+
},
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
def declaration() -> IngestSourceDeclaration:
|
|
539
|
+
"""The declaration the server assembles from this module."""
|
|
540
|
+
specs = []
|
|
541
|
+
for item in SOURCES:
|
|
542
|
+
for entry in item["connector_sources"]:
|
|
543
|
+
body = {k: v for k, v in entry.items() if k not in ("tool", "mapping")}
|
|
544
|
+
specs.append(
|
|
545
|
+
IngestSourceSpec.model_validate({**body, "tools": (entry["tool"],)})
|
|
546
|
+
)
|
|
547
|
+
return IngestSourceDeclaration.model_validate(
|
|
548
|
+
{
|
|
549
|
+
"connector": CONNECTOR,
|
|
550
|
+
"sources": specs,
|
|
551
|
+
"schema_mappings": SCHEMA_MAPPINGS,
|
|
552
|
+
"resources": RESOURCES,
|
|
553
|
+
}
|
|
554
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Connector package; the data sources are declared in ``wger_agent.connector_sources``."""
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_version": "arbora.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"connector_manifest.yml": "ec42d9e8395c783f9e6edf26290f27aa51d69c134b94d848d98d21305926b904",
|
|
5
|
-
"wger_agent/connectors/mcp_source_presets.json": "e220cd80f8422da4a689d57996b7f2776796cf5e88508d25ecc926f15603ac9f",
|
|
6
|
-
"wger_agent/connectors/tool_schema_fingerprints.json": "063fece7fbf61364829f4be96f44e9edbe81d3da336408efd4704bcec0e0127f",
|
|
7
4
|
"wger_agent/ontology/fixtures/records.json": "f6c8c8d2812681be6a26dacebcddb2cb8899e6ce3538012013ef52db34e256f2",
|
|
8
5
|
"wger_agent/ontology/mappings/source.yaml": "a40c7cecb2d747f8d5fadad9dbf1360a2322d7b85ae864e41f6e5f3e3ed955fe",
|
|
9
6
|
"wger_agent/ontology/migrations/manifest.json": "d74f82f86b1e6f8bf7b9a3a033dcfbad422933ca21f4779b9a4073f0c89fc77f",
|
|
@@ -212,8 +212,8 @@ balance, training load vs. recovery, and longitudinal body composition
|
|
|
212
212
|
trends.
|
|
213
213
|
|
|
214
214
|
Standards alignment: schema:Recipe, schema:NutritionInformation,
|
|
215
|
-
schema:ExerciseAction, W3C PROV-O for temporal provenance."""
|
|
216
|
-
|
|
215
|
+
schema:ExerciseAction, W3C PROV-O for temporal provenance.""" .
|
|
216
|
+
|
|
217
217
|
|
|
218
218
|
:FitnessGoal a owl:Class ;
|
|
219
219
|
rdfs:label "Fitness Goal" ;
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
"schema_version": "1.0",
|
|
5
5
|
"prompt_version": "0.1.0",
|
|
6
6
|
"source": "wger-agent",
|
|
7
|
-
"extends": "agent-connector-sdk:base",
|
|
8
|
-
"compose": "append",
|
|
9
7
|
"description": "wger fitness & wellness specialist: workout routines, exercise programming, nutrition planning, and body-progress tracking over the wger-agent MCP server, mapped into the knowledge graph.",
|
|
10
8
|
"metadata": {
|
|
11
9
|
"topic": "Fitness & Wellness Coaching",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wger-agent
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Wger Workout Manager — exercise database, workout routines, nutrition plans, body measurements, and progress tracking.
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,12 +12,12 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: <3.15,>=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
15
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
16
16
|
Requires-Dist: requests>=2.34.2
|
|
17
17
|
Provides-Extra: mcp
|
|
18
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
18
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
19
19
|
Provides-Extra: all
|
|
20
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
20
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "all"
|
|
21
21
|
Provides-Extra: test
|
|
22
22
|
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
23
23
|
Requires-Dist: pytest>=9.1.1; extra == "test"
|
|
@@ -47,7 +47,7 @@ Dynamic: license-file
|
|
|
47
47
|

|
|
48
48
|

|
|
49
49
|
|
|
50
|
-
*Version: 2.2.
|
|
50
|
+
*Version: 2.2.4*
|
|
51
51
|
|
|
52
52
|
> **Documentation** — Installation, deployment, usage across the MCP, API, and agent
|
|
53
53
|
> interfaces, and guidance for provisioning the Wger Workout Manager platform are
|
|
@@ -9,6 +9,7 @@ scripts/verify_api_integration.py
|
|
|
9
9
|
tests/conftest.py
|
|
10
10
|
tests/test_bug_cx_046_ctx_await.py
|
|
11
11
|
tests/test_coverage_booster.py
|
|
12
|
+
tests/test_default_content_surfaces.py
|
|
12
13
|
tests/test_fleet_name.py
|
|
13
14
|
tests/test_init.py
|
|
14
15
|
tests/test_init_dynamics.py
|
|
@@ -17,6 +18,7 @@ wger_agent/__init__.py
|
|
|
17
18
|
wger_agent/__main__.py
|
|
18
19
|
wger_agent/api_client.py
|
|
19
20
|
wger_agent/auth.py
|
|
21
|
+
wger_agent/connector_sources.py
|
|
20
22
|
wger_agent/kg_ingest.py
|
|
21
23
|
wger_agent/mcp_config.json
|
|
22
24
|
wger_agent/mcp_server.py
|
|
@@ -36,8 +38,6 @@ wger_agent/api/api_client_routine.py
|
|
|
36
38
|
wger_agent/api/api_client_user_system.py
|
|
37
39
|
wger_agent/api/api_client_workout_sessions.py
|
|
38
40
|
wger_agent/connectors/__init__.py
|
|
39
|
-
wger_agent/connectors/mcp_source_presets.json
|
|
40
|
-
wger_agent/connectors/tool_schema_fingerprints.json
|
|
41
41
|
wger_agent/mcp/__init__.py
|
|
42
42
|
wger_agent/mcp/mcp_server.py
|
|
43
43
|
wger_agent/mcp/tools.py
|
|
@@ -10,8 +10,5 @@ wger-agent = wger_agent.prompts
|
|
|
10
10
|
[agent_connector_sdk.skill_providers]
|
|
11
11
|
wger-agent = wger_agent.skills
|
|
12
12
|
|
|
13
|
-
[agent_connector_sdk.source_connector_providers]
|
|
14
|
-
wger-agent = wger_agent.connectors
|
|
15
|
-
|
|
16
13
|
[console_scripts]
|
|
17
14
|
wger-mcp = wger_agent.mcp_server:mcp_server
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
2
|
+
requests>=2.34.2
|
|
3
|
+
|
|
4
|
+
[all]
|
|
5
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
6
|
+
|
|
7
|
+
[mcp]
|
|
8
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
9
|
+
|
|
10
|
+
[test]
|
|
11
|
+
pytest-xdist>=3.8.0
|
|
12
|
+
pytest>=9.1.1
|
|
13
|
+
pytest-asyncio>=1.4.0
|
|
14
|
+
pytest-cov>=7.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
agent-connector-sdk[mcp]>=0.3.0,<1.0.0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"""wger source-connector contribution (CONCEPT:AU-KG.ingest.mcp-tool-connector).
|
|
2
|
-
|
|
3
|
-
Data-only subpackage: it carries ``mcp_source_presets.json`` (Tier-1 ``mcp_tool``
|
|
4
|
-
source presets that sync wger wellness data into the KG via the wger-agent MCP
|
|
5
|
-
server) which the Arbora hub discovers via the
|
|
6
|
-
``agent_connector_sdk.source_connector_providers`` entry-point. It holds no business
|
|
7
|
-
logic and no heavy imports so the hub can resolve it cheaply.
|
|
8
|
-
"""
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Tier-1 mcp_tool source presets for wger-agent (AU-KG.ingest.mcp-tool-connector). Syncs wger wellness data into the KG as typed documents via the wger-agent MCP server. Contributed presets win over the central MCP_TOOL_PRESETS.",
|
|
3
|
-
"wger-exercises": {
|
|
4
|
-
"server": "wger-mcp",
|
|
5
|
-
"tool": "wger_get_exercises",
|
|
6
|
-
"records_path": "results",
|
|
7
|
-
"id_field": "id",
|
|
8
|
-
"title_field": "name",
|
|
9
|
-
"text_field": "description",
|
|
10
|
-
"updated_field": "last_update",
|
|
11
|
-
"pagination": "offset",
|
|
12
|
-
"page_kind": "offset",
|
|
13
|
-
"page_param": "offset",
|
|
14
|
-
"page_size_param": "limit",
|
|
15
|
-
"doc_type": "exercise",
|
|
16
|
-
"params_style": "args"
|
|
17
|
-
},
|
|
18
|
-
"wger-nutrition-plans": {
|
|
19
|
-
"server": "wger-mcp",
|
|
20
|
-
"tool": "wger_get_nutrition_plans",
|
|
21
|
-
"records_path": "results",
|
|
22
|
-
"id_field": "id",
|
|
23
|
-
"title_field": "description",
|
|
24
|
-
"text_field": "description",
|
|
25
|
-
"updated_field": "creation_date",
|
|
26
|
-
"pagination": "offset",
|
|
27
|
-
"page_kind": "offset",
|
|
28
|
-
"page_param": "offset",
|
|
29
|
-
"page_size_param": "limit",
|
|
30
|
-
"doc_type": "nutrition_plan",
|
|
31
|
-
"params_style": "args"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"algorithm": "agent-connector-sdk:mcp-tool-contract-compat:v2",
|
|
3
|
-
"connector": "wger-mcp",
|
|
4
|
-
"schema_version": "1",
|
|
5
|
-
"tools": {
|
|
6
|
-
"wger_get_exercises": "f755debbe50137f56a3ab4df927cec9b99fd17dab5a11509ea87edf66eda38e4",
|
|
7
|
-
"wger_get_nutrition_plans": "e65b76b3fc27ff55186ce1e0cbe7536ccff11a24fa9def490e4713986612bd1e"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.3.11
|
|
2
|
-
requests>=2.34.2
|
|
3
|
-
|
|
4
|
-
[all]
|
|
5
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.3.11
|
|
6
|
-
|
|
7
|
-
[mcp]
|
|
8
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.3.11
|
|
9
|
-
|
|
10
|
-
[test]
|
|
11
|
-
pytest-xdist>=3.8.0
|
|
12
|
-
pytest>=9.1.1
|
|
13
|
-
pytest-asyncio>=1.4.0
|
|
14
|
-
pytest-cov>=7.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/api_api.html.md
RENAMED
|
File without changes
|
|
File without changes
|
{wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/changelog.html.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-docs/reference/en_latest.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-operations/agents/openai.yaml
RENAMED
|
File without changes
|
{wger_agent-2.2.2 → wger_agent-2.2.4}/wger_agent/skills/wger-agent-operations/references/catalog.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|