• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/home/ssh289/ClioPatria/components/label.pl
AllApplicationManualNameSummaryHelp

  • 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
        • turtle_label//1
        • rdf_link//1
        • rdf_link//2
        • resource_link/2
      • 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
 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>
turtle
Try to display as Turtle <prefix>:<local>
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.
role(+Role)
Passed to display_link/2 hook as option. Can be used to differentiate display of URI depending on role as subject, predicate, object, bnode, domain, or range.

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 to list_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.
ClioPatria (version V3.1.1-51-ga0b30a5)