ClioPatria components
A component is a DCG rule (-->) to be used with html//1 to produce part of an HTML page. Components are designed to be stand-alone as far as possible. Notably, they use html_requires//1 to pull in required script and CSS files.
The components here are designed for the ClioPatria developers UI. Most of them are rather simple. They may be adequate for prototyping and developer's needs, but are generally inadequate for end-user UIs.
Components are used by applications. The ClioPatria applications are in the directory ../applications.
Prolog files
basics.pl -- Simple Small HTML components | ||
---|---|---|
form_input/4 | Building blocks for HTML forms. | |
form_submit/3 | Building blocks for HTML forms. | |
hidden/4 | Create a hidden input field with given name and value. | |
insert_html_file/3 | Insert the content of an HTML file into the current document. | |
n/4 | HTML component to emit a number. | |
nc/4 | Numeric cell. | |
nc/5 | Numeric cell. | |
odd_even_row/5 | Create odd/even alternating table rows from a DCG. | |
graphviz.pl -- Render RDF-graphs | ||
graphviz_graph/4 | Display an RDF graph graphical in the browser. | |
label.pl -- Support for showing labels | ||
rdf_link/3 | Make a hyper-link to an arbitrary RDF resource or object using the label. | |
rdf_link/4 | Make a hyper-link to an arbitrary RDF resource or object using the label. | |
resource_link/2 | Generate a link to display more information about a resource. | |
turtle_label/3 | HTML rule to emit an RDF term (resource or object) in turtle-like notation with CSS classes. | |
menu.pl -- ClioPatria menu-bar | ||
cp_menu/2 | HTML Components that emits the ClioPatria menu. | |
messages.pl -- Run goals that produce messages | ||
after_messages/1 | Close the message window and emit HTML. | |
call_showing_messages/2 | Execute Goal, showing the feedback in the browser. | |
query.pl -- Forms for entering SPARQL and SeRQL queries. | ||
query_form/3 | HTMP component for an interactive (SPARQL) query-form. | |
query_script/2 | Inserts the <script> holding JavaScript functions that restore the queries. | |
store_query/3 | Store the SPARQL/SeRQL Query under Name in the current session. | |
store_recall/4 | Creates a table-row (tr ) holding a `store' and `recall' element. | |
server_statistics.pl -- Server statistics components | ||
http_server_pool_table/2 | Display table with statistics on thread-pools. | |
http_server_statistics/2 | HTML component showing statistics on the HTTP server. | |
http_session_table/2 | HTML component that writes a table of currently logged on users. | |
rdf_call_statistics_table/2 | Display table with RDF-call statistics. | |
simple_search.pl -- Simple literal search | ||
search_filter/2 | True if Filter holds for Resource. | |
simple_search_form/2 | Provide a search form to find literals in the database. | |
simple_search_form/3 | Provide a search form to find literals in the database. |