| Example | This example presumes that the prefix dc has been bound to the namespace http://purl.org/dc/elements/1.1/ and the prefix rdf is bound to the namespace http://www.w3.org/1999/02/22-rdf-syntax-ns#. Note: The about attribute on the <rdf:Description> in this example gives a URI indicating the resource to which the metadata contained therein refer. The <rdf:Description> in the second <xenoData> block has a blank about, meaning it is pointing at the current document, so the RDF is about the document within which it is contained, i.e. the TEI document containing the <xenoData> block. Similarly, any kind of relative URI may be used, including fragment identifiers (see [[undefined SG-id]]). Do note, however, that if the contents of the <xenoData> block are to be extracted and used elsewhere, any relative URIs will have to be resolved accordingly.<xenoData
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:RDF>
<rdf:Description rdf:about="http://www.worldcat.org/oclc/606621663">
<dc:title>The description of a new world, called the blazing-world</dc:title>
<dc:creator>The Duchess of Newcastle</dc:creator>
<dc:date>1667</dc:date>
<dc:identifier>British Library, 8407.h.10</dc:identifier>
<dc:subject>utopian fiction</dc:subject>
</rdf:Description>
</rdf:RDF>
</xenoData>
<xenoData>
<rdf:RDF>
<rdf:Description rdf:about="">
<dc:title>The Description of a New World, Called the Blazing-World, 1668</dc:title>
<dc:creator>Cavendish, Margaret (Lucas), Duchess of Newcastle</dc:creator>
<dc:publisher>Women Writers Project</dc:publisher>
<dc:date>2002-02-12</dc:date>
<dc:subject>utopian fiction</dc:subject>
</rdf:Description>
</rdf:RDF>
</xenoData>
|
| Example | In this example, the prefix dc is again bound to the namespace http://www.openarchives.org/OAI/2.0/oai_dc/, and the prefix oai_dc is bound to the namespace http://www.openarchives.org/OAI/2.0/oai_dc/.<xenoData
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/">
<oai_dc:dc>
<dc:title>The colonial despatches of Vancouver Island and British
Columbia 1846-1871: 11566, CO 60/2, p. 291; received 13 November.
Trevelyan to Merivale (Permanent Under-Secretary)</dc:title>
<dc:date>1858-11-12</dc:date>
<dc:creator>Trevelyan</dc:creator>
<dc:publisher>University of Victoria Humanities Computing and Media
Centre, and UVic Libraries</dc:publisher>
<dc:type>InteractiveResource</dc:type>
<dc:format>application/xhtml+xml</dc:format>
<dc:type>text</dc:type>
<dc:identifier>http://bcgenesis.uvic.ca/getDoc.htm?id=B585TE13.scx</dc:identifier>
<dc:rights>This document is licensed under a Creative Commons …</dc:rights>
<dc:language>(SCHEME=ISO639) en</dc:language>
<dc:source>Transcribed from microfilm and/or original documents, and
marked up in TEI P5 XML. The interactive XHTML resource is generated
from the XHTML using XQuery and XSLT.</dc:source>
<dc:source>repository: CO</dc:source>
<dc:source>coNumber: 60</dc:source>
<dc:source>coVol: 2</dc:source>
<dc:source>page: 291</dc:source>
<dc:source>coRegistration: 11566</dc:source>
<dc:source>received: received 13 November</dc:source>
<dc:subject>Trevelyan, Sir Charles Edward</dc:subject>
<dc:subject>Merivale, Herman</dc:subject>
<dc:subject>Elliot, T. Frederick</dc:subject>
<dc:subject>Moody, Colonel Richard Clement</dc:subject>
<dc:subject>Lytton, Sir Edward George Earle Bulwer</dc:subject>
<dc:subject>Jadis, Vane</dc:subject>
<dc:subject>Carnarvon, Earl</dc:subject>
<dc:subject>British Columbia</dc:subject>
<dc:description>British Columbia correspondence: Public Offices
document (normally correspondence between government
departments)</dc:description>
</oai_dc:dc>
</xenoData>
|
| Example | This example shows GeoJSON embedded in <xenoData>. Note that JSON does not permit newlines inside string values. These must be escaped as \n. To avoid the accidental insertion of newlines by software, the use of xml:space is recommended. Blocks of JSON should be wrapped in CDATA sections, as they may contain characters illegal in XML.<xenoData xml:space="preserve">
<![CDATA[
{
"features": [
{
"geometry": {
"type": "Point",
"coordinates": [
68.388483,
33.498616
]
},
"type": "Feature",
"id": "darmc-location-19727",
"properties": {
"snippet": "Unknown; 330 BC - AD 300",
"link": "https://pleiades.stoa.org/places/59694/darmc-location-19727",
"description": "5M scale point location",
"location_precision": "precise",
"title": "DARMC location 19727"
}
}
],
"id": "59694",
"subject": [
"dare:ancient=1",
"dare:feature=settlement",
"dare:major=0"
],
"title": "Arachosiorum Oppidum/Alexandria",
"provenance": "Barrington Atlas: BAtlas 6 B3 Arachosiorum Oppidum/Alexandria",
"placeTypeURIs": [
"https://pleiades.stoa.org/vocabularies/place-types/settlement"
],
"details": "<p>The Barrington Atlas Directory notes: Kalat-e-Ghilzai? AFG</p>",
"@context": {
"snippet": "dcterms:abstract",
"rights": "dcterms:rights",
"description": "dcterms:description",
"title": "dcterms:title",
"dcterms": "http://purl.org/dc/terms/",
"subject": "dcterms:subject",
"uri": "@id",
"created": "dcterms:created"
},
"review_state": "published",
"type": "FeatureCollection",
"description": "An ancient place, cited: BAtlas 6 B3 Arachosiorum Oppidum/Alexandria",
"reprPoint": [
68.388483,
33.498616
],
"placeTypes": [
"settlement"
],
"bbox": [
68.388483,
33.498616,
68.388483,
33.498616
],
"rights": "Copyright © The Contributors. Sharing and remixing permitted under CC-BY.",
"created": "2010-09-23T04:31:55Z",
"uri": "https://pleiades.stoa.org/places/59694",
"creators": [
{
"username": null,
"name": "M.U. Erdosy"
}
],
"@type": "Place"
}
]]>
</xenoData> Note: the example above has been trimmed for legibility. The original may be found linked from Arachosiorum Oppidum/Alexandria. The contributors, listed per the license terms, are R. Talbert, Jeffrey Becker, W. Röllig, Tom Elliott, H. Kopp, DARMC, Sean Gillies, B. Siewert-Mayer, Francis Deblauwe, and Eric Kansa. |