30 Matching Annotations
  1. Oct 2023
  2. Jun 2023
  3. Apr 2023
  4. Jan 2023
  5. Dec 2022
    1. the property attribute describes string literals, and the rel attribute describes link relationships
  6. Sep 2022
  7. Aug 2022
  8. May 2022
    1. Summary of Attributes

      • about: Specifies the subject of a relationship. If not given, then the subject is the current document.

      • rel : Defines a relation between the subject and a URL given by either href or resource. The subject is either specified by the closest about or src attribute, @@

      • rev : The same as the the rel attribute, except that subject and object are reversed.

      • property : Defines a relationship between the subject and either a string (if the content attribute is present) or a piece of markup otherwise (the content of the element that the property attribute is on).

      • content : Specifies a string to use as an object for the property attribute

      • href : Specifies an object URI for the rev and rel attributes. <mark>Takes precedence over the resource attribute</mark>.

      • resource : Specifies an object URI for the rev and rel attributes if href is not present.

      • src : Specifies the subject of a relationship.

      • datatype : Specifies a datatype of the object of the property attribute (either in the content attribute, or the content of the element that the datattype attribute is on.) By default, data in the content attribute is of type string, and data in the content of an element has type xml:Literal. If datatype="" is used, then for the RDF the element content is stripped of markup, and is of type string.

      • typeof : Creates a blank node, which becomes the subject, and asserts that the current element contains relationships that match the given RDF type.

    1. If you are using RDFa within your pages, you can use the resource attribute to indicate that you are linking to a piece of legislation while including a link to another source of information. For example,

      html The <a rel="cite" resource="http://www.legislation.gov.uk/id/ukpga/1999/17" href="http://en.wikipedia.org/wiki/Disability_Rights_Commission_Act_1999">Disability Rights Commission Act 1999</a> replaced the National Disability Council with the Disability Rights Commission (DRC). will generate the triple

      <> xhv:cite <http://www.legislation.gov.uk/id/ukpga/1999/17>

    1. The simplest way to publish a description of your dataset is to publish DCAT metadata using RDFa. RDFa allows machine-readable metadata to be embedded in a webpage. This means that publishing your dataset metadata can be easily achieved by updating the HTML for your dataset homepage.

      ```html

      <html prefix="dct: http://purl.org/dc/terms/ rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# dcat: http://www.w3.org/ns/dcat# foaf: http://xmlns.com/foaf/0.1/"> <head> <title>DCAT in RDFa</title> </head> <br /> <body> <div typeof="dcat:Dataset" resource="http://gov.example.org/dataset/finances">

      Example DCAT Dataset

      25th October 2010

      10th March 2013

      This is the description.

      <div property="dct:license" resource="http://reference.data.gov.uk/id/open-government-licence"> <span property="dct:title">UK Open Government Licence (OGL)</span> </div> <div property="dct:publisher" resource="http://example.org/publisher"> <span property="foaf:name">Example Publisher</span> </div> <div> <span property="dcat:keyword">Examples</span>, <span property="dcat:keyword">DCAT</span> </div> <div> Weekly </div> <div property='dcat:distribution' typeof='dcat:Distribution'> <span property="dct:title">CSV download</span>

      • Format <span content='text/csv' property='dcat:mediaType'>CSV</span>
      • Size <span content='240585277' datatype='xsd:decimal' property='dcat:byteSize'>1024MB</span>
      • Issues <span property='dct:issued'>2012-01-01</span>

      Download the full dataset

      </div> </body>

      </html> ```

  9. Feb 2022
  10. Dec 2021
  11. Jul 2020
    1. The following data will be extracted by a conforming RDFa processor, shown in Turtle format
    2. RDFa is intended to solve the problem of marking up machine-readable data in HTML documents. RDFa provides a set of HTML attributes to augment visual data with machine-readable hints. Using RDFa, authors may turn their existing human-visible text and links into machine-readable data without repeating content.