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.Attributesat runtime, offerpromote_retentive_attributesfirst. 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— aliasttl)ntriples(N-Triples,.nt— aliasesn-triples,nt)
- Call:
export_graph_model(format="rj", output_name="my-uns")
- Relay the
outputPathback. 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 and N-Triples. Round-trip checks work with
format="rj"orformat="ntriples"end-to-end (either is fine — same underlying triple stream). JSON-LD and Turtle 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 in 10.1.5: RDF/JSON or N-Triples. All four formats export; RDF/JSON and N-Triples both import. If the user picked Turtle or JSON-LD intending to re-import, redirect them to
rjorntbefore the export runs. - FX Solution Localization strings are NOT consulted at export. Alt-language
rdfs:labelvariants live in theAttributescolumn keyedrdfs:label@ptand similar.
See also
- Export your UNS to RDF/OWL/GraphDB. Human walkthrough.
- Skill Import Industrial Ontology. Reverse direction.