public void testPartsOfSpeech() throws Exception {
assertExpected("@joshsh #knows @xixiluo",
new Triple(JOSHSH, KNOWS, XIXILUO));
assertExpected("#joshsh #knows @xixiluo",
new Triple(new Hashtag("joshsh"), KNOWS, XIXILUO));
assertExpected("\"josh\" #knows @xixiluo");
assertExpected("http://example.org/joshsh #knows @xixiluo");
assertExpected("@joshsh #knows @xixiluo",
new Triple(JOSHSH, KNOWS, XIXILUO));
assertExpected("@joshsh @knows @xixiluo");
assertExpected("@joshsh \"knows\" @xixiluo");
assertExpected("@joshsh http://example.org/knows @xixiluo");
assertExpected("@joshsh #knows @xixiluo",
new Triple(JOSHSH, KNOWS, XIXILUO));
assertExpected("@joshsh #knows #xixiluo",
new Triple(JOSHSH, KNOWS, new Hashtag("xixiluo")));
assertExpected("@joshsh #knows \"xixiluo\"",
new Triple(JOSHSH, KNOWS, new PlainLiteral("xixiluo")));
assertExpected("@joshsh #knows http://example.org/xixiluo",
new Triple(JOSHSH, KNOWS, new TypedLiteral("http://example.org/xixiluo", XMLSchema.NAMESPACE + "anyURI")));
}