- Vue d'ensemble (Overview)
- Démarrer
- Concepts
- Utilisation de la UiPath CLI
- Guides pratiques
- Revenus CI/CD
- Référence de commande
- Vue d'ensemble (Overview)
- Codes de sortie
- Options globales
- agent codé uip
- encodeur UIP
- uip ancrage dans le contexte
- UiPath Docsai
- Fonction UiP
- garde-fous UiP
- configuration llm uip
- uip llm-passerelle
- Création uip maestro
- Registre Maestro uip
- uip model-hub
- uip ont
- Tâches (Jobs)
- Dossiers
- Processus
- ROI du processus
- Paquets
- Machines
- Utilisateurs
- Rôles
- Licences
- Flux
- Pièces jointes (Attachments)
- Sessions
- Calendriers
- magasins d'informations d’identification
- journaux-audit
- paramètres
- Actifs
- Compartiments
- Compartiment-fichiers
- Bibliothèques
- Files d'attente (Queues)
- ROI de la file d'attente
- éléments de la file d'attente
- Déclencheurs (Triggers)
- Webhooks
- Activités - Rechercher
- activités get-Default-xaml
- Analyser
- liste règles-analyseurs
- Construire
- Nettoyage
- Installation de entités data-fabrics
- liste des entités data-fabrics
- Diff de fichiers
- Get-Library-Object-Repository
- Récupérer le référentiel d'objets
- Init
- liste des instances
- Créer un package
- Vérification des paquets
- Installation des paquets
- Versions de paquets
- Publier
- Distant
- restore
- exécuter, déboguer et amp; Exécution
- paramètres
- Début de Studio
- Recherche de modèles
- entité ajoutée aux données de test
- Ajouter une file d'attente de données de test
- variation d'ajout de données de test
- TM
- UIA
- Valider
- exemples de workflow - Obtenir
- liste d'exemples de workflow
- uip resources
- tâches UIP
- pièce jointe
- Champ personnalisé
- Défauts (Defects)
- Exécutions
- exporter-tâches
- Migration
- Libellé Objet
- Créer un package
- scénarios-perf
- groupes-de-charge-scénarios-perf
- données d’exécution de perf-scenario
- rapport de scénarios de performances
- Projet
- autorisations-projet
- Invites
- Rapport
- Prérequis
- Résultat
- Exécuter
- Planifications (Schedules)
- Étendues
- Journaux de cas de test
- Cas de test
- Ensembles de tests
- Journal des étapes de test
- Utilisateur (User)
- Attendre
- Traçages UIP
- Commentaires sur les traces UIP
- Migration
- Référence et assistance
uip ont
Syntax and options for `uip ont`, which authors, checks, and validates UiPath ontologies in a local solution and reads deployed ones.
uip ont authors, checks, and reads UiPath ontologies. An ontology is an ontology resource in a local solution. It maps Data Fabric entities of the same solution to a schema, and its artifact files are kept as one zip next to the solution. Nothing exists on a tenant until the solution is packed, published, and deployed.
Install it with uip tools install ont, or invoke uip ont … and let auto-install run. Refer to Tools (plugins) for the install model. ont is the command prefix; the underlying package is @uipath/ontology-tool.
Most commands work on the solution on disk and need no login. Three commands call the Ontology service and need uip login: validate, and get and list with --folder-key or --folder-path.
Synthèse
uip ont create <name> --local [--entity <name>]... [--display-name <text>] [--description <text>]
uip ont get <name> (--local | --folder-key <guid> | --folder-path <path>)
uip ont list (--local | --folder-key <guid> | --folder-path <path>) [-l <n>] [--offset <n>]
uip ont update <name> --local [--add-entity <name>]... [--remove-entity <name>]... [--display-name <text>] [--description <text>]
uip ont delete <name> --local -y
uip ont files add <name> <files...> --local [--type <type>]
uip ont files list <name> (--local | --package <zip>)
uip ont files remove <name> <files...> --local
uip ont validate [name] --local
uip ont artifacts check <file> [--type <type>] [--content <text>]
uip ont create <name> --local [--entity <name>]... [--display-name <text>] [--description <text>]
uip ont get <name> (--local | --folder-key <guid> | --folder-path <path>)
uip ont list (--local | --folder-key <guid> | --folder-path <path>) [-l <n>] [--offset <n>]
uip ont update <name> --local [--add-entity <name>]... [--remove-entity <name>]... [--display-name <text>] [--description <text>]
uip ont delete <name> --local -y
uip ont files add <name> <files...> --local [--type <type>]
uip ont files list <name> (--local | --package <zip>)
uip ont files remove <name> <files...> --local
uip ont validate [name] --local
uip ont artifacts check <file> [--type <type>] [--content <text>]
Commandes
| Commande | Objectif |
|---|---|
create | Create an ontology resource in the local solution, with no artifacts yet. |
get | Show an ontology of the local solution, or a deployed one. |
list | List the ontologies of the local solution, or the ones deployed in a folder. |
update | Change an ontology's entities, display name, or description. |
delete | Delete an ontology and its attached zip. |
files add | Check artifact files and attach them to an ontology. |
files list | List the artifacts of a local ontology, or of one in a packed solution. |
files remove | Remove artifact files from an ontology. |
validate | Run the convention and cross-file rules, then the Ontology service's check. |
artifacts check | Check one artifact file against the convention rules, offline. |
--local et --solution-folder
--localis required on every command that reads or changes the solution on disk. Without it, the command fails withCode: LocalFlagRequired.getandlisttake one of--local,--folder-key, or--folder-path. Two of them together fail withLocalAndFolderConflictorFolderKeyAndPathConflict.--solution-folder <path>names the folder that holds the solution's.uipxfile. It defaults to the current directory. A folder without a.uipxfile fails withNoParentSolution.
Artifact types
An ontology holds five artifact types. The file extension decides the type.
| Saisie de texte | Extensions | Nombre |
|---|---|---|
schema | .ofn | Exactly one. |
constraints | .ttl | Optional, any number. |
mapping | .yarrrml.yml, .yml, .yaml | Exactly one. |
summary | .json | At most one. |
context | .json | At most one. |
A .json file is ambiguous. End its name with -summary or -context before the extension, for example sales-summary.json, or pass --type.
Artifact names use letters, digits, ., _, and -, start with a letter or a digit, and end in an extension. ontology.json is reserved for the zip's manifest.
uip ont create
Create an ontology resource in the local solution. The ontology has no artifacts until files add attaches them.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name, unique in the solution, ignoring case. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
| — | --entity | name | — | Local entity the ontology maps. Repeatable. The entity must be an entity resource of the solution. Refer to Local entities. |
| — | --display-name | text | the name | Nom d'affichage. |
| — | --description | text | — | Description. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemple
uip ont create Sales --local --entity SalesOrder --entity Customer
uip ont create Sales --local --entity SalesOrder --entity Customer
Format des données (--sortie json)
{
"Code": "OntologyCreated",
"Data": {
"Name": "Sales",
"DisplayName": "Sales",
"Key": "11111111-2222-3333-4444-555555555555",
"Entities": ["SalesOrder", "Customer"],
"Artifacts": []
}
}
{
"Code": "OntologyCreated",
"Data": {
"Name": "Sales",
"DisplayName": "Sales",
"Key": "11111111-2222-3333-4444-555555555555",
"Entities": ["SalesOrder", "Customer"],
"Artifacts": []
}
}
uip ont get
Show one ontology. With --local, the command reads the solution on disk. With --folder-key or --folder-path, it reads the deployed ontology from the Ontology service. The deployed read changes nothing.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. For a deployed ontology, the name it was deployed under. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Read the ontology authored in the local solution. |
| — | --folder-key | GUID | — | Key of the deployment folder. Reads the deployed ontology. Needs uip login. |
| — | --folder-path | Chemin d'accès | — | Path of the deployment folder, for example Shared/Finance. Reads the deployed ontology. Needs uip login. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemples
# An ontology authored in the local solution
uip ont get Sales --local
# A deployed ontology, by folder key or by folder path
uip ont get Sales --folder-key aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
uip ont get Sales --folder-path "Shared/Finance"
# An ontology authored in the local solution
uip ont get Sales --local
# A deployed ontology, by folder key or by folder path
uip ont get Sales --folder-key aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
uip ont get Sales --folder-path "Shared/Finance"
Format des données (--sortie json)
A local ontology returns the same Data as create, with one entry per attached artifact under Artifacts. A deployed ontology returns:
{
"Code": "OntologyDetails",
"Data": {
"Id": "99999999-8888-7777-6666-555555555555",
"Name": "Sales",
"DisplayName": "Sales",
"State": "DEPLOYED",
"FolderKey": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
}
{
"Code": "OntologyDetails",
"Data": {
"Id": "99999999-8888-7777-6666-555555555555",
"Name": "Sales",
"DisplayName": "Sales",
"State": "DEPLOYED",
"FolderKey": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
}
FolderKey is the key the service returned, also when the folder was named by --folder-path.
uip ont list
List the ontologies of the local solution, or the ontologies deployed in a folder.
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | List the ontologies authored in the local solution. |
| — | --folder-key | GUID | — | Key of the deployment folder. Lists the deployed ontologies. Needs uip login. |
| — | --folder-path | Chemin d'accès | — | Path of the deployment folder, for example Shared/Finance. Lists the deployed ontologies. Needs uip login. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
-l | --limit | Numérique | Tout | Return at most this many rows. |
| — | --offset | Numérique | 0 | Skip this many rows before the first one returned. |
Exemples
uip ont list --local
uip ont list --folder-path "Shared/Finance" --limit 20
uip ont list --local
uip ont list --folder-path "Shared/Finance" --limit 20
Format des données (--sortie json)
Code is OntologyList. Data is an array of rows in the shape get returns: local rows for --local, deployed rows for a folder. An empty list returns Data: []. With --limit or --offset, the response also carries Pagination.
uip ont update
Change the entities, the display name, or the description of a local ontology.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
| — | --add-entity | name | — | Local entity to add. Repeatable. |
| — | --remove-entity | name | — | Entity to remove, by name. Repeatable. |
| — | --display-name | text | — | Nouveau nom complet. |
| — | --description | text | — | Nouvelle description. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemple
uip ont update Sales --local --add-entity Invoice --remove-entity Customer \
--display-name "Sales ontology"
uip ont update Sales --local --add-entity Invoice --remove-entity Customer \
--display-name "Sales ontology"
Format des données (--sortie json)
Code is OntologyUpdated. Data has the same shape as create, with the new values.
uip ont delete
Delete a local ontology and its attached zip.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
-y | --yes | Drapeau | — | Required. Confirm the deletion. The command never prompts. Without it, the command fails with Code: ConfirmationRequired and ErrorCode: confirmation_required. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemple
uip ont delete Sales --local --yes
uip ont delete Sales --local --yes
Format des données (--sortie json)
{
"Code": "OntologyDeleted",
"Data": {
"Name": "Sales",
"Key": "11111111-2222-3333-4444-555555555555"
}
}
{
"Code": "OntologyDeleted",
"Data": {
"Name": "Sales",
"Key": "11111111-2222-3333-4444-555555555555"
}
}
uip ont files add
Check artifact files and attach them to a local ontology. The command checks every file with the per-file rules first. When one file fails, nothing is attached. A file added under a name the ontology already holds replaces that artifact.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. |
<files...> | oui | One or more artifact files to attach. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
| — | --type | Type | from the extension | Artifact type, for a file whose extension does not decide it. Refer to Artifact types. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemple
uip ont files add Sales ./sales.ofn ./sales-mapping.yarrrml.yml \
./sales-summary.json ./sales-context.json --local
uip ont files add Sales ./sales.ofn ./sales-mapping.yarrrml.yml \
./sales-summary.json ./sales-context.json --local
Format des données (--sortie json)
{
"Code": "OntologyFilesAdded",
"Data": {
"Files": [
{ "FileName": "sales.ofn", "Type": "schema", "Status": "Added" },
{ "FileName": "sales-mapping.yarrrml.yml", "Type": "mapping", "Status": "Added" }
],
"Violations": []
}
}
{
"Code": "OntologyFilesAdded",
"Data": {
"Files": [
{ "FileName": "sales.ofn", "Type": "schema", "Status": "Added" },
{ "FileName": "sales-mapping.yarrrml.yml", "Type": "mapping", "Status": "Added" }
],
"Violations": []
}
}
Status is Added or Replaced. Violations lists the WARNING violations, which do not stop the command. When a file has an ERROR violation, the command fails with Code: ArtifactCheckFailed and lists the violations under Data.violations.
uip ont files list
List the artifacts of a local ontology, or of an ontology in a packed solution.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Read the ontology in the local solution. |
| — | --package | zip | — | Read the ontology in a packed solution, the .zip that uip solution pack writes. Cannot be combined with --local. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemples
uip ont files list Sales --local
uip ont files list Sales --package ./out/SalesSolution_1.0.0.zip
uip ont files list Sales --local
uip ont files list Sales --package ./out/SalesSolution_1.0.0.zip
Format des données (--sortie json)
{
"Code": "OntologyFilesList",
"Data": {
"Name": "Sales",
"StoredName": "Sales.zip",
"Artifacts": [
{
"FileName": "sales.ofn",
"Type": "schema",
"MediaType": "text/owl-functional",
"SizeBytes": 1204,
"Checksum": "<sha-256-checksum>"
}
]
}
}
{
"Code": "OntologyFilesList",
"Data": {
"Name": "Sales",
"StoredName": "Sales.zip",
"Artifacts": [
{
"FileName": "sales.ofn",
"Type": "schema",
"MediaType": "text/owl-functional",
"SizeBytes": 1204,
"Checksum": "<sha-256-checksum>"
}
]
}
}
uip ont files remove
Remove artifact files from a local ontology's zip.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<name> | oui | Ontology name. |
<files...> | oui | One or more artifact file names to remove. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemple
uip ont files remove Sales sales-constraints.ttl --local
uip ont files remove Sales sales-constraints.ttl --local
Format des données (--sortie json)
Code is OntologyFilesRemoved. Data.Removed lists the removed file names, and Data.Artifacts lists the artifacts that remain.
uip ont validate
Validate the ontologies of the local solution. The command runs the per-file rules and the cross-file rules against the current local entities. For each ontology without an ERROR violation, it then sends the artifacts to the Ontology service for a syntax check. The service check stores nothing on the tenant.
The service check needs uip login. The local rules run first, so their results are in Data also when the service check cannot run.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
[name] | non | Validate only this ontology. Omitted, every ontology in the solution is validated. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --local | Drapeau | — | Required. Act on the ontologies authored in the local solution. |
| — | --solution-folder | Chemin d'accès | répertoire actuel | Solution folder that holds the .uipx file. |
Exemples
# Validate every ontology in the solution
uip ont validate --local
# Validate one ontology
uip ont validate Sales --local
# Validate every ontology in the solution
uip ont validate --local
# Validate one ontology
uip ont validate Sales --local
Format des données (--sortie json)
{
"Code": "OntologyValidated",
"Data": [
{
"Name": "Sales",
"Valid": true,
"ServiceValidation": "Done",
"Violations": []
}
]
}
{
"Code": "OntologyValidated",
"Data": [
{
"Name": "Sales",
"Valid": true,
"ServiceValidation": "Done",
"Violations": []
}
]
}
ServiceValidation is Done when the service checked the ontology, and Skipped when a local ERROR violation stopped the check.
Échecs
Code | ErrorCode | Quitter | Origine |
|---|---|---|---|
ValidationFailed | invalid_argument | 1 | An ontology has an ERROR violation. |
ServiceValidationUnavailable | authentication_required | 2 | No login. Run uip login, then validate again. |
ServiceValidationUnavailable | not_supported | 1 | The connected environment does not offer the Ontology service. |
ServiceValidationFailed | varie | 1 | The Ontology service could not validate an artifact. |
On each of these failures, Data still lists one entry per ontology. The keys of a failure's Data are lower case: name, valid, serviceValidation, and violations.
uip ont artifacts check
Check one artifact file against the per-file rules. The command runs offline: it makes no network call and needs no solution. The file name decides the artifact type the same way as in files add, so the file is checked as the type it is attached as.
The command checks UiPath conventions only. The Ontology service checks the syntax of the file during validate.
Arguments
| Nom | Requis | Objectif |
|---|---|---|
<file> | oui | Artifact file to check. |
Options
| Short | Long | Valeur (Value) | Default | Description |
|---|---|---|---|---|
| — | --type | schema | constraints | mapping | summary | context | from the extension | Artifact type, for a .json file whose name ends in neither -summary nor -context. The type must be one the extension allows. |
| — | --content | text | — | Check this text instead of reading the file. <file> still names the artifact. |
Exemples
uip ont artifacts check ./sales.ofn
uip ont artifacts check ./orders.json --type context
uip ont artifacts check ./sales.ofn
uip ont artifacts check ./orders.json --type context
Format des données (--sortie json)
{
"Code": "ArtifactChecked",
"Data": {
"Type": "schema",
"MediaType": "text/owl-functional",
"RuleSetId": "ofn",
"PassedRules": 5,
"FailedRules": 0,
"Violations": []
}
}
{
"Code": "ArtifactChecked",
"Data": {
"Type": "schema",
"MediaType": "text/owl-functional",
"RuleSetId": "ofn",
"PassedRules": 5,
"FailedRules": 0,
"Violations": []
}
}
When an ERROR rule fires, the command exits 1 with Result: Failure, Code: ArtifactChecked, and ErrorCode: invalid_argument. Data carries the same fields with lower-case keys, and Data.violations lists every violation.
Violations and rules
Each violation has these fields:
| Champ | Signification |
|---|---|
rule | Rule ID, for example OFN-002. |
severity | ERROR or WARNING. An ERROR fails validate, files add, and artifacts check. A WARNING does not. |
message | What the rule found. |
suggestion | How to fix it, when the rule has a suggestion. |
file | The artifact the violation is in, when it belongs to one file. |
source | local for a rule the CLI runs, service for a finding of the Ontology service. |
Per-file rules
files add, validate, and artifacts check run these rules on each file.
Schema (.ofn):
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
OFN-001 | ERROR | The ontology IRI starts with https://ontology.uipath.com/. |
OFN-002 | ERROR | Data properties are named ClassName.fieldName. |
OFN-004 | WARNING | Every class has an rdfs:label. |
OFN-005 | WARNING | Every object property has an rdfs:label. |
OFN-009 | ERROR | No data property is named has{Prop}. |
Constraints (.ttl):
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
SHC-002 | ERROR | Every sh:targetClass is on an sh:NodeShape. |
SHC-003 | ERROR | Every sh:NodeShape has an sh:targetClass. |
SHC-004 | WARNING | Every shape has an rdfs:label. |
SHC-006 | WARNING | Property blocks have sh:maxCount. |
SHC-007 | WARNING | Property blocks have sh:name. |
SHC-008 | WARNING | At least one property has sh:minCount 1. |
SHC-009 | WARNING | Decimal properties have sh:minInclusive. |
SHC-010 | WARNING | Relationship paths use sh:class. |
SHC-011 | WARNING | The file declares at least one SHACL shape. |
Mapping (.yarrrml.yml, .yml, .yaml):
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
MAP-002 | ERROR | Mappings read access: datafabric table sources. |
MAP-004 | ERROR | The subject template is prefix:ClassName/$(field). |
MAP-005 | ERROR | Each mapping asserts an a <Class> type. |
MAP-006 | WARNING | Relationships are inline ~iri values. |
MAP-012 | ERROR | The mapping holds no Data Fabric IDs (entityId, folderId). It names each entity by table: only. |
Context and summary (.json):
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
CTX-001 | ERROR | The context is JSON with a root @context. |
CTX-002 | ERROR | @base is declared. |
CTX-003 | ERROR | The xsd prefix is declared. |
CTX-005 | ERROR | Each term has @id and @type. |
CTX-006 | WARNING | Relation terms use "@type": "@id". |
CTX-007 | WARNING | @id uses the ontology prefix. |
SUM-001 | ERROR | The summary is JSON. |
SUM-002 | WARNING | The top level of the summary is an object. |
SUM-003 | ERROR | The summary has no root @context. A file with one is a context file. |
Cross-file rules
validate runs these rules on the whole ontology, against the current local entities. files add also runs ZIP-001.
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
ZIP-001 | ERROR | The zip fits the service limits: each artifact at most 10 MiB, the zip at most 50 MiB and 64 entries. |
XF-001 | ERROR | One schema, one mapping, any number of constraints, at most one summary, and at most one context. |
XF-002 | ERROR, or WARNING for a display name or description that differs | The zip's manifest matches the artifacts and the resource. |
XF-003 | ERROR | IRIs use https://ontology.uipath.com/<name>. |
XF-004 | ERROR | The shape: prefix is https://ontology.uipath.com/shapes#. |
XF-005 | ERROR | The schema stays in the OWL 2 QL profile. |
XF-006 | ERROR | Every ont: term in the mapping is declared in the schema. |
XF-007 | ERROR | Every term has rdfs:label and rdfs:comment. |
XF-008 | ERROR | Constraints name declared schema terms. |
XF-009 | ERROR | Every class is a property domain and is instantiated in the mapping. |
XF-010 | ERROR, or WARNING for a class without a shape | Every property is mapped. When the ontology has a constraints file, every class has an sh:targetClass shape. |
XF-012 | ERROR, or WARNING for an entity that no mapping reads | Every mapping reads a table: that is a local entity of the ontology. |
XF-013 | ERROR | Every $(column) is a field of its entity. Names are case-sensitive. |
XF-014 | ERROR | Every join is a declared object property. |
XF-015 | ERROR | Every object property between mapped classes has a join. |
XF-017 | ERROR | The ontology's entities form no relationship cycle. A self-reference is not a cycle. |
XF-019 | ERROR | Each sh:in on a property mapped from a choice-set field names only values of that local choice set. |
Service rule
| Règles | Gravité (Severity) | Vérifications |
|---|---|---|
SVC-001 | ERROR or WARNING, as the service reports it | The Ontology service's syntax check of an artifact. file names the artifact. |
Codes d’erreur
A failure carries its reason in Code, and the CLI-wide classification in ErrorCode. ErrorCode is invalid_argument unless the table says otherwise.
Code | ErrorCode | Origine |
|---|---|---|
LocalFlagRequired | invalid_argument | --local is missing. On get and list, none of --local, --folder-key, and --folder-path was passed. |
LocalAndFolderConflict | invalid_argument | --local was combined with --folder-key or --folder-path. |
FolderKeyAndPathConflict | invalid_argument | --folder-key and --folder-path were combined. |
InvalidFolderKey | invalid_argument | --folder-key is not a GUID. |
InvalidFolderPath | invalid_argument | --folder-path est vide. |
InvalidArguments | invalid_argument | files list got both --local and --package. |
NoParentSolution | not_found | The solution folder holds no .uipx file. |
OntologyNotFound | not_found | No ontology has that name, in the solution or in the folder. |
OntologyNameTaken | invalid_argument | The name is in use in the solution, ignoring case. |
InvalidOntologyName | invalid_argument | The name is not a valid resource name. |
EntityNotFound | not_found | --entity, --add-entity, or --remove-entity names an entity that is not a local entity resource. |
ConfirmationRequired | confirmation_required | delete ran without --yes. |
ArtifactNotFound | not_found | A file to attach cannot be read, or a file to remove is not in the ontology. |
InvalidArtifactFileName | invalid_argument | The file name breaks the naming rule, or is ontology.json. |
ArtifactTypeUnresolved | invalid_argument | The extension does not decide the type, or --type does not fit the extension. |
ArtifactTypeAlreadyPresent | invalid_argument | A second file of a type that takes one file. Add the file under the existing name to replace it, or remove the old file first. |
ArtifactTypeNotSupported | not_supported | The artifact type cannot be authored with the CLI. |
ArtifactCheckFailed | invalid_argument | files add found ERROR violations. Nothing is attached. |
ResourceFileMissing | not_found | The ontology's zip is missing from the solution, or the packed solution carries none. |
InvalidResourceArchive | invalid_argument | The attached zip cannot be read. |
PackageNotFound | not_found | --package points at no readable packed solution. |
OntologyNotInPackage | not_found | The packed solution has no ontology of that name. |
Where the connected environment does not offer the Ontology service, get and list with --folder-key or --folder-path fail with ErrorCode: not_supported and Retry: RetryWillNotFix. Code is OntologyDetails or OntologyList.
Author and deploy an ontology
The ontology's entities are local Data Fabric entities of the same solution. The solution carries the ontology to the tenant:
uip solution init SalesSolution && cd SalesSolution
uip df entities create SalesOrder --local --file ./SalesOrder.json
uip df entities create Customer --local --file ./Customer.json
uip ont create Sales --local --entity SalesOrder --entity Customer
uip ont files add Sales ./sales.ofn ./sales-mapping.yarrrml.yml \
./sales-summary.json ./sales-context.json --local
uip ont validate --local
uip solution pack . ./out
uip ont files list Sales --package ./out/SalesSolution_1.0.0.zip
uip solution init SalesSolution && cd SalesSolution
uip df entities create SalesOrder --local --file ./SalesOrder.json
uip df entities create Customer --local --file ./Customer.json
uip ont create Sales --local --entity SalesOrder --entity Customer
uip ont files add Sales ./sales.ofn ./sales-mapping.yarrrml.yml \
./sales-summary.json ./sales-context.json --local
uip ont validate --local
uip solution pack . ./out
uip ont files list Sales --package ./out/SalesSolution_1.0.0.zip
uip solution publish and uip solution deploy run then publish and deploy the package. uip ont get <name> --folder-path <path> confirms the deployed ontology.
Associé
uip df entities— author the local entities an ontology maps.uip df choice-sets— author the local choice sets that ruleXF-019checks.uip solution pack— pack the solution that carries the ontology.
Voir également
- Synthèse
- Commandes
--localet--solution-folder- Artifact types
- uip ont create
- Arguments
- Options
- Exemple
- Format des données (--sortie json)
- uip ont get
- Arguments
- Options
- Exemples
- Format des données (--sortie json)
- uip ont list
- Options
- Exemples
- Format des données (--sortie json)
- uip ont update
- Arguments
- Options
- Exemple
- Format des données (--sortie json)
- uip ont delete
- Arguments
- Options
- Exemple
- Format des données (--sortie json)
- uip ont files add
- Arguments
- Options
- Exemple
- Format des données (--sortie json)
- uip ont files list
- Arguments
- Options
- Exemples
- Format des données (--sortie json)
- uip ont files remove
- Arguments
- Options
- Exemple
- Format des données (--sortie json)
- uip ont validate
- Arguments
- Options
- Exemples
- Format des données (--sortie json)
- Échecs
- uip ont artifacts check
- Arguments
- Options
- Exemples
- Format des données (--sortie json)
- Violations and rules
- Per-file rules
- Cross-file rules
- Service rule
- Codes d’erreur
- Author and deploy an ontology
- Associé
- Voir également