• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

mastodon-sc/mastodon-selection-creator: A selection creator UI for Mastodon, as ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mastodon-sc/mastodon-selection-creator

开源软件地址(OpenSource Url):

https://github.com/mastodon-sc/mastodon-selection-creator

开源编程语言(OpenSource Language):

Java 92.8%

开源软件介绍(OpenSource Introduction):

mastodon-selection-creator

A selection creator for Mastodon, as a Mastodon plugin. Utility to create a selection model from parsing expressions, based on Curtis Rueden SciJava Parsington.

Expression are strings where a small language can be used to combine conditions and filters on vertices and edges.

Check this for documentation and explanation fo the syntax: the help file.

Examples:

Expression Meaning
vertexFeature('Spot position', 'X') > 100. Get all the vertices whose X position is strictly greater than 100. The specified feature value must be computed prior to parsing for this to return a useful selection.
tagSet('Reviewed by') == 'JY' Return the vertices and edges tagged by JY in the tag-set Reviewed by. Of course, both specified tag-set and tag must exist.
vertexFeature('Spot N links') == 3 & vertexFeature('Spot frame') == 25 Get the vertices that are in the frame 25 AND have 3 edges.
vertexFeature('Spot N links') == 3 | vertexFeature('Spot frame') == 25 Get the vertices that have 3 edges plus the vertices in the frame 25.
( vertexFeature('Spot N links') == 3 ) + ( vertexFeature('Spot frame') == 25 ) Get the vertices that have 3 edges plus the vertices in the frame 25. Same as above, the + sign as the same meaning that |, but different priority so we have to add brackets to avoid errors.
morph( ( vertexFeature('Spot N links') == 3 & vertexFeature('Spot frame') == 14 ), ('toVertex', 'outgoingEdges') ) Get the vertices of the frame 14 that have 3 edges, and return them plus their outgoing edges.
selection & ( vertexFeature('Spot N links') == 1 ) Get the currently selected vertices that have exactly 1 edge.
morph(vertexSelection, 'incomingEdges') Get the incoming edges of the vertices in the selection.
edgeSelection Just return the edges of the current selection.
selection - ( vertexFeature('Spot N links') == 2 ) Remove from the selection all the spots that have 2 links.
vertexTagSet('Reviewed by') != 'JY' All the vertices that are NOT tagged with JY in the tag-set Reviewed by.
!vertexTagSet('Reviewed by') All the vertices that are NOT tagged with any tag in the tag-set Reviewed by.
~vertexTagSet('Reviewed by') All the vertices that are tagged with any tag in the tag-set Reviewed by.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
praxisnyc/mastodon发布时间:2022-08-18
下一篇:
Haley-Euphemia-Sands/ProjectPrionosuchus: A Tumble Blog system decentralised bas ...发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap