You are here

function _vocabulary_rdf_xml in RDF Extensions 7.2

Menu callback ( see evoc_test_menu() ).

1 string reference to '_vocabulary_rdf_xml'
evoc_test_menu in evoc/tests/evoc_test.module
Implements hook_menu().

File

evoc/tests/evoc_test.module, line 64
Test vocabulary import.

Code

function _vocabulary_rdf_xml() {
  global $base_url;
  $vocab_uri = $base_url . '/evoc_test/vocabulary_rdf_xml#';

  // We fake an RDF/XML vocabulary to feed into the importer.
  drupal_add_http_header('Content-Type', 'application/rdf+xml; charset=utf-8');
  print '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:doap="' . $vocab_uri . '"
    >
      <owl:Ontology rdf:about="' . $vocab_uri . '">
        <dc:title>Description of a Project (DOAP) vocabulary</dc:title>
	<dc:description>The Description of a Project (DOAP) vocabulary, described using W3C RDF Schema and the Web Ontology Language.</dc:description>
        <dc:description xml:lang="es">El vocabulario Descripti&#243;n of a Project (DOAP, Descripci&#243;n de un Proyecto), descrito usando RDF Schema de W3C y Web Ontology Language.</dc:description>
      </owl:Ontology>
      <rdfs:Class rdf:about="' . $vocab_uri . 'Project">
	<rdfs:isDefinedBy rdf:resource="' . $vocab_uri . '" />
	<rdfs:label xml:lang="en">Project</rdfs:label>
	<rdfs:label xml:lang="es">Proyecto</rdfs:label>
	<rdfs:subClassOf rdf:resource="http://xmlns.com/wordnet/1.6/Project" />
	<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Project" />
      </rdfs:Class>

      <rdf:Property rdf:about="' . $vocab_uri . 'homepage">
	<rdfs:isDefinedBy rdf:resource="' . $vocab_uri . '" />
	<rdfs:label xml:lang="en">homepage</rdfs:label>
	<rdfs:label xml:lang="es">p&#225;gina web</rdfs:label>
	<rdfs:comment xml:lang="en">URL of a project\'s homepage, associated with exactly one project.</rdfs:comment>
	<rdfs:comment xml:lang="es">El URL de la p&#225;gina de un proyecto, asociada con exactamente un proyecto.</rdfs:comment>
	<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#InverseFunctionalProperty" />
	<rdfs:domain rdf:resource="http://usefulinc.com/ns/doap#Project" />
	<rdfs:subPropertyOf rdf:resource="http://xmlns.com/foaf/0.1/homepage" />
      </rdf:Property>
    </rdf:RDF>';
  return;
}