Skip to content

5.1 JSON Description Examples

Mario Kušek edited this page Apr 24, 2018 · 2 revisions
  • Stationary Sensor :
{
  "@c": ".StationarySensor",
  "name": "Stationary 1",
  "description": [
    "This is stationary 1"
  ],
  "interworkingServiceURL": "https://www.example.com/Test1Platform",
  "locatedAt": {
    "@c": ".WGS84Location",
    "longitude": 5.349014,
    "latitude": 25.864716,
    "altitude": 35,
    "name": "SomeLocation",
    "description": [
    	"Secret location"
	]
  },
  "featureOfInterest": {
    "name": "Room1",
    "description": [
      "This is room 1"
    ],
    "hasProperty": [
      "temperature"
    ]
  },
  "observesProperty": [
    "temperature",
    "humidity"
  ]
}
  • Actuator :
{
  "@c": ".Actuator",
  "name": "Actuator 1",
  "description": [
    "This is actuator 1"
  ],
  "services": null,
  "capabilites": [
    {
      "parameters": [
        {
          "name": "inputParam1",
          "mandatory": true,
          "restrictions": [
            {
              "@c": ".RangeRestriction",
              "min": 2,
              "max": 10
            }
          ],
          "datatype": {
            "@c": ".PrimitiveDatatype",
            "isArray": false,
            "baseDatatype": "http://www.w3.org/2001/XMLSchema#string"
          }
        }
      ],
      "effects": [
        {
          "actsOn": {
            "name": "Room1",
            "description": [
              "This is room 1"
            ],
            "hasProperty": [
              "temperature"
            ]
          },
          "affects": [
            "temperature",
            "humidity"
          ]
        }
      ]
    }
  ],
  "locatedAt": {
    "@c": ".WGS84Location",
    "longitude": 2.349014,
    "latitude": 48.864716,
    "altitude": 15,
    "name": "Paris",
    "description": [
      "This is paris"
    ]
  },
  "interworkingServiceURL": "https://www.example.com/Test1Platform"
}
  • Service :
{
  "@c": ".Service",
  "name": "Service 1",
  "description": [
    "This is service 1"
  ],
  "interworkingServiceURL": "https://www.example.com/Test1Platform",
  "name": "service1Name",
  "resultType": {
    "@c": ".RdfsDatatype",
    "array": false,
    "isArray": false,
    "datatypeName": "http://www.w3.org/2001/XMLSchema#string"
  },
  "parameters": [
    {
      "name": "inputParam1",
      "mandatory": true,
      "restrictions": [
        {
          "@c": ".RangeRestriction",
          "min": 2,
          "max": 10
        }
      ],
      "datatype": {
        "@c": ".PrimitiveDatatype",
        "isArray": false,
        "baseDatatype": "http://www.w3.org/2001/XMLSchema#string"
      }
    }
  ]
}
  • Mobile Sensor :
{
  "@c": ".MobileSensor",
  "name": "Mobile 1",
  "description": [
    "This is mobile 1"
  ],
  "interworkingServiceURL": "https://www.example.com/Test1Platform",
  "locatedAt": {
    "@c": ".WGS84Location",
    "longitude": 2.349014,
    "latitude": 48.864716,
    "altitude": 15,
    "name": "Paris",
    "description": [
      "This is paris"
    ]
  },
  "services": null,
  "observesProperty": [
    "temperature"
  ]
}

Getting Started
Migration to 3.0.0
Migration to Docker

  1. Preparation steps
    1.1. Register user and configure platform in symbIoTe Core
    1.2. Installation of required tools for symbIoTe platform components
    1.3. Downloading jars
    1.4. Downloading sources
  2. Configuring and starting components
    2.1. Configuration of NGINX
    2.2. Starting third party tools that are prerequisite for symbIoTe
    2.3. Starting (generic) symbIoTe Cloud components
    2.4. Configuration of cloud components
    2.4.1. Starting symbIoTe Cloud components
    2.5. Setting up the Platform Authentication and Authorization Manager (PAAM)
    2.6. Starting Registration Handler and resource management
    2.7. Set up of Resource Access Proxy
    2.8. Manage resources
    2.9. Set up of the Monitoring component
    2.10. Other configuration topics
  3. Test integrated resource
    3.1. Security
    3.2. Search for resources
    3.3. Obtaining resource access URL
    3.4. Accessing the resource and actuating and invoking service for default (dummy) resources
  4. Creating RAP plugin
    4.1. Customizing internal RAP plugin
    4.2. Using RAP plugin starter
    4.3. Creating RAP plugin in other languages
  5. Resource Description Examples
    5.1. JSON Description Examples
    5.2. RDF Description Examples
  6. Preparation for L2 compliance
  7. Configuring and starting components for L2
    7.1. Starting Federation Manager
    7.2. Starting Subscription Manager
    7.3. Starting Platform Registry
    7.4. Starting Trust Manager
    7.5. Starting Bartering And Trading
    7.6. Starting SLA Manager
    7.7. Create a federation
    7.8. Manage resources in L2
    7.9. Register Subscription
  8. Test Integrated L2 Resources
  9. Developing symbIoTe enabled apps
Clone this wiki locally