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
-
network_name(required): string
The name of the RDF network.Example:
NET1
-
network_owner(required): string
The owner of the RDF network.Example:
RDFUSER
-
virtual_model_name(required): string
The name of the virtual model.Example:
VM1
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
entailments: array
entailments
List of entailments to use for the virtual model (only one of rulebases or entailments can be non-null)
-
models(required): array
models
List of models to use for the virtual model
-
options: string
options for virtual model creation
-
rulebases: array
rulebases
List of rulebases to use for the virtual model
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
-
Array of:
string
Example:
M1
Examples
Back to Top
Response
Supported Media Types
- application/json
201 Response
Successful virtual model creation.
Root Schema : VirtualModelDetailSingle
Type:
object
Metadata for a single virtual model.
Show Source
-
datasets: string
a comma-delimited list of the names of models, rulebases and entailments used to build the virtual modelExample:
MODEL M1, RULEBASE OWLPRIME, RULEIDX M1OWL
-
duplicate_view_name: string
name of the view that contains duplicate triples (if any) in the virtual modelExample:
NET1#SEMV_VM1
-
links: array
links
-
model_count: string
number of models contained in the virtual modelExample:
1
-
owner: string
owner of the virtual modelExample:
RDUSER
-
rulebase_count: string
number of rulebases contained in the virtual modelExample:
1
-
rules_index_count: string
number of entailments contained in the virtual modelExample:
1
-
status: string
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
-
unique_view_name: string
name of the view that contains unique triples in the virtual model, or null if the view was not createdExample:
NET1#SEMU_VM1
-
virtual_model_name: string
name of the virtual modelExample:
VM1
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