Using citation ontology in HTML pages

CiTO, the citation ontology, is an ontology for describing the nature of link citations in scientific articles and other scientific papers for other similar publications and for web information resources, as well as for publishing these descriptions in the Semantic Web, as described in this article (open access)

Despite the fact that the document has excellent work explaining the terms available in the ontology, I only have basic knowledge of XML, HTML and RDF, and I'm a bit unclear how to implement this on a web page.

Suppose I write a blog post on the Internet and point out that the line I just wrote disproves the quote that quoted it. I would just write:

... refutes the analysis of <a rel="cito:refutes" href="http://dx.doi/org/10.1126/science.1197258">Wolfe et al. 2010</a>. 

Or do I need to specify a namespace for CiTO somewhere?

eg. I need to format the page as XML, for example.

 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://purl.org/net/cito/"> 

Is the string <html xmlns="http://purl.org/net/cito/"> correct way to add a namespace?

When building the link, obviously there are many URLs that I could provide for the same article. Is there any best practice on how to select them, or an additional attribute that I can configure to pass doi explicitly? Or do I need to specify the url where the cito data is embedded? How does this relate to using the "rev" tag in html anchors, and is there a time when I add the cito link to the rev tag?

Once I did this, is there an obvious programmatic way to create an RDF file containing my quotes with their CiTO values?

+4
source share
1 answer

It seems that using RDFa attributes rather than rel or rev tags would be the most efficient way to do this.

The following solution is adapted from scholarlyhtml.org after adding DOCTYPE, mime-type, and changing the rel attributes of the links in the RDFa property attributes and resource attributes when referring to href , after which it successfully checks for HTML3 nu validator on W3C:

 <!DOCTYPE html> <html lang="en" property="http://scholarly-html.org/schtml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta charset="utf-8"> <title> Scholarly HTML </title> </head> <body> <span property="http://purl.org/dc/terms/title">Title</span> <span property="http://purl.org/dc/terms/creator">Author</span> <p>Some text which then refers to a cited work <a property="http://purl.org/spar/cito/obtainsBackgroundFrom" href="http://dx.doi.org/10.1039/B411699M">[citation]</a> but it would still be valid if the citation had been formatted and something along the lines of <a property="http://purl.org/spar/cito/obtainsBackgroundFrom" href="http://dx.doi.org/10.1039/B411699M">Adams, 2007</a> is also allowable. </p> <p>References can also involve explicitly declaring the elements of the reference entry. So the following is also allowable. <a property="http://purl.org/spar/cito/parodies" href="#citation">[citation]</a> In this case the information needs to be provided elsewhere in the document, possibly in a separate div for the reference list entries such as below. </p> <div id="biblography" property="http://purl.org/spar/biro/ReferenceList"> <span id="citation" property="http://purl.org/spar/biro/BibliographicRecord" about="http://dx.doi.org/10.1039/B411699M"> <span property="http://purl.org/dc/terms/title"> Experimental data checker: better information for organic chemists</span> <span property="http://purl.org/dc/terms/creator"> <span resource="http://people.cam.ac.uk/sea36"> <span property="http://xmlns.com/foaf/spec/name" content="Samuel E. Adams">SE Adams</span> </span>, <span resource="http://people.cam.ac.uk/jmg"> <span property="http://xmlns.com/foaf/spec/name">JM Goodman</span> </span>, </span> <span property="http://purl.org/dc/terms/isPartOf" resource="[http://purl.org/dc/terms/journal]"> <span property="http://purl.org/dc/terms/title" content="Organic &amp; Biomolecular Chemistry"> </span> <span property="http://purl.org/ontology/bibo/shortTitle">Org. Biomol. Chem.</span> </span> <span property="http://purl.org/dc/terms/date">2004</span>, <span property="http://purl.org/ontology/bibo/volume">2</span> (<span property="http://purl.org/ontology/bibo/issue">21</span>), <span property="http://purl.org/ontology/bibo/pageStart">3067</span>- <span property="http://purl.org/ontology/bibo/pageEnd">3070</span> <br/> DOI: <a href="http://dx.doi.org/10.1039/B411699M" property="http://purl.org/ontology/bibo/doi">10.1039/B411699M</a> </span> </div> </body> </html> 

I would be interested to hear any recommendations on how this can be improved, and also whether it can be implemented in microdata.

+2
source

Source: https://habr.com/ru/post/1439483/


All Articles