Citations with added RDFa

From The Digital Classicist Wiki
Revision as of 14:03, 28 September 2010 by SebastianHeath (talk | contribs) (fixing examples: text, uris, etc.)
Jump to navigation Jump to search

The page Citation_in_digital_scholarship describes a convention for indicating citations that relies on the 'class' and 'title' attributes when implemented in (x)html. This page describes the extension of that convention to encompass adding RDFa to conformant citations.

Sample sentence: Ephesus demonstrates the potential complexity of ancient Mediterranean urban centers.

With citation markup added: <a class="citation" href="http://pleiades.stoa.org/places/599612">Ephesus</a> ....

RDFa Pattern 1

Focusing just on the 'a' element, the following RDFa provides additional levels of detail:

 <a class="citation" typeof="dc:Location" rel="skos:definition" href="http://pleiades.stoa.org/places/599612">Ephesus</a>


Assuming this snippet is found with a document with the URI http://example.org/article01 that contains the necessary prefix declaration, it produces the following RDF in Turtle format:

<http://example.org/article01>
 []
    a dc:Location ;
    skos:definition <http://pleiades.stoa.org/places/599612> .

RDFa Pattern 2

Adding some hierarchy allows for more expressive RDFa

<span rel="dc:references">
 <a class="citation"
     typeof="dctype:Location"
     rel="skos:definition"
     href="http://pleiades.stoa.org/places/599612"
      >Ephesus</a>

Which produces the following RDF/Turtle:

 @prefix dc: <http://purl.org/dc/terms/> .
 @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
 <http://example.org/article01>
    dc:references [
        a dc:Location ;
        skos:definition <http://pleiades.stoa.org/places/599612>
    ] ;

The RDF can be read as saying, "There is a document at http://example.org/article01 that references a location that is defined at http://pleiades.stoa.org/places/599612 ."