You are here

function _evoc_query_for_term_description in RDF Extensions 7.2

1 call to _evoc_query_for_term_description()
_rdfx_fetch_terms in ./rdfx.terms.inc

File

evoc/evoc.load_vocab.inc, line 7

Code

function _evoc_query_for_term_description(&$model, $uri) {
  $label = _rdfx_query_find_literal($model, array(
    array(
      $uri,
      'http://www.w3.org/2000/01/rdf-schema#label',
      '?',
    ),
  ));
  $comment = _rdfx_query_find_literal($model, array(
    array(
      $uri,
      'http://www.w3.org/2004/02/skos/core#definition',
      '?',
    ),
    array(
      $uri,
      'http://www.w3.org/2000/01/rdf-schema#comment',
      '?',
    ),
  ));
  return array(
    'uri' => $uri,
    'label' => $label,
    'comment' => $comment,
  );
}