Querying all links

瀏覽次數:20 次
跳到第一則未讀訊息

Aruna Bansal

未讀,
2020年3月13日 下午4:23:182020/3/13
收件者:HyperGraphDB
Hi,

I want to access all links (say, all HGValueLinks) without specifying any of its targets, so that, later on, I could work on a list of links according to my requirement. I searched on lots of web links to get all links (HGPlainLink, HGValueLink, HGRel) but didn't find an answer. Could anybody help me out quickly?  An example query could be:
List <HGHandle> listOfLinks = hg.findAll(graph, hg.type(HGPlainLink.class));

Aruna


Borislav Iordanov

未讀,
2020年3月13日 晚上10:05:122020/3/13
收件者:hyperg...@googlegroups.com
Hi,

Try:

graph.findAll(hg.typePlus(HGLink.class))

Best,
Boris

--
You received this message because you are subscribed to the Google Groups "HyperGraphDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hypergraphdb...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hypergraphdb/c8da99f5-1d54-415d-8f58-9e04252e770e%40googlegroups.com.

回覆所有人
回覆作者
轉寄
0 則新訊息