Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

API JSON: a flow's payload and a dependency's prefix metadata differ from the metamodel

Đang mở
#652 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
json
Lĩnh vực
api

Hướng nghiên cứu

Read rdf-mapping.md at lines 458-466 and 532, then compare those mappings with the corresponding entries in SysML-textual-bnf at lines 51-53, 845-852, and 1660-1662. Locate the API JSON serialization entry point and verify how flows and dependencies are represented. Done means the JSON form exposes the metamodel-aligned PayloadFeature and annotation while the documented Turtle mappings remain understood.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Both are documented choices in rdf-mapping.md, so this is a request, not a bug report. For the API's JSON form, could they follow the metamodel?

Source Exported (documented at) Grammar (SysML-textual-bnf)
flow of Fuel from a.p.fuel to b.p.fuel; (the flow example in #651) sysx:payload → a FeatureReferenceExpression under an OwningMembership (rdf-mapping.md:532) FeatureMembership owning a PayloadFeature (:845-852)
#Tag dependency x to y; MetadataUsage under an OwningMembership of the dependency (rdf-mapping.md:458-466) an Annotation whose annotatingElement is the MetadataUsage (:51-53, :1660-1662)
package A {
    metadata def Tag;
    part x;
    part y;
    #Tag dependency x to y;
}

A reader of standard API JSON finds no payload feature on the flow, and no annotation on the dependency.

:532 gives the reason for the payload: the 202407 ontology table has no payloadFeature property. The API form reads metaclasses rather than that table, so it could carry the PayloadFeature even if Turtle keeps the expression.

Ngôn ngữ chính
Go
Star
24
Fork
5
Merge trung bình
10 giờ 7 phút
Pull request đã merge (30 ngày)
536

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Open-MBEE/OpenSysML

Tất cả issue của Open-MBEE/OpenSysML

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.