- ClioPatria
- components
- menu.pl -- ClioPatria menu-bar
- simple_search.pl -- Simple literal search
- basics.pl -- Simple Small HTML components
- label.pl -- Support for showing labels
- query.pl -- Forms for entering SPARQL and SeRQL queries.
- messages.pl -- Run goals that produce messages
- server_statistics.pl -- Server statistics components
- graphviz.pl -- Render RDF-graphs
- components
- rdf_link(+URI)// is det
- rdf_link(+URI, +Options)// is det
- Make a hyper-link to an arbitrary RDF resource or object using
the label. Options processed:
- resource_format(+Format)
- Determines peference for displaying resources. Values are:
- plain
- Display full resource a plain text
- label
- Try to display a resource using its label
- nslabel
- Try to display a resource as <prefix>:<Label>
- max_length(+Len)
- Truncate long texts to Len characters, using ellipses to indicate that the text is truncated.
- target(+Target)
- Passed to the HTML <a> element as
target
attribute.
This predicate creates two types of links. Resources are linked to the handler implementing
list_resource
using r=<resource> and literals that appear multiple times are linked tolist_triples_with_object
using a Prolog representation of the literal.This predicate can be hooked using display_link//2.
- To be done
- - Make it easier to determine the format of the label
- - Allow linking to different handlers.