Api.execute(new StdoutTap(), new Subquery("?word").predicate(Playground.SENTENCE, "?sentence")
.predicate(new Split(), "?sentence").out("?word").predicate(Option.DISTINCT, true));
}
public static void wordCount() {
Api.execute(new StdoutTap(), new Subquery("?word", "?count")
.predicate(Playground.SENTENCE, "?sentence").predicate(new Split(), "?sentence")
.out("?word").predicate(new Count(), "?count"));
}