You are here

function querypath_examples_format_ld_link in QueryPath 6

Same name and namespace in other branches
  1. 7.3 querypath_examples.module \querypath_examples_format_ld_link()
  2. 7.2 querypath_examples.module \querypath_examples_format_ld_link()
1 call to querypath_examples_format_ld_link()
querypath_examples_show_sparql_lookup in ./querypath_examples.module

File

./querypath_examples.module, line 402
The main file for querypath_examples.

Code

function querypath_examples_format_ld_link($text, $uri) {

  // Switch to linked data URI:
  $uri = preg_replace('|\\/resource\\/|', '/data/', $uri) . '.rdf';
  return l($text, 'qp/ld', array(
    'query' => array(
      'uri' => $uri,
    ),
  ));
}