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

enhancement: limit values per property

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

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
35/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ệ
javascript, php
Lĩnh vực
data-visualization

Hướng nghiên cứu

The node-loading code is in includes/KnowledgeGraph.php around line 933, where all values of a property are currently loaded without a cap. Read how the parser options such as depth are parsed, then decide where a property-limit option would be read and applied. The rendering side of the '+N more' node and the click-to-load behaviour would live in the JavaScript that drives vis-network, which the payload does not show. Done means a limit option caps the nodes per property, a '+N more' node appears when values are cut off, and the remaining values load on click; the design of that click behaviour is not settled in the issue.

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

Mô tả

ll values of a property are loaded, there is no limit. A page linked by 1000 pages via -MyProp shows 1000 nodes, multiplied by the default depth=3.

Suggestion: |property-limit?-MyProp=10 plus a "+N more" node to load the rest on click.

https://github.com/SemanticMediaWiki/KnowledgeGraph/blob/32c6e98bafea0fab2e13d9cf8402e0358a4f504c/includes/KnowledgeGraph.php#L933

Ngôn ngữ chính
JavaScript
Star
5
Fork
5
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
4

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 SemanticMediaWiki/KnowledgeGraph

Tất cả issue của SemanticMediaWiki/KnowledgeGraph

Issue tương tự

Thêm issue về JavaScript

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.