Metadata¶
Enola uses Metadata about all of its Things when rendering them:
- label is a normally fairly short human-readable 🏷️ text; e.g. TITLE of HTML page found at the IRI, or something similar.
- description is a longer human-readable 📜 description; e.g. first paragraph or
<meta ... description>
of a HTML page. - image of a logo; e.g. from favicon or something like that; or an 😃 Emoji!
- curie is a compact URI; a shorter form of the original “long” IRI of the Thing.
The info metadata
sub-command is a handy tool to test this.
Label¶
This is read from a number of “typical” properties; in order of priority:
- https://enola.dev/label
- http://www.w3.org/2000/01/rdf-schema#label
- https://schema.org/name
- http://purl.org/dc/elements/1.1/title
If the thing itself doesn’t have any of these, it will check if its RDFS range has any.
Alternatively, the (RDFS) Class
of a Thing’s (RDF) type
can specify an https://enola.dev/labelProperty
to specify the IRI of a “custom” property to use a label, if present; see test/metadata-label-property.ttl
for an example illustrating how to use this.
This is always available; if a Thing has none of the above, then it will fallback to the CURIE, or else just the last part of its IRI.
Description¶
This is also read from a number of “typical” properties; in order of priority:
- https://enola.dev/description
- https://schema.org/description
- https://schema.org/abstract
- http://purl.org/dc/elements/1.1/description
- http://www.w3.org/2000/01/rdf-schema#comment
This is optional and may be empty.
Image of Logo¶
This is read, again in order, from:
- https://enola.dev/emoji
- https://schema.org/logo
- https://schema.org/thumbnailUrl
- https://schema.org/image
and similarly to above first on the Thing itself, or if none then via its RDFS range or RDF type.
CURIE¶
The CURIE is determined by the current context.
This could be different than e.g. a prefix in a loaded Turtle.