@datafire/waag
v6.0.0
Published
DataFire integration for CitySDK Linked Data
Downloads
7
Readme
@datafire/waag
Client library for CitySDK Linked Data
Installation and Usage
npm install --save @datafire/waag
let waag = require('@datafire/waag').create();
.then(data => {
console.log(data);
});
Description
An API for the distribution and annotation of open data, for small cities and big metropolitan areas.
Actions
layers.get
Return all layers
waag.layers.get(null, context)
Input
This action has no parameters
Output
Output schema unknown
layers.post
Create new layer
waag.layers.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
layers.layer.delete
Delete a layer
waag.layers.layer.delete({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.get
Return single layer
waag.layers.layer.get({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.patch
Edit a layer
waag.layers.layer.patch({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.context.get
Return JSON-LD context of single layer
waag.layers.layer.context.get({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.context.put
Overwrite JSON-LD context of single layer
waag.layers.layer.context.put({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.fields.get
Return all fields of single layer
waag.layers.layer.fields.get({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.fields.post
Create new field for single layer
waag.layers.layer.fields.post({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.fields.field.delete
Delete a single field on single layer
waag.layers.layer.fields.field.delete({
"layer": "",
"field": ""
}, context)
Input
- input
object
- layer required
string
- field required
string
- layer required
Output
Output schema unknown
layers.layer.fields.field.get
Return single field of single layer
waag.layers.layer.fields.field.get({
"layer": "",
"field": ""
}, context)
Input
- input
object
- layer required
string
- field required
string
- layer required
Output
Output schema unknown
layers.layer.fields.field.patch
Edit single field on single layer
waag.layers.layer.fields.field.patch({
"layer": "",
"field": ""
}, context)
Input
- input
object
- layer required
string
- field required
string
- layer required
Output
Output schema unknown
layers.layer.fields.field.put
Overwrite single field on single layer
waag.layers.layer.fields.field.put({
"layer": "",
"field": ""
}, context)
Input
- input
object
- layer required
string
- field required
string
- layer required
Output
Output schema unknown
layers.layer.objects.delete
Delete all objects from a single layer
waag.layers.layer.objects.delete({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.objects.get
Return all objects with data on single layer
waag.layers.layer.objects.get({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.objects.patch
Edit one or more objects and data on single layer
waag.layers.layer.objects.patch({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.objects.post
Create one or more objects with data on single layer, or add data to existing objects (or a combination thereof)
waag.layers.layer.objects.post({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
layers.layer.objects.cdk_id.get
Return metadata of single layer about single object, e.g. the date the data was added/modified, etc.
waag.layers.layer.objects.cdk_id.get({
"layer": "",
"cdk_id": ""
}, context)
Input
- input
object
- layer required
string
- cdk_id required
string
- layer required
Output
Output schema unknown
layers.layer.owners.get
Return all owners associated with single layer
waag.layers.layer.owners.get({
"layer": ""
}, context)
Input
- input
object
- layer required
string
- layer required
Output
Output schema unknown
ngsi10.contextEntities.entity.get
Return single context entity
waag.ngsi10.contextEntities.entity.get({
"entity": ""
}, context)
Input
- input
object
- entity required
string
- entity required
Output
Output schema unknown
ngsi10.contextEntities.entity.attributes.put
Update attributes for single context entity
waag.ngsi10.contextEntities.entity.attributes.put({
"entity": ""
}, context)
Input
- input
object
- entity required
string
- entity required
Output
Output schema unknown
ngsi10.contextEntities.entity.attributes.attribute.get
Return single context entity attribute
waag.ngsi10.contextEntities.entity.attributes.attribute.get({
"entity": "",
"attribute": ""
}, context)
Input
- input
object
- entity required
string
- attribute required
string
- entity required
Output
Output schema unknown
ngsi10.contextEntityTypes.cetype.get
Return objects of particular type
waag.ngsi10.contextEntityTypes.cetype.get({
"cetype": ""
}, context)
Input
- input
object
- cetype required
string
- cetype required
Output
Output schema unknown
ngsi10.contextEntityTypes.cetype.attributes.attribute.get
Return objects of particular type
waag.ngsi10.contextEntityTypes.cetype.attributes.attribute.get({
"cetype": "",
"attribute": ""
}, context)
Input
- input
object
- cetype required
string
- attribute required
string
- cetype required
Output
Output schema unknown
ngsi10.queryContext.post
Query context broker for contextElements
waag.ngsi10.queryContext.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
ngsi10.subscribeContext.post
Create a new context subscription
waag.ngsi10.subscribeContext.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
ngsi10.unsubscribeContext.post
Delete a context subscription
waag.ngsi10.unsubscribeContext.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
ngsi10.updateContext.post
Add or update NGSI contextElements
waag.ngsi10.updateContext.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
ngsi10.updateContextSubscription.post
Update/edit a context subscription
waag.ngsi10.updateContextSubscription.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
objects.get
Return all objects
waag.objects.get(null, context)
Input
This action has no parameters
Output
Output schema unknown
objects.cdk_id.delete
Delete a single object
waag.objects.cdk_id.delete({
"cdk_id": ""
}, context)
Input
- input
object
- cdk_id required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.get
Get a single object
waag.objects.cdk_id.get({
"cdk_id": ""
}, context)
Input
- input
object
- cdk_id required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.patch
Edit a single object
waag.objects.cdk_id.patch({
"cdk_id": ""
}, context)
Input
- input
object
- cdk_id required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.get
Get all layers that contain data of single object
waag.objects.cdk_id.layers.get({
"cdk_id": ""
}, context)
Input
- input
object
- cdk_id required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.layer.delete
Remove data on layer from single object
waag.objects.cdk_id.layers.layer.delete({
"cdk_id": "",
"layer": ""
}, context)
Input
- input
object
- cdk_id required
string
- layer required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.layer.get
Return all data on single layer of single object
waag.objects.cdk_id.layers.layer.get({
"cdk_id": "",
"layer": ""
}, context)
Input
- input
object
- cdk_id required
string
- layer required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.layer.patch
Update data on layer to single object
waag.objects.cdk_id.layers.layer.patch({
"cdk_id": "",
"layer": ""
}, context)
Input
- input
object
- cdk_id required
string
- layer required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.layer.post
Add data on layer to single object
waag.objects.cdk_id.layers.layer.post({
"cdk_id": "",
"layer": ""
}, context)
Input
- input
object
- cdk_id required
string
- layer required
string
- cdk_id required
Output
Output schema unknown
objects.cdk_id.layers.layer.put
Overwrite data on layer to single object
waag.objects.cdk_id.layers.layer.put({
"cdk_id": "",
"layer": ""
}, context)
Input
- input
object
- cdk_id required
string
- layer required
string
- cdk_id required
Output
Output schema unknown
owners.get
Return all owners
waag.owners.get(null, context)
Input
This action has no parameters
Output
Output schema unknown
owners.post
Create new owner
waag.owners.post(null, context)
Input
This action has no parameters
Output
Output schema unknown
owners.owner.delete
Delete owner - and all layers and data belonging to this owner
waag.owners.owner.delete({
"owner": ""
}, context)
Input
- input
object
- owner required
string
- owner required
Output
Output schema unknown
owners.owner.get
Get a single owner
waag.owners.owner.get({
"owner": ""
}, context)
Input
- input
object
- owner required
string
- owner required
Output
Output schema unknown
owners.owner.patch
Edit an owner
waag.owners.owner.patch({
"owner": ""
}, context)
Input
- input
object
- owner required
string
- owner required
Output
Output schema unknown
owners.owner.layers.get
Return all layers belonging to a single owner
waag.owners.owner.layers.get({
"owner": ""
}, context)
Input
- input
object
- owner required
string
- owner required
Output
Output schema unknown
session.delete
Close session
waag.session.delete(null, context)
Input
This action has no parameters
Output
Output schema unknown
session.get
Return a session key
waag.session.get({
"name": "",
"password": ""
}, context)
Input
- input
object
- name required
string
: Login name. - password required
string
: Login password.
- name required
Output
Output schema unknown
Definitions
This integration has no definitions