@Test public void testVarBindings() { List<Binding<String>> bindings = page.varBindings(); boolean found = false; for (Binding<String> b: bindings) { if (b.label().equals( "_suffix")) { assertTrue( b.value().equals( "vhtml" )); found = true; } } assertTrue( found ); }
public List<Binding<String>> varBindings() { List<Binding<String>> bindings = new ArrayList<Binding<String>>(); for (com.epimorphics.rdfutil.RDFNodeWrapper n : connectedNodes( "api:wasResultOf/api:variableBinding" )) { String label = n.getPropertyValue( API.label ).getLexicalForm(); String value = n.getPropertyValue( API.value ).getLexicalForm(); bindings.add( new Binding<String>( label, value ) ); } return bindings; }
Page extends CommonNodeWrapper { public List<Binding<String>> varBindings() { List<Binding<String>> bindings = new ArrayList<Binding<String>>(); for (com.epimorphics.rdfutil.RDFNodeWrapper n : connectedNodes( "api:wasResultOf/api:variableBinding" )) { String label = n.getPropertyValue( API.label ).getLexicalForm(); String value = n.getPropertyValue( API.value ).getLexicalForm(); bindings.add( new Binding<String>( label, value ) ); } return bindings; } }
Page extends CommonNodeWrapper { public List<Binding<String>> varBindings() { List<Binding<String>> bindings = new ArrayList<Binding<String>>(); for (com.epimorphics.rdfutil.RDFNodeWrapper n : connectedNodes( "api:wasResultOf/api:variableBinding" )) { String label = n.getPropertyValue( API.label ).getLexicalForm(); String value = n.getPropertyValue( API.value ).getLexicalForm(); bindings.add( new Binding<String>( label, value ) ); } return bindings; } Page( ResultsModel mw, Resource root ); }
Page extends CommonNodeWrapper { public List<Binding<String>> varBindings() { List<Binding<String>> bindings = new ArrayList<Binding<String>>(); for (com.epimorphics.rdfutil.RDFNodeWrapper n : connectedNodes( "api:wasResultOf/api:variableBinding" )) { String label = n.getPropertyValue( API.label ).getLexicalForm(); String value = n.getPropertyValue( API.value ).getLexicalForm(); bindings.add( new Binding<String>( label, value ) ); } return bindings; } Page( ResultsModel mw, Resource root ); void initialiseShortNameRenderer( ShortnameService sns ); ShortNameRenderer shortNameRenderer(); EldaURL pageURL(); boolean isItemEndpoint(); int pageNumber(); int itemsPerPage(); int totalResults(); String resultsCountSummary(); int startIndex(); Resource isPartOf(); Resource definition(); String extendedMetadataURL(); Resource firstPage(); Resource prevPage(); Resource nextPage(); Resource lastPage(); boolean hasPageData(); List<PageFormat> formats(); List<EldaView> views(); List<Binding<Resource>> termBindings(); List<Binding<String>> varBindings(); Map<String, String> varBindingsMap(); List<DisplayRdfNode> items(); Model pageObjectModel(); EldaView currentView(); EldaView findViewByName( String viewName ); PageMetadata metadata(); List<PropertyPath> currentPropertyPaths(); String pageTitle(); boolean itemHasAllProperties( List<Object> properties ); boolean itemHasAllProperties( Object... properties ); List<DisplayRdfNode> resourcesWithAllProperties( List<Object> properties ); List<Link> filterRemovalLinks(); List<Link> sortRemovalLinks(); }
Page extends CommonNodeWrapper { public List<Binding<String>> varBindings() { List<Binding<String>> bindings = new ArrayList<Binding<String>>(); for (com.epimorphics.rdfutil.RDFNodeWrapper n : connectedNodes( "api:wasResultOf/api:variableBinding" )) { String label = n.getPropertyValue( API.label ).getLexicalForm(); String value = n.getPropertyValue( API.value ).getLexicalForm(); bindings.add( new Binding<String>( label, value ) ); } return bindings; } Page( ResultsModel mw, Resource root ); void initialiseShortNameRenderer( ShortnameService sns ); ShortNameRenderer shortNameRenderer(); EldaURL pageURL(); boolean isItemEndpoint(); int pageNumber(); int itemsPerPage(); int totalResults(); String resultsCountSummary(); int startIndex(); Resource isPartOf(); Resource definition(); String extendedMetadataURL(); Resource firstPage(); Resource prevPage(); Resource nextPage(); Resource lastPage(); boolean hasPageData(); List<PageFormat> formats(); List<EldaView> views(); List<Binding<Resource>> termBindings(); List<Binding<String>> varBindings(); Map<String, String> varBindingsMap(); List<DisplayRdfNode> items(); Model pageObjectModel(); EldaView currentView(); EldaView findViewByName( String viewName ); PageMetadata metadata(); List<PropertyPath> currentPropertyPaths(); String pageTitle(); boolean itemHasAllProperties( List<Object> properties ); boolean itemHasAllProperties( Object... properties ); List<DisplayRdfNode> resourcesWithAllProperties( List<Object> properties ); List<Link> filterRemovalLinks(); List<Link> sortRemovalLinks(); static final int NO_VALUE; static final String DEFAULT_VIEW_NAME; }