Mercurial > hg > rr-repo
diff sites/all/modules/rdfx/evoc/evoc.load_vocab.inc @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/rdfx/evoc/evoc.load_vocab.inc Thu Sep 19 10:38:44 2013 +0100 @@ -0,0 +1,22 @@ +<?php + +function _evoc_load__error_handler($errno, $errstr) { + throw new Exception($errstr); +} + +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, + ); +} \ No newline at end of file