Repository navigation
fix(export): the RDF writer states a connector's Relationship::relatedElement, source and target for a chained end too — the chain Feature its end's ReferenceSubsetting references, the element relatedFeature, sourceFeature and targetFeature already name, as the pilot exports it - #2190
Conversation
…dElement, source and target for a chained end too — the chain Feature its end's ReferenceSubsetting references, as relatedFeature, sourceFeature and targetFeature name it and the pilot exports it A chained end's three were omitted since the plain-end rule; the pilot states the chain Feature for all six. The decoder treats the three as the connector's derived end statements like the Feature ones, so the end path alone spells the chain, and the verbatim check tolerates a Connector's or Association's omitted ends on a graph written before they were stated. Goldens and the api-json differential re-recorded: every moved relatedElement, source and target row now carries the verdict its relatedFeature, sourceFeature or targetFeature row already had. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…f-relationship-ends Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov> # Conflicts: # docs/project/api-json-differential/examples/disposal-robot-demo/robot.sysml.json # docs/project/api-json-differential/examples/mosa-demo/mosa-demo.sysml.json # docs/project/api-json-differential/examples/parser_features_demo_connectors.sysml.json # docs/project/api-json-differential/examples/self-model/pipeline.sysml.json # docs/project/api-json-differential/examples/views-demo.sysml.json # docs/project/api-json-differential/index.json # docs/project/api-json-differential/pilot-examples/Simple Tests/InterfaceTest.sysml.json # docs/project/api-json-differential/pilot-examples/Vehicle Example/Annex_A_VehicleViews.sysml.json # docs/project/api-json-differential/pilot-examples/Vehicle Example/SysML v2 Spec Annex A SimpleVehicleModel.sysml.json
… the chained-end relatedElement, source and target rows beside #2180's association rows Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
… ends it covers; comments to two lines Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
Full gate on f1a6a5e (develop at #2180 merged): |
Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
There was a problem hiding this comment.
Devin Review found 1 finding. Devin automatically fixed it.
Fixed by Devin (1)
- Three-line comment violates repository limit — The connectorRelatedFeature comment is back to two lines.
…ationship-end movements in the api-json differential record Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…f-relationship-ends Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov> # Conflicts: # docs/project/api-json-differential/index.json
…f-relationship-ends
…ree (pilot-apijson-diff -reindex) Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
What and why
A connector's end written as a feature chain (
connect a.inner.p to b.p, an interface or allocation the same) states onlyrelatedFeature,sourceFeatureandtargetFeaturein the RDF the writer produces;Relationship::relatedElement,sourceandtargetwere stated for a plain-named end alone — the rule #2135 introduced. The pilot exports all six for a chained end, naming the chain Feature its end's ReferenceSubsetting references, and since #2172 the query leg answers the same, so the QVTS cross (opticalPath,dataPath,observeToCluster.target, the flow) and the api-json differential (ConnectionUsage.sourceours-missing whilesourceFeatureis equal) both read the gap.connectorRelatedFeaturestates the three for a chained end too, as the chain Feature, unless the end is a flow's (a flow's remain as fix(semantics,export): a connector's Relationship::relatedElement, source and target are the features its relatedFeature, sourceFeature and targetFeature redefine them as — the query leg answers them for a connection, a flow and athensuccession, and the RDF writer states them for a plain end, as the pilot exports them #2135 left them).relatedFeature/sourceFeature/targetFeature: the end path alone spells the chain, so a graph whosesourcereaches a chain Feature with an unresolved segment (feature_chains_unresolved) converts as before.relatedElement/source/targeton a graph written before they were stated (the pre-1855 fixture'sconnect charger.plug to battery.plugkeeps its verbatim text; the Association half closes the same hole fix(export): the RDF writer states an association's Relationship::relatedElement, source and target as its ends' types in order, the first the source, the targets unique — an allocation, connection or interface definition carries them as the query leg derives them and the pilot exports them #2180 opens), beside the Membership and Import tolerances it already had.Specification basis
KerML 1.0 8.3.4.5.3 (Connector::relatedFeature is the feature a ConnectorEnd's ReferenceSubsetting references), 8.3.4.5.1 (relatedElement, source, target redefined by relatedFeature, sourceFeature, targetFeature), 8.3.4.4.2 (Association's by relatedType, sourceType, targetType). No compliance row moves.
How it was verified
TestConnectorRelatedFeaturesAreTheEndsReferencedFeaturesflips from "want none for a chained end" to the chain Feature for the three onchainedandchainedIf; fails on develop, passes here.connector_ends,feature_chains,feature_chains_repeated,feature_chains_unresolved, and the two digests).relatedElement/source/targetrow takes exactly the verdict itsrelatedFeature/sourceFeature/targetFeaturerow already had (ConnectionUsage, InterfaceUsage, AllocationUsage, Connector, BindingConnector(AsUsage), SuccessionAsUsage). The four BindingConnector rows now present-different mirror the existingsourceFeature/relatedFeatureverdict there (the anonymous chain Feature ofbinding edgeBinding [1] of [0..*] base.edges = …is paired with the pilot's other one), not a new disagreement.TestCorpusRoundTripwith both require variables set reproduces;make docs-countsreproduces.tests/export,internal/translate/export,tests/corpuspass;go vet,gofmt -l,make changelog-checkclean;make test-shortandmake lintresults in a comment.Left for later, one PR each: a repeated object value (
connect (a, b, b)) collapsing to one triple (mapping-level); a recorded end keeping its redefined general's type; the 3-ended connector typed by a 2-end definition.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogLink to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/18ad47adf36f44e9b6824a4472f9678d
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/18ad47adf36f44e9b6824a4472f9678d?variant=devin
Requested by: @NicolasRouquette
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work