You are here

function rdfx_resource_uri in RDF Extensions 7.2

Returns the URI used for the given resource.

Parameters

String $type: The entity type.

Object $entity:

Return value

String An absolute path to the entity instance.

2 calls to rdfx_resource_uri()
rdfx_add_resource in ./rdfx.module
Adds a resource object.
rdfx_get_rdf_model in ./rdfx.module

File

./rdfx.module, line 311
Extends the RDF API of Drupal core to support more RDF seralizations formats other RDF capabilities.

Code

function rdfx_resource_uri($type, $entity) {
  $uri = entity_uri($type, $entity);
  return url($uri['path'], array(
    'absolute' => TRUE,
  ));
}