buildingmotif.api.views.model#

Functions

create_model()

Create model

get_all_models()

Get all models.

get_model(models_id)

Get Model by id.

get_model_graph(models_id)

Get model graph by id.

get_target_nodes(models_id)

Get model graph by id.

update_model_graph(models_id)

Update model graph.

validate_model(models_id)

validate_shape(models_id)

get_all_models() Response[source]#

Get all models.

Returns:

all models

Return type:

flask.Response

get_model(models_id: int) Response[source]#

Get Model by id.

Parameters:

models_id (int) – model id

Returns:

requested model

Return type:

flask.Response

get_model_graph(models_id: int) Graph[source]#

Get model graph by id.

Parameters:

models_id (int) – model id

Returns:

requested model graph

Return type:

rdflib.Graph

get_target_nodes(models_id: int) Graph[source]#

Get model graph by id.

Parameters:

models_id (int) – model id

Returns:

requested model graph

Return type:

rdflib.Graph

create_model() Response[source]#

Create model

Returns:

new model

Return type:

Model

update_model_graph(models_id: int) Response[source]#

Update model graph.

Takes xml body of ttl formated graph.

Parameters:

models_id (int) – model id

Returns:

updated model graph

Return type:

rdflib.Graph

validate_model(models_id: int) Response[source]#
validate_shape(models_id: int) Response[source]#