如果您使用一种上下文无关的文法,那么n元语法的结构(参见参考资料)可能是您所需要的。
If you work with a context-free grammar, the structure of n-gram (see Resources) might be what you require.
myroot 规则包含一个或多个 rulerefs,每个都有一个指向另一规则(本例中是 command1,它是一个 n 元语法的 master rule)的 URI。
The myroot rule contains one or more rulerefs, each of which has a URI that points to another rule, in this case command1, which is the master rule for an n-gram.
最后,where子句由一组三元模式组成,用基于Turtle的语法表示。
Finally, the WHERE clause consists of a series of triple patterns, expressed using Turtle-based syntax.
应用推荐