如何告诉Microsoft Edge它在阅读模式下应该显示的内容(How to tell Microsoft Edge what it should display in reading mode)
不知何故,Spartan / Edge的阅读模式似乎选择了网站上的哪个div以阅读模式显示。 在许多页面中,它找不到合适的div(如bbc.co.uk)。 但是, 在我们的网站上 ,它启用了阅读模式,但随后显示了页面中完全错误的部分。
那么 - 我怎么能告诉它采取正确的部分或至少如何在这些页面上禁用它
Reading mode in Spartan/Edge seems to choose, somehow, which div on the site to display in reading mode. In many pages, it does not find the appropriate div (like bbc.co.uk). However, on our site, it enables reading mode, but then displays the completely wrong part of the page.
So - how can I tell it to take the right part or at least how to disable it on those pages
原文:https://stackoverflow.com/questions/31295693
最满意答案
在分离Gremlin遍历时,您可以使用几种工具。 您可以使用explain()步骤和/或profile()步骤。
explain()
步骤将显示遍历策略如何构造和修改遍历策略,以优化其执行。profile()
步骤将提供遍历执行本身的统计信息。我也会将Gremlin Console本身称为“工具”。 调试Gremlin有时会让我走一条执行遍历小块的路径,以便我可以确定它在步骤列表中的任何给定点返回的内容。 Gremlin控制台,因为它是一个REPL ,它提供了获得代码执行的即时反馈的能力,从而使您摆脱IDE较长的开发周期。
You have several tools at your disposal when picking apart a Gremlin traversal. You can uses the explain() step and/or the profile() step. The
explain()
step will show how the traversal is composed and modified by Traversal Strategies which optimize its execution. Theprofile()
step will provide statistics on traversal execution itself.I would also call the Gremlin Console itself a "tool". Debugging Gremlin sometimes takes me down a path of executing smaller chunks of a traversal so that I can determine what it is returning at any given point in the list of steps. The Gremlin Console, as it is a REPL, provides the ability to get immediate feedback on code execution, thus getting you out of the longer development cycle of your IDE.
相关问答
更多-
有几种方法可以做到这一点,但首先让我们简化你现有的Gremlin,因为你说它做你想做的事情: g.V().has('user','id','338d219c-3457-4ad8-8172-37a7d897c0df'). out('manages'). hasLabel('client'). out('have'). hasLabel('site'). out('have'). has('job','status', 'In Progress') 请注意, outE().inV()组 ...
-
在分离Gremlin遍历时,您可以使用几种工具。 您可以使用explain()步骤和/或profile()步骤。 explain()步骤将显示遍历策略如何构造和修改遍历策略,以优化其执行。 profile()步骤将提供遍历执行本身的统计信息。 我也会将Gremlin Console本身称为“工具”。 调试Gremlin有时会让我走一条执行遍历小块的路径,以便我可以确定它在步骤列表中的任何给定点返回的内容。 Gremlin控制台,因为它是一个REPL ,它提供了获得代码执行的即时反馈的能力,从而使您摆脱IDE ...
-
不是从TinkerPop开始的最简单的遍历。 我改变的第一件事是权重的数据类型。 graph = TinkerGraph.open() g = graph.traversal() a = g.addV('name','a').next() b = g.addV('name','b').next() c = g.addV('name','c').next() d = g.addV('name','d').next() e = g.addV('name','e').next() a.addEdge('conn' ...
-
你走在正确的轨道上。 查看顶点步骤文档 。 标记边缘,然后从边缘遍历到顶点进行检查,然后跳回边缘以更新属性。 g.V(vertex.id()). outE("votes_for").has("type", "eat").as("e"). inV().has("name", "pizza"). select("e").property("weight", 0.99d). iterate() 完整的Gremlin控制台会话: gremlin> Titan.version() ==>1.0.0 ...
-
我认为你不能描述Gremlin和Apache TinkerPop之间的“差异”。 TinkerPop是一个开源项目和一个提供图形计算框架的社区。 该框架的核心是Gremlin图遍历语言和虚拟机。 该框架如下图所示: I don't think you can describe a "difference" between Gremlin and Apache TinkerPop. TinkerPop is an open source project and a community that provide ...
-
您可以使用联合步骤。 g.V() .hasLabel("person") .has("name", "A") .repeat(union(out("friend"), out("read"))) .until(out("friend").count().is(0)) .union(path(), out("read").path()) 应该得到你需要的东西。 用图表定义为 gremlin> :> graph.addVertex(T.label, "p ...
-
python客户端没有createIndex()方法,因为TinkerPop不提供3.x中索引的任何抽象。 我们依赖底层图形数据库的索引和模式创建方法。 您必须下载到该API级别并退出TinkerPop。 如果您只是确定是否使用查询速度创建索引,请记住,图形中只有8800个顶点,而TinkerGraph是内存中的图形。 你可能没有看到速度与少数几个顶点之间存在巨大差异。 如果您想知道您的索引是否已创建,请查阅: gremlin> graph = TinkerGraph.open() ==>tinkergra ...
-
DSEGraph具有多种Text谓词,它们都包含在Java API中。 有关可用的谓词及其说明,请参阅http://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/graph/using/useSearchIndexes.html 要在Java Fluent API中使用谓词,请参阅http://docs.datastax.com/en/developer/java-driver-dse/1.4/manual/tinkerpop/#searc ...
-
打印Gremlin 3.1.1在没有Gremlin控制台的Groovy中的结果(Print out Gremlin 3.1.1 Results in Groovy Without Gremlin Console)[2023-10-07]
这是您正在使用的现代图表的图片 您可以看到顶点1是Marko节点,它有三个出边: vertex1 --created--> vertex3 vertex1 --knows--> vertex2 vertex1 --knows--> vertex4 在Gremlin中,这些可以表示为使用顶点步骤 : g.V(1).out('created').next() g.V(1).outE('knows').inV().toList() 根据您的代码,您可能希望在相邻顶点上获取顶点属性 name 。 在这种情况下, ... -
我无法提供gremlin-scala解决方案,但您应该很容易转换以下Groovy示例: g.V("A").until(__.not(outE("alpha"))). repeat(out("alpha")).path().by(union(identity(), out("beta")).fold()) 这将返回: [[A, A1], [B], [C, A2]] IMO这就足够了。 但是,如果您需要一组一致的2个条目,则可以执行以下操作: g.V("A").until(__.not ...