Create, update and publish models with API
Creating a Site via API
This request creates the Site resource and sets its metadata.
curl --location --request PUT 'https://dataclearinghouse.org/api/mv/v1/org/demo_org/site/demo_site' \
--header 'Content-Type: application/json' \
--header 'x-api-key: myApiKeyGoesHere' \
--data '{
"orgId": "demo_org",
"siteId": "demo_site",
"label": "demo_site",
"description": "Represents demo_site site in org demo_org.",
"addressMeta": {
"subAddress": null,
"streetNumber": "3",
"streetName": "Castray Esplanade",
"subLocality": null,
"locality": "Battery Point",
"subAdministrativeArea": null,
"administrativeArea": "Tasmania",
"countryCode": "AUS",
"postcode": "7004",
"propertyId": null,
"cadastralId": null,
"titleId": null
},
"geolocation2d": {
"latitude":-42.8867605,
"longitude":147.338252
}
}Creating a Building via API
This request creates the Building resource and sets its metadata.
Updating Site RDF via API
This request overwrites the Site's draft RDF model. (It has no effect on the published model.)
Updating Building RDF via API
This request overwrites the Building's draft RDF model. (It has no effect on the published model.)
Publish a Site via API
This request causes a sequence of events to occur across semantic models in the site. These are:
dependency discovery
intersection of site/building models with datapool models
root node composition
inferencing
validation
merging
updating represented resources to point to the newly merged models
The result of this is that the site and its buildings are then available to be queried through the query API, and returned solutions will reflect the newer version of the semantic model.
Last updated