Loading...
Loading...
FIWARE Orion Context Broker (NGSIv2) からエンティティ情報を読み取り専用で取得する。 データ連携基盤・都市OS・スマートシティ基盤・センサーデータ・IoTプラットフォームへの GET クエリ、エンティティ一覧・件数確認、NGSIv2 API 調査が必要なときに能動的に使う。 Orion / NGSIv2 / Context Broker / エンティティ取得 / q クエリ / 地理空間クエリ / Fiware-Service ヘッダー付き基盤アクセスの依頼で発火する。
npx skill4agent add kzkski/moc-skill moc-skillnpx skills add kzkski/moc-skill -a opencode -y
.agents/skills/moc-skill/scripts/setup-opencode.shsetup-opencode.sh/detailsnpx skills add ./path/to/moc-skill --list
npx skills add ./path/to/moc-skill -a opencode -y
.agents/skills/moc-skill/scripts/setup-opencode.shscripts/orion.shcurlendpoints.jsonnpx skills addmoc-skillscripts/orion.sh.agents/skills/moc-skill/scripts/orion.sh.claude/skills/moc-skill/scripts/orion.sh~/.config/opencode/skills/moc-skill/scripts/orion.sh**/moc-skill/scripts/orion.shORIONorion.shendpoints.jsonORION="/path/to/moc-skill/scripts/orion.sh"ORION_ENDPOINTS_FILEendpoints.jsonorion.shendpoints.jsontypesGET /v2/typesnoteservice=type=endpointsnoteentities"${ORION}" endpoints
"${ORION}" entities sagacity service=moc_sagacity limit=10
"${ORION}" count sagacity service=sagacity_topita type=TopitaPointUser
"${ORION}" entities yokosuka type=WeatherForecast limit=5
"${ORION}" entity yokosuka "forecast-001" attrs=location| コマンド | 説明 |
|---|---|
| カタログに登録された基盤名・URL・Fiware-Service 一覧・説明を表示 |
| |
| |
| |
| |
| |
<ep>endpoints.jsonSandboxsagacityyokosukaservice=NAMEservice=ORION_DRY_RUN=1ORION_DRY_RUN=1 "${ORION}" entities yokosuka type=WeatherForecastentitiesentitycountraw[k=v ...]raw| パラメータ | 用途 |
|---|---|
| Entity Type でフィルタ(例: |
| 属性条件(例: |
| 返却属性の限定(例: |
| エンティティ ID の正規表現(例: |
| 最大取得件数( |
| ページング開始位置 |
| ソート(例: |
| 地理空間クエリ(例: |
| レスポンス形式( |
/v2/typesentitiestype=count/v2/[A-Za-z0-9._:~-]+endpoints.jsonFiware-ServiceFiware-ServicePathFiware-Serviceservice=curljqendpoints.json{
"endpoints": {
"<名前>": {
"base_url": "https://orion.<自治体>.makeour.city",
"Fiware-Service": "単一ヘッダー値",
"Fiware-ServicePath": "ヘッダー値(不要なら空文字)",
"note": "説明"
},
"sagacity": {
"base_url": "https://orion.sagacity.makeour.city",
"Fiware-Service": [
{ "value": "moc_sagacity", "note": "MoC 佐賀" },
{ "value": "sagacity_topita", "note": "Topita" },
{ "value": "sagacity_ikunowa", "note": "保育園データ" }
],
"Fiware-ServicePath": "",
"note": "複数サービスを1エントリで管理"
}
}
}Fiware-ServicevalueFiware-ServicePathnoteFiware-ServicePath