RetrieveOntology
This function retrieves an ontology.
Signature
RetrieveOntology (String usageUri): Ontology
Arguments
| Name | Input or Output | Required | Type | Comment |
|---|---|---|---|---|
usageURI
|
Input | | String |
The identifier of the usage of an ontology, as defined in the Ontology Choice tab of the Ontology Control Center. |
ReturnType
Ontology
Example
Let attAValue (String)
Let attBValue (String)
Let referenceTablesOntologyDataSet (BLSOntology)
Let referenceTable1Uri (String)
Let attAUri (String)
Let attBUri (String)
Let filterProperties(List)
Let filterValues(List)
Let selectables (List)
Let referenceTable1TableRow(BLSOntologyElement)
Let referenceTable1TableRows (List)
referenceTable1Uri = "http://www.3dsinternal.com/test/Ontology/ReferenceTable1"
attAUri = referenceTable1Uri + "/attA"
attBUri = referenceTable1Uri + "/attB"
if (true == ThisObject.HasAttribute("attA")){
attAValue = ThisObject.GetAttributeString("attA")
}
if (attAValue<>"")
{
referenceTablesOntologyDataSet = RetrieveOntology("ReferenceTables_Configuration:ProjectA_ReferenceTables")
if (referenceTablesOntologyDataSet<>NULL){
// Search in reference table ontology
filterProperties.Append(attAUri)
filterValues.Append(attAValue)
selectables.Append(attBUri)
referenceTable1TableRows = referenceTablesOntologyDataSet ->Search(
"Individual",
"http://www.3dsinternal.com/test/Ontology/ReferenceTable1/ReferenceTable1TableRow",
"",
selectables,
filterProperties, filterValues
)
// Parse result of Search in ontology
for referenceTable1TableRow inside referenceTable1TableRows {
attBValue = referenceTable1TableRow.GetSelectableAsString (attBUri)
[...]
}
[...]
}
}