You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a page listing all the used/annotated (OEO) terms. It could be based on one simpleSPARQL query, which fetches the terms, the number of usages and maybe some more other inforrmation.
The Query
The query can be based of the ones you can see in here, but the most imporrtant part is:
The ?activity selects the mod type, and the term in question is hardcoded in the query as <http://openenergy-platform.org/ontology/oeo/OEO_00010165>. So just fetch all of the terms, maybe count distinct isAbout and valueReference.
The Website
An example for a list in vaadin (and the general webpage) can be seen here. The mosty important part is the creation of the list, just look at this:
privatefinalGrid<SearchResult> result_grid = newGrid<>();
privatefinalList<SearchResult> result_list = newresult_grid.addColumn(SearchResult::getTitle).setSortable(true).setHeader("Title");
result_grid.addColumn(TemplateRenderer.<SearchResult>of("<a href=\"[[item.idUri]]\" target='_top'>[[item.idUri]]</a>").withProperty("idUri", SearchResult::getDatabusFileUri)).setHeader("Download");
result_grid.addColumn(SearchResult::getComment).setHeader("Comment");
result_grid.addColumn(searchResult -> searchResult.getType().toString()).setSortable(true).setHeader("Databus ID Type");
result_grid.addColumn(SearchResult::getStartDate).setSortable(true).setHeader("Start Date");
result_grid.addColumn(SearchResult::getEndDate).setSortable(true).setHeader("End Date");
search_field.setValueChangeMode(ValueChangeMode.LAZY);
search_field.setPlaceholder("Search the Databus for Files containing or annotated with Classes, Properties etc.");
search_field.setMinWidth("60%");
search_field.setClearButtonVisible(true);
and how to fill it can be found in the search function, which in this case can happen during startup and does need no update logic.
The text was updated successfully, but these errors were encountered:
There should be a page listing all the used/annotated (OEO) terms. It could be based on one simpleSPARQL query, which fetches the terms, the number of usages and maybe some more other inforrmation.
The Query
The query can be based of the ones you can see in here, but the most imporrtant part is:
The
?activity
selects the mod type, and the term in question is hardcoded in the query as<http://openenergy-platform.org/ontology/oeo/OEO_00010165>
. So just fetch all of the terms, maybe count distinctisAbout
andvalueReference
.The Website
An example for a list in vaadin (and the general webpage) can be seen here. The mosty important part is the creation of the list, just look at this:
and how to fill it can be found in the search function, which in this case can happen during startup and does need no update logic.
The text was updated successfully, but these errors were encountered: