AI skill: serialize the current UNS to an RDF/OWL graph file via the Export UNS format selector (Solution → Export tab) or the export_graph_model MCP tool.
AI Integration → Platform Skills Library → Export UNS as RDF
Version 10.1.5+
When to invoke
- “Export my UNS as RDF/JSON so I send it to the ontology group”
- “Save the solution as JSON-LD for our PIM import”
- “Give me the UNS as Turtle so I can paste it into Protégé”
- “Round-trip check. Re-import what I exported and diff”
Preconditions
- Solution open in Designer.
- UNS has content to export. Empty solutions produce a trivially-empty graph.
Steps
- If the user has been modifying
@Tag.X.Attributes at runtime, offer promote_retentive_attributes first. The exporter reads cold-start for determinism, so runtime-only changes do not appear in the export otherwise. - Pick a format. All four W3C formats ship in 10.1.5 GA:
rj (default, W3C RDF/JSON, .rj)jsonld (JSON-LD 1.1 flattened, .jsonld)turtle (Turtle, .ttl — alias ttl)ntriples (N-Triples, .nt — aliases n-triples, nt)
- Call:
export_graph_model(format="rj", output_name="my-uns")
- Relay the
outputPath back. It is the file the user shares or uploads. - If the user asks about round-tripping (re-importing what they just exported), surface the importer asymmetry: the importer in 10.1.5 reads RDF/JSON only. Round-trip checks must use
format="rj" end-to-end. JSON-LD / Turtle / N-Triples readers land in a follow-up release backed by dotNetRDF. Publishing to a triple store or sharing with an ontology team works with any of the four formats — pick whichever the destination accepts.
Gotchas to surface
- No SPARQL push in 10.1.5. The file lands in the Exchange folder. Upload to GraphDB / Stardog / Fuseki is the user's job.
- Round-trip is faithful at the UserType level, not the OWL axiom level. Restrictions and anonymous class unions do not survive. Set expectations before the diff.
- Round-trip is format-asymmetric in 10.1.5. All four formats export; only RDF/JSON imports. If the user picked Turtle or JSON-LD intending to re-import, redirect them to RDF/JSON before the export runs.
- FX Solution Localization strings are NOT consulted at export. Alt-language
rdfs:label variants live in the Attributes column keyed rdfs:label@pt and similar.
See also