@Test public void testPageRoot() { assertEquals( TEST_ROOT_URI, page.metadata().pageRoot().getURI() ); }
public RDFNodeWrapper pageRoot() { ResIterator i = getModel().listSubjectsWithProperty( RDF.type, API.Page ); if (!i.hasNext()) { throw new EldaException( "Unexpected: page metadata has no resource with rdf:type api:Page" ); } RDFNodeWrapper pageRoot = new RDFNodeWrapper( this, i.next() ); if (i.hasNext()) { log.warn("unexpected: page metadata has more than one rdf:type api:Page resource - {}", i.next()); } return pageRoot; }
PageMetadata extends ModelWrapper { public RDFNodeWrapper pageRoot() { ResIterator i = getModel().listSubjectsWithProperty( RDF.type, API.Page ); if (!i.hasNext()) { throw new EldaException( "Unexpected: page metadata has no resource with rdf:type api:Page" ); } RDFNodeWrapper pageRoot = new RDFNodeWrapper( this, i.next() ); if (i.hasNext()) { log.warn("unexpected: page metadata has more than one rdf:type api:Page resource - {}", i.next()); } return pageRoot; } }
PageMetadata extends ModelWrapper { public RDFNodeWrapper pageRoot() { ResIterator i = getModel().listSubjectsWithProperty( RDF.type, API.Page ); if (!i.hasNext()) { throw new EldaException( "Unexpected: page metadata has no resource with rdf:type api:Page" ); } RDFNodeWrapper pageRoot = new RDFNodeWrapper( this, i.next() ); if (i.hasNext()) { log.warn("unexpected: page metadata has more than one rdf:type api:Page resource - {}", i.next()); } return pageRoot; } PageMetadata( Page page ); }
PageMetadata extends ModelWrapper { public RDFNodeWrapper pageRoot() { ResIterator i = getModel().listSubjectsWithProperty( RDF.type, API.Page ); if (!i.hasNext()) { throw new EldaException( "Unexpected: page metadata has no resource with rdf:type api:Page" ); } RDFNodeWrapper pageRoot = new RDFNodeWrapper( this, i.next() ); if (i.hasNext()) { log.warn("unexpected: page metadata has more than one rdf:type api:Page resource - {}", i.next()); } return pageRoot; } PageMetadata( Page page ); RDFNodeWrapper pageRoot(); Execution execution(); QueryResult selectionQuery(); QueryResult viewingQuery(); Processor processor(); String sparqlEndpoint( VelocityContext context ); }
PageMetadata extends ModelWrapper { public RDFNodeWrapper pageRoot() { ResIterator i = getModel().listSubjectsWithProperty( RDF.type, API.Page ); if (!i.hasNext()) { throw new EldaException( "Unexpected: page metadata has no resource with rdf:type api:Page" ); } RDFNodeWrapper pageRoot = new RDFNodeWrapper( this, i.next() ); if (i.hasNext()) { log.warn("unexpected: page metadata has more than one rdf:type api:Page resource - {}", i.next()); } return pageRoot; } PageMetadata( Page page ); RDFNodeWrapper pageRoot(); Execution execution(); QueryResult selectionQuery(); QueryResult viewingQuery(); Processor processor(); String sparqlEndpoint( VelocityContext context );  }