Repository navigation
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 a then succession, and the RDF writer states them for a plain end, as the pilot exports them - #2135
Merged
Merged
Conversation
…urce and target are the features its relatedFeature, sourceFeature and targetFeature redefine them as — the query leg answers them for a connection, a flow and a then succession, and the RDF writer states them for a plain end, as the pilot exports them On the query leg the three were derived for no connector, so a query reading a then succession's source failed as a property OpenSysML does not derive; now they answer through the connector's related features (KerML 8.3.4.5.1), unanswered where a succession's end names a member no element stands for. The RDF writer states the three beside the redefining properties for an end written as a plain feature name; a chained end keeps relatedFeature/sourceFeature/targetFeature alone, since both readers refuse a graph naming a chain's last feature from the connector. Golden Turtle, the api-json differential (present-equal 2045864 → 2046101, every moved row in the bucket its redefining property holds) re-recorded; census, structure differential, snapshot and docs-counts reproduce. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
… in two comment lines Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…ce and target beside the sourceFeature and targetFeature that redefine them, as a connector with plain ends does The initial-node succession writes its ends itself rather than through connectorEnd, so the redefined properties the connector path states were absent from its Turtle and api-json; golden Turtle re-recorded (the pair on the three fixtures that write one), the api-json differential and corpus round trips reproduce unchanged. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 2 findings. Devin automatically fixed all 2 findings.
Fixed by Devin (2)
- Plain successions lose relationship ends in exports — The initial-node succession writes its own ends, so
first a then b;now states source and target beside sourceFeature and targetFeature for a plain-named end (a chained successor keeps the redefining property alone, as the connector path does); a new export test fails without it, golden Turtle re-recorded, round trips and the api-json differential reproduce. - Three-line test comment violates comment limit — The test's comment is two lines.
6 tasks done
6 tasks done
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 11, 2026
…tial and two golden digests on the develop merge — the bare-subaction growth over #2135's connector-end rows, as the tools record them Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
On the query leg a connector derived none of
Relationship::relatedElement,sourceandtarget: aConnectionUsage, aFlowUsageand — since #2121 made every bodilessthen x;aSuccessionAsUsage— a succession answeredrelatedFeature,sourceFeatureandtargetFeature, and left the three they redefine (KerML 1.1 §8.3.4.5.1) as properties OpenSysML does not derive. A query projecting a succession'ssourcefailed with a path error, which the QVTS reflection mirrors over the observatory now hit (Mirror_SuccessionAsUsageunresolved) where before the population was empty.ReflectiveElementsnow answersrelatedElement,sourceandtargetfor a Connector-conforming symbol through the same collector as the redefining properties — one table names the redefinition — and is unanswered exactly where those are: a succession whose end names a member no element stands for yet (anentryaction, anassignstatement).The RDF writer states the three beside
relatedFeature/sourceFeature/targetFeaturefor an end written as a plain feature name, as the pilot exports them; api-json follows the graph. A chained end (connect a.b.c to …) keeps the three redefining properties alone: both readers (Turtle and api-json) refuse a graph that names a chain's last feature directly from the connector ("no spelling of the segment reads as the element the graph names"), failing the corpus round trip on three files, so the chained rows stay ours-missing in the differential — a reader-side follow-up.Specification basis
KerML 1.1 §8.3.4.5.1
Connector:relatedFeatureredefinesRelationship::relatedElement,sourceFeatureredefinessource,targetFeatureredefinestarget. No compliance row moves.How it was verified
internal/semantic/semanticsTestConnectorRelationshipEndsAreItsRelatedFeaturesfails on develop (every cell unanswered):observe's three successions and its flow answerrelatedElement/source/targetasstart acquire,acquire readout,readout done,image image; the state'sentry; then idle;succession stays unanswered.tests/exportTestConnectorRelatedFeaturesAreTheEndsReferencedFeaturesextended: the plain connector states the three on the RDF and api-json sides, the chained ones state none of them.-update): the diff is the trio on plain ends only (source×10,relatedElement×12,target×5).-update) and its record paragraph added: present-equal 2045864 → 2046101, ours-missing 308343 → 308095, present-different 143898 → 143909 (each moved row lands in the bucket its redefining property already holds), pilot-missing 81606 → 81608 (AHFSequences.sysmlmessagewith a plain end, as forrelatedFeature).TestCorpusRoundTripandTestCorpusAPIJSONRoundTripwith the training, pilot and specification-example corpora: unchanged (the narrowing to plain ends is what keeps them so).make docs-countsreproduce; build/vet/gofmt/lint/changelog/doc-ids green; the full suite with every corpus variable runs on the pushed head.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 fixed all 2 findings · Follow Devin's work