cboettig / knitcitations

:package: Generate citations for knitr markdown and html files
http://carlboettiger.info
Other
220 stars 28 forks source link

Improve RDFa semantics #30

Open cboettig opened 11 years ago

cboettig commented 11 years ago

see http://purl.org/spar/fabio for the ontology and http://semanticpublishing.wordpress.com/2013/03/01/lld5-using-spar-ontologies/ for a comparison.

cboettig commented 11 years ago

Silvio gives a comprehensive example on how I should be doing the RDFa for the semantic html format:

https://github.com/cboettig/labnotebook/issues/22


<li prefix="
        fabio: http://purl.oeg/spar/fabio/
        datacite: http://purl.org/spar/datacite/
        dcterms: http://purl.org/dc/terms/
        foaf: http://xmlns.com/foaf/0.1/
        prism: http://prismstandard.org/namespaces/basic/2.0/
        frbr: http://purl.org/vocab/frbr/core#
        ex: http:///www.carlboettiger.info/example/" 
    about="ex:work-early-warning-signals" typeof="fabio:ResearchArtile">
    <span rel="dcterms:creator">
        <span about="http://www.carlboettiger.info#me" typeof="foaf:Person">
            <span property="foaf:givenName">Carl</span> 
            <span property="foaf:familyName">Boettiger</span>
        </span>, 
        <span about="http://www.urlofmycoauthor.com#me" typeof="foaf:Person">
            <span property="foaf:givenName">Alan</span>
            <span property="foaf:familyName">Hastings</span>
        </span>
    </span>
    <span rel="frbr:realization" resource="ex:expr-early-warning-signals"  typeof="fabio:JournalArticle">
        (<span property="fabio:hasPublicationYear">2012</span>).
        <span property="dcterms:title" rel="frbr:partOf" resource="ex:RSB-279-1748">Early Warning Signals and the Prosecutor’s Fallacy</span> 
    </span>
    <span about="ex:RSB-279" typeof="fabio:JournalVolume" 
        property="prism:volume" rel="frbr:partOf" resource="ex:RSB">279</span>
    (<span about="ex:RSB-279-1748" typeof="fabio:JournalIssue" 
        property="prism:issueIdentifier" rel="frbr:partOf" resource="ex:RSB-279">1748</span>) 
    <span about="ex:man-early-warning-signals" typeof="fabio:PrintObject">
        <span property="prism:startingPage">4734</span>-
        <span property="prism:endingPage">4739</span>
    </span>. 
    <span about="ex:RSB" typeof="fabio:Journal" property="dcterms:title">Proceedings of the Royal Society B</span> 279 (1748). 
    <a href="http://dx.doi.org/10.1098/rspb.2012.2085" typeof="fabio:WebPage">
        <span rel="frbr:embodimentOf">
            <span about="ex:expr-doi-redirect-metadata" 
                typeof="fabio:MetadataDocument" rel="frbr:realizationOf">
                    <span about="ex:work-doi-redirect-metadata" 
                        type="fabio:MetadataEntity" rel="frbr:subject" 
                        resource="ex:work-early-warning-signals">doi</span>
            </span>
        </span>
    </a>:
    <span about="ex:expr-early-warning-signals" property="prism:doi">10.1098/rspb.2012.2085</span>
    (<a href="http://www.mendeley.com/download/public/98752/4972355691/dd5fdd8ebbfc05d9ebf415761be200805254d22e/dl.pdf" typeof="fabio:ComputerFile">
        <span rel="frbr:exemplarOf">
            <span about="ex:man-alternative-early-warning-signals" 
                typeof="fabio:DigitalManifestation" 
                rel="frbr:embodimentOf" resource="ex:expr-early-warning-signals">pdf</span>
        </span>
    </a>)
    (<a href="http://arxiv.org/abs/1210.1204">
        <span rel="frbr:exemplarOf">
            <span about="ex:man-arxiv-metadata" typeof="fabio:DigitalManifestation" 
                rel="frbr:embodimentOf">
                <span about="ex:expr-arxiv-metadata" 
                typeof="fabio:MetadataDocument" rel="frbr:realizationOf">
                    <span about="ex:work-arxiv-metadata" 
                        type="fabio:MetadataEntity" rel="frbr:subject" 
                        resource="ex:work-early-warning-signals">doi</span>
        </span>
    </a>)
    (<a href="http://dx.doi.org/10.5061/dryad.2k462" typeof="fabio:Manifestation">
        <span rel="frbr:embodimentOf">
            <span about="ex:expr-data" 
                typeof="fabio:DataFile" rel="frbr:realizationOf">
                    <span about="ex:work-data" 
                        type="fabio:Dataset" rel="datacite:hasDescription" 
                        resource="ex:expr-early-warning-signals">data</span>
            </span>
        </span>
    </a>
</li>