Create virtual model

put

/database/rdf/networks/{network_owner},{network_name}/virtual_models/{virtual_model_name}

Creates a virtual model. A client requires SQL Developer or RDF Developer role to invoke this servce.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : entailments
Type: array
List of entailments to use for the virtual model (only one of rulebases or entailments can be non-null)
Show Source
Nested Schema : models
Type: array
List of models to use for the virtual model
Show Source
Nested Schema : rulebases
Type: array
List of rulebases to use for the virtual model
Show Source
Examples

Back to Top

Response

Supported Media Types

201 Response

Successful virtual model creation.
Body ()
Root Schema : VirtualModelDetailSingle
Type: object
Metadata for a single virtual model.
Show Source
  • a comma-delimited list of the names of models, rulebases and entailments used to build the virtual model
    Example: MODEL M1, RULEBASE OWLPRIME, RULEIDX M1OWL
  • name of the view that contains duplicate triples (if any) in the virtual model
    Example: NET1#SEMV_VM1
  • links
  • number of models contained in the virtual model
    Example: 1
  • owner of the virtual model
    Example: RDUSER
  • number of rulebases contained in the virtual model
    Example: 1
  • number of entailments contained in the virtual model
    Example: 1
  • contains VALID if the associated entailment is valid, INVALID if the entailment is not valid, INCOMPLETE if the entailment is incomplete (similar to INVALID but requiring less time to re-create), INPROGRESS if the entailment is being created, FAILED if a system failure occurred during the creation of the entailment, or NORIDX if no entailment is associated with the virtual model. In the case of multiple entailments, the lowest status among all of the component entailments is used as the virtual model's status (INVALID < INCOMPLETE < VALID).
    Example: VALID
  • name of the view that contains unique triples in the virtual model, or null if the view was not created
    Example: NET1#SEMU_VM1
  • name of the virtual model
    Example: VM1
Nested Schema : LinkRelation
Type: object
Show Source

400 Response

A virtual model with the same name or the same model-rulebase-entailment combination already exists or no entailment exists for the given model-rulebase combination

404 Response

RDF network does not exist or one of the referenced models, rulebases, or entailments does not exist
Back to Top