src/main/java/org/vivoweb/harvester/util/repo/JenaConnect.java
/**
	 * Get the size of a jena model
	 * @return the number of statement in this model
	 * @throws IOException error connecting
	 */
Get the size of a jena model
@return the number of statement in this model
@throws IOException error connecting
Get the size of a jena model @return the number of statement in this model @throws IOException error connecting
public int size() throws IOException {
		ResultSet resultSet = executeSelectQuery("SELECT (count(?s) as ?size) WHERE { ?s ?p ?o }");
		if(resultSet.hasNext()) {
			return resultSet.next().get("size").asLiteral().getInt();
		}
		return 0;
	}
public int size ( ) throws IOException { ResultSet resultSet = executeSelectQuery ( "SELECT (count(?s) as ?size) WHERE { ?s ?p ?o }" ) ; if ( resultSet . hasNext ( ) ) { return resultSet . next ( ) . get ( "size" ) . asLiteral ( ) . getInt ( ) ; } return 0 ; }
Get the size of a jena model
 @return the number of statement in this model
 @throws IOException error connecting
Get the size of a jena model @return the number of statement in this model @throws IOException error connecting
// read first result //Display count