@Test public void viewProperty_asTriple_ReturnsRelationAsTriple() { Any subject = mock(Any.class); Any object = mock(Any.class); VarSupply vars = mock(VarSupply.class); RDFQ.Triple triple = getViewProperty().asTriple(subject, object, vars); assertEquals(subject, triple.S); assertEquals(uri, ((URINode)triple.P).spelling()); assertEquals(object, triple.O); }
@Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory); }
ShortNameDefinitionParser implements DefinitionParser { @Override public ViewProperty getViewProperty(String definition, ViewProperty.Factory factory) { Property prop = expand(definition); return new ViewProperty.Base(prop); } ShortNameDefinitionParser(ShortnameService svc); @Override Pattern pattern(); @Override ViewProperty getViewProperty(String definition, ViewProperty.Factory factory);  }